peerinterfaceproxy.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
2 /***************************************************************************
3  * Copyright (C) 2020 by Robert Middleton *
4  * robert.middleton@rm5248.com *
5  * *
6  * This file is part of the dbus-cxx library. *
7  ***************************************************************************/
8 #ifndef DBUSCXX_PEER_INTERFACE_PROXY_H
9 #define DBUSCXX_PEER_INTERFACE_PROXY_H
10 
11 #include "../interfaceproxy.h"
12 #include <memory>
13 
14 namespace DBus{
15 
17 private:
19 
20 public:
21  static std::shared_ptr<PeerInterfaceProxy> create();
22 
23  void Ping();
24 
25  std::string GetMachineId();
26 
27 private:
28  std::shared_ptr<MethodProxy<void()>> m_ping_method;
29  std::shared_ptr<MethodProxy<std::string()>> m_get_machine_method;
30 };
31 
32 
33 }
34 
35 #endif /* DBUSCXX_PEER_INTERFACE_PROXY_H */
An InterfaceProxy represents a remote Interface in another application on the DBus.
Definition: interfaceproxy.h:43
Definition: interfaceproxy.h:30
Definition: peerinterfaceproxy.h:16
std::shared_ptr< MethodProxy< std::string()> > m_get_machine_method
Definition: peerinterfaceproxy.h:29
void Ping()
Definition: peerinterfaceproxy.cpp:23
std::shared_ptr< MethodProxy< void()> > m_ping_method
Definition: peerinterfaceproxy.h:28
std::string GetMachineId()
Definition: peerinterfaceproxy.cpp:27
PeerInterfaceProxy()
Definition: peerinterfaceproxy.cpp:12
static std::shared_ptr< PeerInterfaceProxy > create()
Definition: peerinterfaceproxy.cpp:18
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18