Interface

TalkatuAttachment

Description [src]

interface Talkatu.Attachment : GObject.Object

TalkatuAttachment represents an attached file. The files can be any type of regular file but only images will be previewed based on their actual contents.

Prerequisite

In order to implement Attachment, your type must inherit from GObject.

Implementations

Instance methods

talkatu_attachment_get_content_type

Returns the content type of the attachment.

talkatu_attachment_get_filename

Gets the base filename for attachment. Remote URI will be checked before local URI, but the basename of one of those is what will be returned.

talkatu_attachment_get_hash_key

Gets the hash key of attachment. This should only be used when trying to address a TalkatuAttachment in a GHashTable that is using g_int64_hash() as the key function.

talkatu_attachment_get_id

Gets the ID associated with attachment.

talkatu_attachment_get_local_uri

Gets the local URI if any for attachment.

talkatu_attachment_get_preview

Create a GIcon as a preview for attachment.

talkatu_attachment_get_remote_uri

Gets the remote URI if any for attachment.

talkatu_attachment_get_size

Gets the size of attachment.

talkatu_attachment_set_id

Sets the ID of attachment to id.

talkatu_attachment_set_local_uri

Sets the local URI of attachment.

talkatu_attachment_set_remote_uri

Sets the remote URI of attachment.

talkatu_attachment_set_size

Sets the size of attachment to size.

Properties

Talkatu.Attachment:content-type
No description available.
Talkatu.Attachment:id
No description available.
Talkatu.Attachment:local-uri
No description available.
Talkatu.Attachment:remote-uri
No description available.
Talkatu.Attachment:size
No description available.

Interface structure

struct TalkatuAttachmentInterface {
  guint64* (* get_hash_key) (
    TalkatuAttachment* attachment
  );
  
}

TalkatuAttachmentInterface defines the methods and behaviors that make up a TalkatuAttachment. This was made an interface so clients can represent their data however they want but still provide a common interface for Talkatu to work with.

Interface members
get_hash_key
guint64* (* get_hash_key) (
    TalkatuAttachment* attachment
  )
 No description available.

Virtual methods

Talkatu.Attachment.get_hash_key

Gets the hash key of attachment. This should only be used when trying to address a TalkatuAttachment in a GHashTable that is using g_int64_hash() as the key function.