Delta Chat Core C-API
|
An object containing a set of values. More...
#include <mrlot.h>
Public Member Functions | |
void | mrlot_unref (mrlot_t *set) |
Frees an object containing a set of parameters. More... | |
char * | mrlot_get_text1 (mrlot_t *lot) |
Get first string. More... | |
char * | mrlot_get_text2 (mrlot_t *lot) |
Get second string. More... | |
int | mrlot_get_text1_meaning (mrlot_t *lot) |
Get the meaning of the first string. More... | |
int | mrlot_get_state (mrlot_t *lot) |
Get the associated state. More... | |
time_t | mrlot_get_timestamp (mrlot_t *lot) |
Get the associated timestamp. More... | |
An object containing a set of values.
The meaning of the values is defined by the function returning the set object. Set objects are created eg. by mrchatlist_get_summary(), mrmsg_get_summary() or by mrmsg_get_mediainfo().
NB: Lot is used in the meaning heap here.
void mrlot_unref | ( | mrlot_t * | set | ) |
Frees an object containing a set of parameters.
If the set object contains strings, the strings are also freed with this function. Set objects are created eg. by mrchatlist_get_summary(), mrmsg_get_summary or by mrmsg_get_mediainfo().
set | The object to free. |
char * mrlot_get_text1 | ( | mrlot_t * | lot | ) |
Get first string.
The meaning of the string is defined by the creator or the object any may be roughly described by mrlot_get_text1_meaning().
lot | The lot object. |
char * mrlot_get_text2 | ( | mrlot_t * | lot | ) |
Get second string.
The meaning of the string is defined by the creator or the object.
lot | The lot object. |
int mrlot_get_text1_meaning | ( | mrlot_t * | lot | ) |
Get the meaning of the first string.
Posssible meanings of the string are defined by the creator or the object and may be returned eg. as MR_TEXT1_DRAFT, MR_TEXT1_USERNAME or MR_TEXT1_SELF.
lot | The lot object. |
int mrlot_get_state | ( | mrlot_t * | lot | ) |
Get the associated state.
The meaning of the state is defined by the creator or the object.
lot | The lot object. |
time_t mrlot_get_timestamp | ( | mrlot_t * | lot | ) |
Get the associated timestamp.
The meaning of the timestamp is defined by the creator or the object.
lot | The lot object. |