Files

48 lines
1.3 KiB
C++
Raw Permalink Normal View History

2019-03-26 08:59:50 +01:00
/*
* This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!
2019-03-26 08:59:50 +01:00
*/
#ifndef __sdbuscpp__concatenator_proxy_h__proxy__H__
#define __sdbuscpp__concatenator_proxy_h__proxy__H__
#include <sdbus-c++/sdbus-c++.h>
#include <string>
#include <tuple>
namespace org {
namespace sdbuscpp {
namespace stresstests {
2019-03-26 08:59:50 +01:00
class concatenator_proxy
{
public:
static constexpr const char* INTERFACE_NAME = "org.sdbuscpp.stresstests.concatenator";
2019-03-26 08:59:50 +01:00
protected:
concatenator_proxy(sdbus::IProxy& proxy)
: proxy_(proxy)
2019-03-26 08:59:50 +01:00
{
proxy_.uponSignal("concatenatedSignal").onInterface(INTERFACE_NAME).call([this](const std::string& concatenatedString){ this->onConcatenatedSignal(concatenatedString); });
2019-03-26 08:59:50 +01:00
}
~concatenator_proxy() = default;
2019-03-26 08:59:50 +01:00
virtual void onConcatenatedSignal(const std::string& concatenatedString) = 0;
virtual void onConcatenateReply(const std::string& result, const sdbus::Error* error) = 0;
public:
sdbus::PendingAsyncCall concatenate(const std::map<std::string, sdbus::Variant>& params)
2019-03-26 08:59:50 +01:00
{
return proxy_.callMethodAsync("concatenate").onInterface(INTERFACE_NAME).withArguments(params).uponReplyInvoke([this](const sdbus::Error* error, const std::string& result){ this->onConcatenateReply(result, error); });
2019-03-26 08:59:50 +01:00
}
private:
sdbus::IProxy& proxy_;
2019-03-26 08:59:50 +01:00
};
}}} // namespaces
#endif