Interface

TalkatuAttachment

since: 0.0

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.

Available since: 0.0

Prerequisite

In order to implement Attachment, your type must inherit fromGObject.

Implementations

Instance methods

talkatu_attachment_get_content_type

Returns the content type of the attachment.

since: 0.0

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.

since: 0.0

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.

since: 0.0

talkatu_attachment_get_id

Gets the ID associated with attachment.

since: 0.0

talkatu_attachment_get_local_uri

Gets the local URI if any for attachment.

since: 0.0

talkatu_attachment_get_preview

Create a GIcon as a preview for attachment.

since: 0.0

talkatu_attachment_get_remote_uri

Gets the remote URI if any for attachment.

since: 0.0

talkatu_attachment_get_size

Gets the size of attachment.

since: 0.0

talkatu_attachment_set_id

Sets the ID of attachment to id.

since: 0.0

talkatu_attachment_set_local_uri

Sets the local URI of attachment.

since: 0.0

talkatu_attachment_set_remote_uri

Sets the remote URI of attachment.

since: 0.0

talkatu_attachment_set_size

Sets the size of attachment to size.

since: 0.0

Properties

Talkatu.Attachment:content-type
No description available.

since: 0.0

Talkatu.Attachment:id
No description available.

since: 0.0

Talkatu.Attachment:local-uri
No description available.

since: 0.0

Talkatu.Attachment:remote-uri
No description available.

since: 0.0

Talkatu.Attachment:size
No description available.

since: 0.0

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
  )
 

A function that returns the key to hash the attachment with. This is typically just a pointer to the internal id variable, which is necessary due to the differences in 64-bit integers across platforms.

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.

since: 0.0