Delta Chat Core C Interface
|
An object containing a set of values. More...
#include <deltachat.h>
Public Member Functions | |
uint32_t | dc_lot_get_id (const dc_lot_t *lot) |
Get the associated ID. | |
int | dc_lot_get_state (const dc_lot_t *lot) |
Get the associated state. | |
char * | dc_lot_get_text1 (const dc_lot_t *lot) |
Get first string. | |
int | dc_lot_get_text1_meaning (const dc_lot_t *lot) |
Get the meaning of the first string. | |
char * | dc_lot_get_text2 (const dc_lot_t *lot) |
Get second string. | |
int64_t | dc_lot_get_timestamp (const dc_lot_t *lot) |
Get the associated timestamp. | |
void | dc_lot_unref (dc_lot_t *lot) |
Frees an object containing a set of parameters. | |
An object containing a set of values.
The meaning of the values is defined by the function returning the object. Lot objects are created e.g. by dc_chatlist_get_summary() or dc_msg_get_summary().
NB: Lot is used in the meaning heap here.
uint32_t dc_lot_get_id | ( | const dc_lot_t * | lot | ) |
Get the associated ID.
The meaning of the ID is defined by the creator of the object.
lot | The lot object. |
int dc_lot_get_state | ( | const dc_lot_t * | lot | ) |
Get the associated state.
The meaning of the state is defined by the creator of the object.
lot | The lot object. |
char * dc_lot_get_text1 | ( | const dc_lot_t * | lot | ) |
Get first string.
The meaning of the string is defined by the creator of the object and may be roughly described by dc_lot_get_text1_meaning().
lot | The lot object. |
int dc_lot_get_text1_meaning | ( | const dc_lot_t * | lot | ) |
Get the meaning of the first string.
Possible meanings of the string are defined by the creator of the object and may be returned e.g. as DC_TEXT1_DRAFT, DC_TEXT1_USERNAME or DC_TEXT1_SELF.
lot | The lot object. |
char * dc_lot_get_text2 | ( | const dc_lot_t * | lot | ) |
Get second string.
The meaning of the string is defined by the creator of the object.
lot | The lot object. |
int64_t dc_lot_get_timestamp | ( | const dc_lot_t * | lot | ) |
Get the associated timestamp.
The timestamp is returned as a unix timestamp in seconds. The meaning of the timestamp is defined by the creator of the object.
lot | The lot object. |
void dc_lot_unref | ( | dc_lot_t * | lot | ) |
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 e.g. by dc_chatlist_get_summary() or dc_msg_get_summary().
lot | The object to free. If NULL is given, nothing is done. |