TplLogEntry

TplLogEntry — Abstract representation of a log entry

Synopsis

enum                TplLogEntryDirection;
enum                TplLogEntrySignalType;
enum                TplLogEntryType;
                    TplLogEntryPriv;
void                dispose                             (GObject *obj);
void                finalize                            (GObject *obj);
gint64              get_timestamp                       (TplLogEntry *self);
TplLogEntrySignalType  get_signal_type                  (TplLogEntry *self);
guint               get_log_id                          (TplLogEntry *self);
TplLogEntryDirection  get_direction                     (TplLogEntry *self);
TplContact *        get_sender                          (TplLogEntry *self);
TplContact *        get_receiver                        (TplLogEntry *self);
const gchar *       get_chat_id                         (TplLogEntry *self);
const gchar *       get_account_path                    (TplLogEntry *self);
void                set_timestamp                       (TplLogEntry *self,
                                                         gint64 data);
void                set_signal_type                     (TplLogEntry *self,
                                                         TplLogEntrySignalType data);
void                set_log_id                          (TplLogEntry *self,
                                                         guint data);
void                set_direction                       (TplLogEntry *self,
                                                         TplLogEntryDirection data);
void                set_sender                          (TplLogEntry *self,
                                                         TplContact *data);
void                set_receiver                        (TplLogEntry *self,
                                                         TplContact *data);
void                set_chat_id                         (TplLogEntry *self,
                                                         const gchar *data);
gboolean            equal                               (TplLogEntry *entry1,
                                                         TplLogEntry *entry2);
TplLogEntry *       tpl_log_entry_new                   (guint log_id,
                                                         const gchar *chat_id,
                                                         TplLogEntryDirection direction);
gint64              tpl_log_entry_get_timestamp         (TplLogEntry *self);
TplLogEntrySignalType  tpl_log_entry_get_signal_type    (TplLogEntry *self);
guint               tpl_log_entry_get_log_id            (TplLogEntry *self);
const gchar *       tpl_log_entry_get_chat_id           (TplLogEntry *self);
const gchar *       tpl_log_entry_get_account_path      (TplLogEntry *self);
TplLogEntryDirection  tpl_log_entry_get_direction       (TplLogEntry *self);
TplContact *        tpl_log_entry_get_sender            (TplLogEntry *self);
TplContact *        tpl_log_entry_get_receiver          (TplLogEntry *self);
void                tpl_log_entry_set_timestamp         (TplLogEntry *self,
                                                         gint64 data);
void                tpl_log_entry_set_signal_type       (TplLogEntry *self,
                                                         TplLogEntrySignalType data);
void                tpl_log_entry_set_direction         (TplLogEntry *self,
                                                         TplLogEntryDirection data);
void                tpl_log_entry_set_chat_id           (TplLogEntry *self,
                                                         const gchar *data);
void                tpl_log_entry_set_sender            (TplLogEntry *self,
                                                         TplContact *data);
void                tpl_log_entry_set_receiver          (TplLogEntry *self,
                                                         TplContact *data);
gboolean            tpl_log_entry_equal                 (TplLogEntry *self,
                                                         TplLogEntry *data);

Description

The TPLogger log entry represent a generic log entry, which will be specialied by subclasses of TplLogEntry.

Details

enum TplLogEntryDirection

typedef enum
{
  TPL_LOG_ENTRY_DIRECTION_NONE = 0,

  TPL_LOG_ENTRY_DIRECTION_IN,
  TPL_LOG_ENTRY_DIRECTION_OUT
} TplLogEntryDirection;


enum TplLogEntrySignalType

typedef enum
{
  TPL_LOG_ENTRY_SIGNAL_NONE = 0,

  TPL_LOG_ENTRY_CHANNEL_TEXT_SIGNAL_SENT,
  TPL_LOG_ENTRY_CHANNEL_TEXT_SIGNAL_RECEIVED,
  TPL_LOG_ENTRY_CHANNEL_TEXT_SIGNAL_SEND_ERROR,
  TPL_LOG_ENTRY_CHANELL_TEXT_SIGNAL_LOST_MESSAGE,
  TPL_LOG_ENTRY_CHANNEL_TEXT_SIGNAL_CHAT_STATUS_CHANGED,

  TPL_LOG_ENTRY_CHANNEL_SIGNAL_CHANNEL_CLOSED

} TplLogEntrySignalType;


enum TplLogEntryType

