up-qos-item

up-qos-item — Helper object representing one item of QOS data.

Synopsis

typedef             UpQosItemPrivate;
UpQosItem *         up_qos_item_new                     (void);
guint               up_qos_item_get_uid                 (UpQosItem *qos_item);
void                up_qos_item_set_uid                 (UpQosItem *qos_item,
                                                         guint uid);
guint               up_qos_item_get_pid                 (UpQosItem *qos_item);
void                up_qos_item_set_pid                 (UpQosItem *qos_item,
                                                         guint pid);
const gchar *       up_qos_item_get_sender              (UpQosItem *qos_item);
void                up_qos_item_set_sender              (UpQosItem *qos_item,
                                                         const gchar *sender);
const gchar *       up_qos_item_get_cmdline             (UpQosItem *qos_item);
void                up_qos_item_set_cmdline             (UpQosItem *qos_item,
                                                         const gchar *cmdline);
guint               up_qos_item_get_cookie              (UpQosItem *qos_item);
void                up_qos_item_set_cookie              (UpQosItem *qos_item,
                                                         guint cookie);
guint64             up_qos_item_get_timespec            (UpQosItem *qos_item);
void                up_qos_item_set_timespec            (UpQosItem *qos_item,
                                                         guint64 timespec);
gboolean            up_qos_item_get_persistent          (UpQosItem *qos_item);
void                up_qos_item_set_persistent          (UpQosItem *qos_item,
                                                         gboolean persistent);
UpQosKind           up_qos_item_get_kind                (UpQosItem *qos_item);
void                up_qos_item_set_kind                (UpQosItem *qos_item,
                                                         UpQosKind type);
gint                up_qos_item_get_value               (UpQosItem *qos_item);
void                up_qos_item_set_value               (UpQosItem *qos_item,
                                                         gint value);

Description

This object represents one item of data which may be returned from the daemon in response to a query.

See also: UpDevice, UpClient

Details

UpQosItemPrivate

typedef struct UpQosItemPrivate UpQosItemPrivate;

up_qos_item_new ()

UpQosItem *         up_qos_item_new                     (void);

Returns :

a new UpQosItem object.

Since 0.9.0


up_qos_item_get_uid ()

guint               up_qos_item_get_uid                 (UpQosItem *qos_item);

Gets the item uid.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_uid ()

void                up_qos_item_set_uid                 (UpQosItem *qos_item,
                                                         guint uid);

Sets the item uid.

qos_item :

UpQosItem

uid :

the new value

Since 0.9.0


up_qos_item_get_pid ()

guint               up_qos_item_get_pid                 (UpQosItem *qos_item);

Gets the item pid.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_pid ()

void                up_qos_item_set_pid                 (UpQosItem *qos_item,
                                                         guint pid);

Sets the item pid.

qos_item :

UpQosItem

pid :

the new value

Since 0.9.0


up_qos_item_get_sender ()

const gchar *       up_qos_item_get_sender              (UpQosItem *qos_item);

Gets the item sender.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_sender ()

void                up_qos_item_set_sender              (UpQosItem *qos_item,
                                                         const gchar *sender);

Sets the item sender.

qos_item :

UpQosItem

sender :

the new value

Since 0.9.0


up_qos_item_get_cmdline ()

const gchar *       up_qos_item_get_cmdline             (UpQosItem *qos_item);

Gets the item cmdline.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_cmdline ()

void                up_qos_item_set_cmdline             (UpQosItem *qos_item,
                                                         const gchar *cmdline);

Sets the item cmdline.

qos_item :

UpQosItem

cmdline :

the new value

Since 0.9.0


up_qos_item_get_cookie ()

guint               up_qos_item_get_cookie              (UpQosItem *qos_item);

Gets the item cookie.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_cookie ()

void                up_qos_item_set_cookie              (UpQosItem *qos_item,
                                                         guint cookie);

Sets the item cookie.

qos_item :

UpQosItem

cookie :

the new value

Since 0.9.0


up_qos_item_get_timespec ()

guint64             up_qos_item_get_timespec            (UpQosItem *qos_item);

Gets the item timespec.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_timespec ()

void                up_qos_item_set_timespec            (UpQosItem *qos_item,
                                                         guint64 timespec);

Sets the item timespec.

qos_item :

UpQosItem

timespec :

the new value

Since 0.9.0


up_qos_item_get_persistent ()

gboolean            up_qos_item_get_persistent          (UpQosItem *qos_item);

Gets the item persistent.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_persistent ()

void                up_qos_item_set_persistent          (UpQosItem *qos_item,
                                                         gboolean persistent);

Sets the item persistent.

qos_item :

UpQosItem

persistent :

the new value

Since 0.9.0


up_qos_item_get_kind ()

UpQosKind           up_qos_item_get_kind                (UpQosItem *qos_item);

Gets the item type.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_kind ()

void                up_qos_item_set_kind                (UpQosItem *qos_item,
                                                         UpQosKind type);

Sets the item type.

qos_item :

UpQosItem

type :

the new value

Since 0.9.0


up_qos_item_get_value ()

gint                up_qos_item_get_value               (UpQosItem *qos_item);

Gets the item value.

qos_item :

UpQosItem

Returns :

the value

Since 0.9.0


up_qos_item_set_value ()

void                up_qos_item_set_value               (UpQosItem *qos_item,
                                                         gint value);

Sets the item value.

qos_item :

UpQosItem

value :

the new value

Since 0.9.0