Class

PurpleAttachment

unstable since: 3.0

Description [src]

final class Purple.Attachment : GObject.Object
{
  /* No available fields */
}

PurpleAttachment represents a file attached to a PurpleMessage.

Available since: 3.0

Ancestors

Constructors

purple_attachment_new

Creates a new PurpleAttachment with the given id and content_type.

unstable since: 3.0

Instance methods

purple_attachment_get_content_type

Gets the content-type of attachment.

unstable since: 3.0

purple_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.

unstable since: 3.0

purple_attachment_get_hash_key

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

unstable since: 3.0

purple_attachment_get_id

Gets the ID from attachment.

unstable since: 3.0

purple_attachment_get_local_uri

Gets the local URI if any for attachment.

unstable since: 3.0

purple_attachment_get_remote_uri

Gets the remote URI if any for attachment.

unstable since: 3.0

purple_attachment_get_size

Gets the size of attachment.

unstable since: 3.0

purple_attachment_set_id

Sets the ID of attachment to id.

unstable since: 3.0

purple_attachment_set_local_uri

Sets the local URI of attachment.

unstable since: 3.0

purple_attachment_set_remote_uri

Sets the remote URI of attachment.

unstable since: 3.0

purple_attachment_set_size

Sets the size of attachment to size.

unstable since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.Attachment:content-type

The content type of this attachment. This should be a commonly used mime type.

unstable since: 3.0

Purple.Attachment:id

The identifier of this attachment.

unstable since: 3.0

Purple.Attachment:local-uri

The local URI of the attachment. That is where the file can be found on disk.

unstable since: 3.0

Purple.Attachment:remote-uri

The remote URI of the attachment. In most cases this is just a base filename.

unstable since: 3.0

Purple.Attachment:size

The size of the attachment in bytes.

unstable since: 3.0

Signals

Signals inherited from GObject (1)
GObject::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 PurpleAttachmentClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.