typedef enum
{
  TPL_LOG_ENTRY_ERROR,
  TPL_LOG_ENTRY_TEXT
} TplLogEntryType;


TplLogEntryPriv

typedef struct _TplLogEntryPriv TplLogEntryPriv;


dispose ()

void                dispose                             (GObject *obj);

obj :


finalize ()

void                finalize                            (GObject *obj);

obj :


get_timestamp ()

gint64              get_timestamp                       (TplLogEntry *self);

self :

Returns :


get_signal_type ()

TplLogEntrySignalType  get_signal_type                  (TplLogEntry *self);

self :

Returns :


get_log_id ()

guint               get_log_id                          (TplLogEntry *self);

self :

Returns :


get_direction ()

TplLogEntryDirection  get_direction                     (TplLogEntry *self);

self :

Returns :


get_sender ()

TplContact *        get_sender                          (TplLogEntry *self);

self :

Returns :


get_receiver ()

TplContact *        get_receiver                        (TplLogEntry *self);

self :

Returns :


get_chat_id ()

const gchar *       get_chat_id                         (TplLogEntry *self);

self :

Returns :


get_account_path ()

const gchar *       get_account_path                    (TplLogEntry *self);

self :

Returns :


set_timestamp ()

void                set_timestamp                       (TplLogEntry *self,
                                                         gint64 data);

self :

data :


set_signal_type ()

void                set_signal_type                     (TplLogEntry *self,
                                                         TplLogEntrySignalType data);

self :

data :


set_log_id ()

void                set_log_id                          (TplLogEntry *self,
                                                         guint data);

self :

data :


set_direction ()

void                set_direction                       (TplLogEntry *self,
                                                         TplLogEntryDirection data);

self :

data :


set_sender ()

void                set_sender                          (TplLogEntry *self,
                                                         TplContact *data);

self :

data :


set_receiver ()

void                set_receiver                        (TplLogEntry *self,
                                                         TplContact *data);

self :

data :


set_chat_id ()

void                set_chat_id                         (TplLogEntry *self,
                                                         const gchar *data);

self :

data :


equal ()

gboolean            equal                               (TplLogEntry *entry1,
                                                         TplLogEntry *entry2);

entry1 :

entry2 :

Returns :


tpl_log_entry_new ()

TplLogEntry *       tpl_log_entry_new                   (guint log_id,
                                                         const gchar *chat_id,
                                                         TplLogEntryDirection direction);

log_id :

chat_id :

direction :

Returns :


tpl_log_entry_get_timestamp ()

gint64              tpl_log_entry_get_timestamp         (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_signal_type ()

TplLogEntrySignalType  tpl_log_entry_get_signal_type    (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_log_id ()

guint               tpl_log_entry_get_log_id            (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_chat_id ()

const gchar *       tpl_log_entry_get_chat_id           (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_account_path ()

const gchar *       tpl_log_entry_get_account_path      (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_direction ()

TplLogEntryDirection  tpl_log_entry_get_direction       (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_sender ()

TplContact *        tpl_log_entry_get_sender            (TplLogEntry *self);

self :

Returns :


tpl_log_entry_get_receiver ()

TplContact *        tpl_log_entry_get_receiver          (TplLogEntry *self);

self :

Returns :


tpl_log_entry_set_timestamp ()

void                tpl_log_entry_set_timestamp         (TplLogEntry *self,
                                                         gint64 data);

self :

data :


tpl_log_entry_set_signal_type ()

void                tpl_log_entry_set_signal_type       (TplLogEntry *self,
                                                         TplLogEntrySignalType data);

self :

data :


tpl_log_entry_set_direction ()

void                tpl_log_entry_set_direction         (TplLogEntry *self,
                                                         TplLogEntryDirection data);

self :

data :


tpl_log_entry_set_chat_id ()

void                tpl_log_entry_set_chat_id           (TplLogEntry *self,
                                                         const gchar *data);

self :

data :


tpl_log_entry_set_sender ()

void                tpl_log_entry_set_sender            (TplLogEntry *self,
                                                         TplContact *data);

self :

data :


tpl_log_entry_set_receiver ()

void                tpl_log_entry_set_receiver          (TplLogEntry *self,
                                                         TplContact *data);

self :

data :


tpl_log_entry_equal ()

gboolean            tpl_log_entry_equal                 (TplLogEntry *self,
                                                         TplLogEntry *data);

self :

data :

Returns :

See Also

#TplLogEntryText and other subclasses when they'll exist