21 #ifndef __EDELIB_EDBUSDATA_H__
22 #define __EDELIB_EDBUSDATA_H__
25 #include "EdbusObjectPath.h"
31 typedef long long int int64_t;
61 struct EdbusDataPrivate;
112 EdbusDataPrivate* impl;
211 byte_t to_byte(
void)
const;
216 char to_char(
void)
const {
return to_byte(); }
221 bool to_bool(
void)
const;
226 int16_t to_int16(
void)
const;
231 uint16_t to_uint16(
void)
const;
236 int32_t to_int32(
void)
const;
241 uint32_t to_uint32(
void)
const;
246 int64_t to_int64(
void)
const;
251 uint64_t to_uint64(
void)
const;
256 double to_double(
void)
const;
261 const char* to_string(
void)
const;
297 bool operator==(
const EdbusData& other)
const;
317 bool is_char(
void)
const {
return is_byte(); }
static EdbusData from_char(char val)
Definition: EdbusData.h:412
bool is_variant(void) const
Definition: EdbusData.h:382
bool is_bool(void) const
Definition: EdbusData.h:322
static EdbusData from_variant(const EdbusVariant &val)
Definition: EdbusData.h:467
Class for representing D-Bus data types.
Definition: EdbusData.h:110
bool is_valid(void) const
Definition: EdbusData.h:307
bool is_array(void) const
Definition: EdbusData.h:372
static EdbusData from_int32(int32_t val)
Definition: EdbusData.h:432
static EdbusData from_bool(bool val)
Definition: EdbusData.h:417
bool is_int16(void) const
Definition: EdbusData.h:327
A class representing D-Bus struct and array.
Definition: EdbusList.h:114
static EdbusData from_invalid(void)
Definition: EdbusData.h:402
bool is_uint64(void) const
Definition: EdbusData.h:352
string
Definition: EdbusData.h:52
variant
Definition: EdbusData.h:57
static EdbusData from_string(const char *val)
Definition: EdbusData.h:457
Represents D-Bus object path.
Definition: EdbusObjectPath.h:58
unsigned short
Definition: EdbusData.h:46
unsigned integer
Definition: EdbusData.h:48
static EdbusData from_object_path(const EdbusObjectPath &val)
Definition: EdbusData.h:462
static EdbusData from_array(const EdbusList &val)
Definition: EdbusData.h:477
unsigned long long
Definition: EdbusData.h:50
static EdbusData from_struct(const EdbusList &val)
Definition: EdbusData.h:482
bool is_dict(void) const
Definition: EdbusData.h:387
EdbusDataType type(void) const
static EdbusData from_double(double val)
Definition: EdbusData.h:452
bool is_double(void) const
Definition: EdbusData.h:357
bool is_char(void) const
Definition: EdbusData.h:317
static EdbusData from_uint64(uint64_t val)
Definition: EdbusData.h:447
static EdbusData from_int64(int64_t val)
Definition: EdbusData.h:442
bool is_object_path(void) const
Definition: EdbusData.h:367
long long
Definition: EdbusData.h:49
integer
Definition: EdbusData.h:47
static EdbusData from_uint16(uint16_t val)
Definition: EdbusData.h:427
bool is_byte(void) const
Definition: EdbusData.h:312
EdbusObjectPath type.
Definition: EdbusData.h:53
EdbusData value
Definition: EdbusData.h:492
short
Definition: EdbusData.h:45
bool is_int64(void) const
Definition: EdbusData.h:347
static EdbusData from_dict(const EdbusDict &val)
Definition: EdbusData.h:472
char to_char(void) const
Definition: EdbusData.h:216
Dictionary container for D-Bus types.
Definition: EdbusDict.h:121
bool
Definition: EdbusData.h:44
double
Definition: EdbusData.h:51
bool is_uint32(void) const
Definition: EdbusData.h:342
static EdbusData from_byte(byte_t val)
Definition: EdbusData.h:407
structure
Definition: EdbusData.h:55
bool is_uint16(void) const
Definition: EdbusData.h:332
bool is_struct(void) const
Definition: EdbusData.h:377
byte
Definition: EdbusData.h:43
Invalid type (empty object)
Definition: EdbusData.h:42
static EdbusData from_uint32(uint32_t val)
Definition: EdbusData.h:437
static bool basic_type(const EdbusData &val)
Definition: EdbusData.h:394
dictionary
Definition: EdbusData.h:56
bool operator!=(const EdbusData &other) const
Definition: EdbusData.h:302
bool is_int32(void) const
Definition: EdbusData.h:337
Represents D-Bus variant.
Definition: EdbusData.h:490
bool is_string(void) const
Definition: EdbusData.h:362
array
Definition: EdbusData.h:54
static EdbusData from_int16(int16_t val)
Definition: EdbusData.h:422
EdbusDataType
Type of data current EdbusData object holds.
Definition: EdbusData.h:41