dbus-cxx logo
enums.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007,2010 by Rick L. Vinyard, Jr. *
3  * rvinyard@cs.nmsu.edu *
4  * *
5  * This file is part of the dbus-cxx library. *
6  * *
7  * The dbus-cxx library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * version 3 as published by the Free Software Foundation. *
10  * *
11  * The dbus-cxx library is distributed in the hope that it will be *
12  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this software. If not see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 #include <dbus/dbus.h>
20 
21 #ifndef DBUSCXX_ENUMS_H
22 #define DBUSCXX_ENUMS_H
23 
24 namespace DBus {
25 
26  typedef enum BusType
27  {
29  BUS_SESSION=DBUS_BUS_SESSION,
30  BUS_SYSTEM=DBUS_BUS_SYSTEM,
31  BUS_STARTER=DBUS_BUS_STARTER
32  } BusType;
33 
34 
35  typedef enum CreateMethod
36  {
39  } CreateMethod;
40 
41  typedef enum Type
42  {
43  TYPE_INVALID = DBUS_TYPE_INVALID,
44  TYPE_BYTE = DBUS_TYPE_BYTE,
45  TYPE_BOOLEAN = DBUS_TYPE_BOOLEAN,
46  TYPE_INT16 = DBUS_TYPE_INT16,
47  TYPE_UINT16 = DBUS_TYPE_UINT16,
48  TYPE_INT32 = DBUS_TYPE_INT32,
49  TYPE_UINT32 = DBUS_TYPE_UINT32,
50  TYPE_INT64 = DBUS_TYPE_INT64,
51  TYPE_UINT64 = DBUS_TYPE_UINT64,
52  TYPE_DOUBLE = DBUS_TYPE_DOUBLE,
53  TYPE_STRING = DBUS_TYPE_STRING,
54  TYPE_OBJECT_PATH = DBUS_TYPE_OBJECT_PATH,
55  TYPE_SIGNATURE = DBUS_TYPE_SIGNATURE,
56  TYPE_ARRAY = DBUS_TYPE_ARRAY,
57  TYPE_VARIANT = DBUS_TYPE_VARIANT,
58  TYPE_STRUCT = DBUS_TYPE_STRUCT,
59  TYPE_DICT_ENTRY = DBUS_TYPE_DICT_ENTRY,
60  TYPE_UNIX_FD = DBUS_TYPE_UNIX_FD,
61  } Type;
62 
63  typedef enum ContainerType
64  {
65  CONTAINER_ARRAY = DBUS_TYPE_ARRAY,
66  CONTAINER_VARIANT = DBUS_TYPE_VARIANT,
67  CONTAINER_STRUCT = DBUS_TYPE_STRUCT,
68  CONTAINER_DICT_ENTRY = DBUS_TYPE_DICT_ENTRY,
69  } ContainerType;
70 
71  typedef enum MessageType
72  {
73  INVALID_MESSAGE = DBUS_MESSAGE_TYPE_INVALID,
74  CALL_MESSAGE = DBUS_MESSAGE_TYPE_METHOD_CALL,
75  RETURN_MESSAGE = DBUS_MESSAGE_TYPE_METHOD_RETURN,
76  ERROR_MESSAGE = DBUS_MESSAGE_TYPE_ERROR,
77  SIGNAL_MESSAGE = DBUS_MESSAGE_TYPE_SIGNAL,
78  } MessageType;
79 
80  typedef enum DispatchStatus
81  {
82  DISPATCH_DATA_REMAINS = DBUS_DISPATCH_DATA_REMAINS,
83  DISPATCH_COMPLETE = DBUS_DISPATCH_COMPLETE,
84  DISPATCH_NEED_MEMORY = DBUS_DISPATCH_NEED_MEMORY,
86 
87  typedef enum HandlerResult
88  {
89  HANDLED = DBUS_HANDLER_RESULT_HANDLED,
90  NOT_HANDLED = DBUS_HANDLER_RESULT_NOT_YET_HANDLED,
91  HANDLER_NEEDS_MEMORY = DBUS_HANDLER_RESULT_NEED_MEMORY,
92  } HandlerResult;
93 
94  typedef enum FilterResult
95  {
99  } FilterResult;
100 
101  typedef enum StartReply
102  {
104  START_REPLY_SUCCESS = DBUS_START_REPLY_SUCCESS,
105  START_REPLY_ALREADY_RUNNING = DBUS_START_REPLY_ALREADY_RUNNING,
106  } StartReply;
107 
108  typedef enum WatchStatus
109  {
110  WATCH_READABLE = DBUS_WATCH_READABLE,
111  WATCH_WRITABLE = DBUS_WATCH_WRITABLE,
112  WATCH_ERROR = DBUS_WATCH_ERROR,
113  WATCH_HANGUP = DBUS_WATCH_HANGUP
114  } WatchStatus;
115 
116  typedef enum PrimaryFallback
117  {
120  } PrimaryFallback;
121 
122 }
123 
124 #endif
125 
Definition: enums.h:28
Definition: enums.h:113
Definition: enums.h:54
HandlerResult
Definition: enums.h:87
BusType
Definition: enums.h:26
Definition: enums.h:55
Definition: enums.h:44
Definition: enums.h:98
Definition: enums.h:48
Definition: enums.h:65
FilterResult
Definition: enums.h:94
Definition: accumulators.h:24
StartReply
Definition: enums.h:101
Definition: enums.h:45
Definition: enums.h:49
Definition: enums.h:73
Definition: enums.h:76
Definition: enums.h:90
Definition: enums.h:47
Definition: enums.h:43
Definition: enums.h:60
DispatchStatus
Definition: enums.h:80
Definition: enums.h:38
Definition: enums.h:77
Definition: enums.h:51
Definition: enums.h:52
Definition: enums.h:118
Definition: enums.h:112
ContainerType
Definition: enums.h:63
Definition: enums.h:57
MessageType
Definition: enums.h:71
Definition: enums.h:111
Definition: enums.h:84
Definition: enums.h:37
Definition: enums.h:83
Definition: enums.h:96
Definition: enums.h:56
Definition: enums.h:105
Definition: enums.h:59
Definition: enums.h:68
CreateMethod
Definition: enums.h:35
The systemwide bus.
Definition: enums.h:30
Definition: enums.h:110
Definition: enums.h:58
Definition: enums.h:97
Definition: enums.h:46
The bus that started us, if any.
Definition: enums.h:31
Definition: enums.h:67
Type
Definition: enums.h:41
Definition: enums.h:104
Definition: enums.h:74
The login session bus.
Definition: enums.h:29
Definition: enums.h:50
WatchStatus
Definition: enums.h:108
Definition: enums.h:66
Definition: enums.h:75
Definition: enums.h:89
Definition: enums.h:53
Definition: enums.h:91
Definition: enums.h:103
PrimaryFallback
Definition: enums.h:116
Definition: enums.h:82
Definition: enums.h:119

Generated on Sun Mar 19 2017 14:54:27 for dbus-cxx by doxygen 1.8.8