Class

TalkatuSimpleAttachment

Description [src]

final class Talkatu.SimpleAttachment : GObject.Object {
  /* No available fields */
}

TalkatuSimpleAttachment is simple implementation of the TalkatuAttachment interface. This is the easiest way to create a TalkatuAttachment and attach it to a TalkatuMessage.

Ancestors

Implements

Functions

talkatu_simple_attachment_new

Creates a new attachment with content_type.

Instance methods

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from TalkatuAttachment (12)
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

Properties inherited from TalkatuAttachment (5)
Talkatu-0.0.Attachment:content-type
No description available.
Talkatu-0.0.Attachment:id
No description available.
Talkatu-0.0.Attachment:local-uri
No description available.
Talkatu-0.0.Attachment:remote-uri
No description available.
Talkatu-0.0.Attachment:size
No description available.

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct TalkatuSimpleAttachmentClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.