## TpDebugMessage

TpDebugMessage — a debug message

## Synopsis

    #include <telepathy-glib/telepathy-glib.h>

                        TpDebugMessage;
    struct              TpDebugMessageClass;
    void                tp_debug_client_get_messages_async  (TpDebugClient *self,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);
    GPtrArray *         tp_debug_client_get_messages_finish (TpDebugClient *self,
                                                             GAsyncResult *result,
                                                             GError **error);
    const gchar *       tp_debug_message_get_domain         (TpDebugMessage *self);
    const gchar *       tp_debug_message_get_category       (TpDebugMessage *self);
    GLogLevelFlags      tp_debug_message_get_level          (TpDebugMessage *self);
    const gchar *       tp_debug_message_get_message        (TpDebugMessage *self);
    GDateTime *         tp_debug_message_get_time           (TpDebugMessage *self);

## Object Hierarchy

      GObject
       +----TpDebugMessage

## Properties

      "category"                 gchar*                : Read
      "domain"                   gchar*                : Read
      "level"                    guint                 : Read
      "message"                  gchar*                : Read
      "time"                     GDateTime*            : Read

## Description

TpDebugMessage is a small object used to represent a debug message receive from a Telepathy component using TpDebugClient.

See also: TpDebugClient

## Details

### TpDebugMessage

    typedef struct _TpDebugMessage TpDebugMessage;

Data structure representing a TpDebugMessage.

Since 0.19.0

### struct TpDebugMessageClass

    struct TpDebugMessageClass {
    };

The class of a TpDebugMessage.

Since 0.19.0

### tp_debug_client_get_messages_async ()

    void                tp_debug_client_get_messages_async  (TpDebugClient *self,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);

Retrieve buffered messages from `self`. Once `callback` is called, use `tp_debug_client_get_messages_finish()` to retrieve the TpDebugMessage objects.

`self` : | a TpDebugClient
`callback` : | callback to call when the messages have been retrieved
`user_data` : | data to pass to `callback`

Since 0.19.0

### tp_debug_client_get_messages_finish ()

    GPtrArray *         tp_debug_client_get_messages_finish (TpDebugClient *self,
                                                             GAsyncResult *result,
                                                             GError **error);

Finishes `tp_debug_client_set_enabled_async()`.

`self` : | a TpDebugClient
`result` : | a GAsyncResult
`error` : | a GError to fill
Returns : | a GPtrArray of TpDebugMessage. [transfer full][type GLib.PtrArray][element-type TelepathyGLib.DebugMessage]

Since 0.19.0

### tp_debug_message_get_domain ()

    const gchar *       tp_debug_message_get_domain         (TpDebugMessage *self);

Return the "domain" property

`self` : | a TpDebugMessage
Returns : | the value of "domain" property

Since 0.19.0

### tp_debug_message_get_category ()

    const gchar *       tp_debug_message_get_category       (TpDebugMessage *self);

Return the "category" property

`self` : | a TpDebugMessage
Returns : | the value of "category" property

Since 0.19.0

### tp_debug_message_get_level ()

    GLogLevelFlags      tp_debug_message_get_level          (TpDebugMessage *self);

Return the "level" property

`self` : | a TpDebugMessage
Returns : | the value of "level" property

Since 0.19.0

### tp_debug_message_get_message ()

    const gchar *       tp_debug_message_get_message        (TpDebugMessage *self);

Return the "message" property

`self` : | a TpDebugMessage
Returns : | the value of "message" property

Since 0.19.0

### tp_debug_message_get_time ()

    GDateTime *         tp_debug_message_get_time           (TpDebugMessage *self);

Return the "time" property

`self` : | a TpDebugMessage
Returns : | the value of "time" property. [transfer none]

Since 0.19.0

## Property Details

### The `"category"` property

      "category"                 gchar*                : Read

Category of the debug message, or `NULL` if none was specified.

Default value: NULL

Since 0.19.0

### The `"domain"` property

      "domain"                   gchar*                : Read

Domain of the debug message.

Default value: NULL

Since 0.19.0

### The `"level"` property

      "level"                    guint                 : Read

A GLogLevelFlags representing the level of the debug message.

Allowed values: <= 4294967292

Default value: 0

Since 0.19.0

### The `"message"` property

      "message"                  gchar*                : Read

Text of the debug message, stripped from its trailing whitespaces.

Default value: NULL

Since 0.19.0

### The `"time"` property

      "time"                     GDateTime*            : Read

Timestamp of the debug message.

Since 0.19.0