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