DBusDaemonProxy.h
Go to the documentation of this file.
1 #ifndef DBUSDAEMONPROXY_H
2 #define DBUSDAEMONPROXY_H
3 
4 #include <dbus-cxx.h>
5 #include <memory>
6 #include <stdint.h>
7 #include <string>
8 namespace DBus {
10  : public DBus::ObjectProxy {
11 protected:
12  DBusDaemonProxy( std::shared_ptr<DBus::Connection> conn, std::string dest = "org.freedesktop.DBus", std::string path = "/org/freedesktop/DBus", DBus::ThreadForCalling signalCallingThread = DBus::ThreadForCalling::DispatcherThread );
13 public:
14  static std::shared_ptr<DBusDaemonProxy> create( std::shared_ptr<DBus::Connection> conn, std::string dest = "org.freedesktop.DBus", std::string path = "/org/freedesktop/DBus", DBus::ThreadForCalling signalCallingThread = DBus::ThreadForCalling::DispatcherThread );
15  std::string Hello( );
16  uint32_t RequestName( std::string arg0, uint32_t arg1 );
17  uint32_t ReleaseName( std::string arg0 );
18  uint32_t StartServiceByName( std::string arg0, uint32_t arg1 );
19  void UpdateActivationEnvironment( std::map<std::string, std::string> arg0 );
20  bool NameHasOwner( std::string arg0 );
21  std::vector<std::string> ListNames( );
22  std::vector<std::string> ListActivatableNames( );
23  void AddMatch( std::string arg0 );
24  void RemoveMatch( std::string arg0 );
25  std::string GetNameOwner( std::string arg0 );
26  std::vector<std::string> ListQueuedOwners( std::string arg0 );
27  uint32_t GetConnectionUnixUser( std::string arg0 );
28  uint32_t GetConnectionUnixProcessID( std::string arg0 );
29  std::vector<uint8_t> GetAdtAuditSessionData( std::string arg0 );
30  std::vector<uint8_t> GetConnectionSELinuxSecurityContext( std::string arg0 );
31  void ReloadConfig( );
32  std::string GetId( );
33  std::map<std::string, DBus::Variant> GetConnectionCredentials( std::string arg0 );
34  std::shared_ptr<DBus::SignalProxy<void(std::string, std::string, std::string)>> signal_NameOwnerChanged( );
35  std::shared_ptr<DBus::SignalProxy<void(std::string)>> signal_NameLost( );
36  std::shared_ptr<DBus::SignalProxy<void(std::string)>> signal_NameAcquired( );
37  DBus::Variant Get( std::string arg0, std::string arg1 );
38  std::map<std::string, DBus::Variant> GetAll( std::string arg0 );
39  void Set( std::string arg0, std::string arg1, DBus::Variant arg2 );
40  std::shared_ptr<DBus::SignalProxy<void(std::string, std::map<std::string, DBus::Variant>, std::vector<std::string>)>> signal_PropertiesChanged( );
41  std::string Introspect( );
42  void BecomeMonitor( std::vector<std::string> arg0, uint32_t arg1 );
43  std::map<std::string, DBus::Variant> GetStats( );
44  std::map<std::string, DBus::Variant> GetConnectionStats( std::string arg0 );
45  std::map<std::string, std::vector<std::string>> GetAllMatchRules( );
46  std::string GetMachineId( );
47  void Ping( );
48 protected:
49  std::shared_ptr<DBus::MethodProxy<std::string()>> m_method_Hello;
50  std::shared_ptr<DBus::MethodProxy<uint32_t( std::string, uint32_t )>> m_method_RequestName;
51  std::shared_ptr<DBus::MethodProxy<uint32_t( std::string )>> m_method_ReleaseName;
52  std::shared_ptr<DBus::MethodProxy<uint32_t( std::string, uint32_t )>> m_method_StartServiceByName;
53  std::shared_ptr<DBus::MethodProxy<void( std::map<std::string, std::string> )>> m_method_UpdateActivationEnvironment;
54  std::shared_ptr<DBus::MethodProxy<bool( std::string )>> m_method_NameHasOwner;
55  std::shared_ptr<DBus::MethodProxy<std::vector<std::string>()>> m_method_ListNames;
56  std::shared_ptr<DBus::MethodProxy<std::vector<std::string>()>> m_method_ListActivatableNames;
57  std::shared_ptr<DBus::MethodProxy<void( std::string )>> m_method_AddMatch;
58  std::shared_ptr<DBus::MethodProxy<void( std::string )>> m_method_RemoveMatch;
59  std::shared_ptr<DBus::MethodProxy<std::string( std::string )>> m_method_GetNameOwner;
60  std::shared_ptr<DBus::MethodProxy<std::vector<std::string>( std::string )>> m_method_ListQueuedOwners;
61  std::shared_ptr<DBus::MethodProxy<uint32_t( std::string )>> m_method_GetConnectionUnixUser;
62  std::shared_ptr<DBus::MethodProxy<uint32_t( std::string )>> m_method_GetConnectionUnixProcessID;
63  std::shared_ptr<DBus::MethodProxy<std::vector<uint8_t>( std::string )>> m_method_GetAdtAuditSessionData;
64  std::shared_ptr<DBus::MethodProxy<std::vector<uint8_t>( std::string )>> m_method_GetConnectionSELinuxSecurityContext;
65  std::shared_ptr<DBus::MethodProxy<void()>> m_method_ReloadConfig;
66  std::shared_ptr<DBus::MethodProxy<std::string()>> m_method_GetId;
67  std::shared_ptr<DBus::MethodProxy<std::map<std::string, DBus::Variant>( std::string )>> m_method_GetConnectionCredentials;
68  std::shared_ptr<DBus::SignalProxy<void(std::string, std::string, std::string)>> m_signalproxy_NameOwnerChanged;
69  std::shared_ptr<DBus::SignalProxy<void(std::string)>> m_signalproxy_NameLost;
70  std::shared_ptr<DBus::SignalProxy<void(std::string)>> m_signalproxy_NameAcquired;
71  std::shared_ptr<DBus::MethodProxy<DBus::Variant( std::string, std::string )>> m_method_Get;
72  std::shared_ptr<DBus::MethodProxy<std::map<std::string, DBus::Variant>( std::string )>> m_method_GetAll;
73  std::shared_ptr<DBus::MethodProxy<void( std::string, std::string, DBus::Variant )>> m_method_Set;
74  std::shared_ptr<DBus::SignalProxy<void(std::string, std::map<std::string, DBus::Variant>, std::vector<std::string>)>> m_signalproxy_PropertiesChanged;
75  std::shared_ptr<DBus::MethodProxy<std::string()>> m_method_Introspect;
76  std::shared_ptr<DBus::MethodProxy<void( std::vector<std::string>, uint32_t )>> m_method_BecomeMonitor;
77  std::shared_ptr<DBus::MethodProxy<std::map<std::string, DBus::Variant>()>> m_method_GetStats;
78  std::shared_ptr<DBus::MethodProxy<std::map<std::string, DBus::Variant>( std::string )>> m_method_GetConnectionStats;
79  std::shared_ptr<DBus::MethodProxy<std::map<std::string, std::vector<std::string>>()>> m_method_GetAllMatchRules;
80  std::shared_ptr<DBus::MethodProxy<std::string()>> m_method_GetMachineId;
81  std::shared_ptr<DBus::MethodProxy<void()>> m_method_Ping;
82 };
83 } /* namespace DBus */
84 #endif /* DBUSDAEMONPROXY_H */
Definition: DBusDaemonProxy.h:10
std::shared_ptr< DBus::SignalProxy< void(std::string, std::map< std::string, DBus::Variant >, std::vector< std::string >)> > m_signalproxy_PropertiesChanged
Definition: DBusDaemonProxy.h:74
std::shared_ptr< DBus::MethodProxy< std::vector< uint8_t > std::string)> > m_method_GetConnectionSELinuxSecurityContext
Definition: DBusDaemonProxy.h:64
std::vector< uint8_t > GetConnectionSELinuxSecurityContext(std::string arg0)
Definition: DBusDaemonProxy.cpp:105
std::vector< std::string > ListActivatableNames()
Definition: DBusDaemonProxy.cpp:73
std::shared_ptr< DBus::MethodProxy< bool(std::string)> > m_method_NameHasOwner
Definition: DBusDaemonProxy.h:54
void Set(std::string arg0, std::string arg1, DBus::Variant arg2)
Definition: DBusDaemonProxy.cpp:141
std::map< std::string, DBus::Variant > GetStats()
Definition: DBusDaemonProxy.cpp:157
std::shared_ptr< DBus::MethodProxy< uint32_t(std::string)> > m_method_GetConnectionUnixProcessID
Definition: DBusDaemonProxy.h:62
std::shared_ptr< DBus::MethodProxy< DBus::Variant(std::string, std::string)> > m_method_Get
Definition: DBusDaemonProxy.h:71
std::shared_ptr< DBus::MethodProxy< uint32_t(std::string)> > m_method_GetConnectionUnixUser
Definition: DBusDaemonProxy.h:61
static std::shared_ptr< DBusDaemonProxy > create(std::shared_ptr< DBus::Connection > conn, std::string dest="org.freedesktop.DBus", std::string path="/org/freedesktop/DBus", DBus::ThreadForCalling signalCallingThread=DBus::ThreadForCalling::DispatcherThread)
Definition: DBusDaemonProxy.cpp:41
void Ping()
Definition: DBusDaemonProxy.cpp:173
DBus::Variant Get(std::string arg0, std::string arg1)
Definition: DBusDaemonProxy.cpp:133
uint32_t RequestName(std::string arg0, uint32_t arg1)
Definition: DBusDaemonProxy.cpp:49
std::shared_ptr< DBus::SignalProxy< void(std::string, std::string, std::string)> > signal_NameOwnerChanged()
Definition: DBusDaemonProxy.cpp:121
std::string Introspect()
Definition: DBusDaemonProxy.cpp:149
std::shared_ptr< DBus::MethodProxy< std::map< std::string, DBus::Variant > std::string)> > m_method_GetConnectionStats
Definition: DBusDaemonProxy.h:78
std::shared_ptr< DBus::MethodProxy< std::string()> > m_method_GetId
Definition: DBusDaemonProxy.h:66
std::map< std::string, DBus::Variant > GetAll(std::string arg0)
Definition: DBusDaemonProxy.cpp:137
std::string GetId()
Definition: DBusDaemonProxy.cpp:113
std::vector< std::string > ListNames()
Definition: DBusDaemonProxy.cpp:69
DBusDaemonProxy(std::shared_ptr< DBus::Connection > conn, std::string dest="org.freedesktop.DBus", std::string path="/org/freedesktop/DBus", DBus::ThreadForCalling signalCallingThread=DBus::ThreadForCalling::DispatcherThread)
Definition: DBusDaemonProxy.cpp:5
std::shared_ptr< DBus::SignalProxy< void(std::string)> > signal_NameAcquired()
Definition: DBusDaemonProxy.cpp:129
std::shared_ptr< DBus::MethodProxy< void(std::string)> > m_method_RemoveMatch
Definition: DBusDaemonProxy.h:58
void AddMatch(std::string arg0)
Definition: DBusDaemonProxy.cpp:77
bool NameHasOwner(std::string arg0)
Definition: DBusDaemonProxy.cpp:65
std::shared_ptr< DBus::MethodProxy< std::vector< std::string >)> > m_method_ListActivatableNames
Definition: DBusDaemonProxy.h:56
void ReloadConfig()
Definition: DBusDaemonProxy.cpp:109
uint32_t GetConnectionUnixUser(std::string arg0)
Definition: DBusDaemonProxy.cpp:93
std::shared_ptr< DBus::MethodProxy< void(std::string)> > m_method_AddMatch
Definition: DBusDaemonProxy.h:57
std::map< std::string, std::vector< std::string > > GetAllMatchRules()
Definition: DBusDaemonProxy.cpp:165
std::shared_ptr< DBus::MethodProxy< std::string()> > m_method_GetMachineId
Definition: DBusDaemonProxy.h:80
std::shared_ptr< DBus::MethodProxy< std::vector< std::string > std::string)> > m_method_ListQueuedOwners
Definition: DBusDaemonProxy.h:60
std::string Hello()
Definition: DBusDaemonProxy.cpp:45
std::vector< std::string > ListQueuedOwners(std::string arg0)
Definition: DBusDaemonProxy.cpp:89
std::shared_ptr< DBus::MethodProxy< std::vector< uint8_t > std::string)> > m_method_GetAdtAuditSessionData
Definition: DBusDaemonProxy.h:63
uint32_t StartServiceByName(std::string arg0, uint32_t arg1)
Definition: DBusDaemonProxy.cpp:57
std::shared_ptr< DBus::SignalProxy< void(std::string, std::string, std::string)> > m_signalproxy_NameOwnerChanged
Definition: DBusDaemonProxy.h:68
std::shared_ptr< DBus::MethodProxy< std::string()> > m_method_Hello
Definition: DBusDaemonProxy.h:49
std::map< std::string, DBus::Variant > GetConnectionStats(std::string arg0)
Definition: DBusDaemonProxy.cpp:161
void UpdateActivationEnvironment(std::map< std::string, std::string > arg0)
Definition: DBusDaemonProxy.cpp:61
std::shared_ptr< DBus::SignalProxy< void(std::string, std::map< std::string, DBus::Variant >, std::vector< std::string >)> > signal_PropertiesChanged()
Definition: DBusDaemonProxy.cpp:145
std::shared_ptr< DBus::MethodProxy< uint32_t(std::string, uint32_t)> > m_method_RequestName
Definition: DBusDaemonProxy.h:50
std::shared_ptr< DBus::SignalProxy< void(std::string)> > m_signalproxy_NameLost
Definition: DBusDaemonProxy.h:69
void BecomeMonitor(std::vector< std::string > arg0, uint32_t arg1)
Definition: DBusDaemonProxy.cpp:153
std::shared_ptr< DBus::MethodProxy< uint32_t(std::string, uint32_t)> > m_method_StartServiceByName
Definition: DBusDaemonProxy.h:52
void RemoveMatch(std::string arg0)
Definition: DBusDaemonProxy.cpp:81
std::shared_ptr< DBus::MethodProxy< std::map< std::string, DBus::Variant >)> > m_method_GetStats
Definition: DBusDaemonProxy.h:77
std::shared_ptr< DBus::SignalProxy< void(std::string)> > signal_NameLost()
Definition: DBusDaemonProxy.cpp:125
std::shared_ptr< DBus::MethodProxy< std::map< std::string, DBus::Variant > std::string)> > m_method_GetConnectionCredentials
Definition: DBusDaemonProxy.h:67
std::shared_ptr< DBus::MethodProxy< void(std::map< std::string, std::string >)> > m_method_UpdateActivationEnvironment
Definition: DBusDaemonProxy.h:53
std::shared_ptr< DBus::MethodProxy< void(std::string, std::string, DBus::Variant)> > m_method_Set
Definition: DBusDaemonProxy.h:73
std::map< std::string, DBus::Variant > GetConnectionCredentials(std::string arg0)
Definition: DBusDaemonProxy.cpp:117
std::shared_ptr< DBus::MethodProxy< void()> > m_method_ReloadConfig
Definition: DBusDaemonProxy.h:65
std::vector< uint8_t > GetAdtAuditSessionData(std::string arg0)
Definition: DBusDaemonProxy.cpp:101
uint32_t GetConnectionUnixProcessID(std::string arg0)
Definition: DBusDaemonProxy.cpp:97
std::shared_ptr< DBus::MethodProxy< void()> > m_method_Ping
Definition: DBusDaemonProxy.h:81
std::shared_ptr< DBus::MethodProxy< std::map< std::string, DBus::Variant > std::string)> > m_method_GetAll
Definition: DBusDaemonProxy.h:72
std::string GetNameOwner(std::string arg0)
Definition: DBusDaemonProxy.cpp:85
std::string GetMachineId()
Definition: DBusDaemonProxy.cpp:169
std::shared_ptr< DBus::MethodProxy< void(std::vector< std::string >, uint32_t)> > m_method_BecomeMonitor
Definition: DBusDaemonProxy.h:76
std::shared_ptr< DBus::MethodProxy< std::string()> > m_method_Introspect
Definition: DBusDaemonProxy.h:75
std::shared_ptr< DBus::MethodProxy< std::map< std::string, std::vector< std::string > >)> > m_method_GetAllMatchRules
Definition: DBusDaemonProxy.h:79
std::shared_ptr< DBus::MethodProxy< std::vector< std::string >)> > m_method_ListNames
Definition: DBusDaemonProxy.h:55
uint32_t ReleaseName(std::string arg0)
Definition: DBusDaemonProxy.cpp:53
std::shared_ptr< DBus::MethodProxy< uint32_t(std::string)> > m_method_ReleaseName
Definition: DBusDaemonProxy.h:51
std::shared_ptr< DBus::MethodProxy< std::string(std::string)> > m_method_GetNameOwner
Definition: DBusDaemonProxy.h:59
std::shared_ptr< DBus::SignalProxy< void(std::string)> > m_signalproxy_NameAcquired
Definition: DBusDaemonProxy.h:70
Definition: interfaceproxy.h:30
Object proxies are local proxies that provide local methods and signals for remote objects with dbus ...
Definition: objectproxy.h:44
const Path & path() const
Definition: objectproxy.cpp:89
Definition: signalproxy.h:26
A Variant is a type-safe union for DBus operations.
Definition: variant.h:42
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
ThreadForCalling
Gives hints to the connection as to which thread should be the one to call the methods on the given o...
Definition: enums.h:133
@ DispatcherThread
Always call methods for this object from the dispatcher thread.