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 fromGObject
.
Instance methods
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.
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 |
|
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.