MatrixMessageFile

MatrixMessageFile — Class to hold a m.file message

Functions

Types and Values

Description

This message represents a generic file.

Functions

MATRIX_MESSAGE_TYPE_FILE

#define MATRIX_MESSAGE_TYPE_FILE (matrix_message_file_get_type ())

The type for MatrixMessageFile.


matrix_message_file_new ()

MatrixMessageFile *
matrix_message_file_new (void);

matrix_message_file_get_filename ()

const gchar *
matrix_message_file_get_filename (MatrixMessageFile *self);

Get and return the current value of the "filename" property.

The original filename of the uploaded file.

Parameters

self

the MatrixMessageFile instance to query

 

Returns

the value of the "filename" property


matrix_message_file_set_filename ()

void
matrix_message_file_set_filename (MatrixMessageFile *self,
                                  const gchar *value);

Set the value of the "filename" property to value .

The original filename of the uploaded file.

Parameters

self

the MatrixMessageFile instance to modify

 

value

the new value of the "filename" property

 

matrix_message_file_get_url ()

const gchar *
matrix_message_file_get_url (MatrixMessageFile *self);

Get and return the current value of the "url" property.

The URL of the file.

Parameters

self

the MatrixMessageFile instance to query

 

Returns

the value of the "url" property


matrix_message_file_set_url ()

void
matrix_message_file_set_url (MatrixMessageFile *self,
                             const gchar *value);

Set the value of the "url" property to value .

The URL of the file.

Parameters

self

the MatrixMessageFile instance to modify

 

value

the new value of the "url" property

 

matrix_message_file_get_info ()

MatrixFileInfo *
matrix_message_file_get_info (MatrixMessageFile *self);

Get and return the current value of the "info" property.

Information about the file referred to in url.

Parameters

self

the MatrixMessageFile instance to query

 

Returns

the value of the "info" property


matrix_message_file_set_info ()

void
matrix_message_file_set_info (MatrixMessageFile *self,
                              MatrixFileInfo *value);

Set the value of the "info" property to value .

Information about the file referred to in url.

Parameters

self

the MatrixMessageFile instance to modify

 

value

the new value of the "info" property

 

matrix_message_file_get_thumbnail_url ()

const gchar *
matrix_message_file_get_thumbnail_url (MatrixMessageFile *self);

Get and return the current value of the "thumbnail-url" property.

The URL of the thumbnail of the file.

Parameters

self

the MatrixMessageFile instance to query

 

Returns

the value of the "thumbnail-url" property


matrix_message_file_set_thumbnail_url ()

void
matrix_message_file_set_thumbnail_url (MatrixMessageFile *self,
                                       const gchar *value);

Set the value of the "thumbnail-url" property to value .

The URL of the thumbnail of the file.

Parameters

self

the MatrixMessageFile instance to modify

 

value

the new value of the "thumbnail-url" property

 

matrix_message_file_get_thumbnail_info ()

MatrixImageInfo *
matrix_message_file_get_thumbnail_info
                               (MatrixMessageFile *self);

Get and return the current value of the "thumbnail-info" property.

Metadata about the image referred to in thumbnail_url.

Parameters

self

the MatrixMessageFile instance to query

 

Returns

the value of the "thumbnail-info" property


matrix_message_file_set_thumbnail_info ()

void
matrix_message_file_set_thumbnail_info
                               (MatrixMessageFile *self,
                                MatrixImageInfo *value);

Set the value of the "thumbnail-info" property to value .

Metadata about the image referred to in thumbnail_url.

Parameters

self

the MatrixMessageFile instance to modify

 

value

the new value of the "thumbnail-info" property

 

Types and Values

struct MatrixMessageFile

struct MatrixMessageFile {
	MatrixMessageBase parent_instance;
	MatrixMessageFilePrivate * priv;
};

Class to hold a m.file message

This message represents a generic file.


struct MatrixMessageFileClass

struct MatrixMessageFileClass {
	MatrixMessageBaseClass parent_class;
};

The class structure for MATRIX_MESSAGE_TYPE_FILE. All the fields in this structure are private and should never be accessed directly.

Members

MatrixMessageBaseClass parent_class;

the parent class structure