#include <core/dbus/types/object_path.h>
#include <chrono>
#include <string>
Go to the source code of this file.
|
#define | SECONDS(seconds) std::chrono::seconds{seconds}; |
|
#define | METHOD_WITH_TIMEOUT_MS(Name, Itf, Timeout) |
|
#define | METHOD(Name, Itf, Timeout) |
|
#define | SIGNAL(Name, Itf, ArgType) |
|
#define | READABLE_PROPERTY(Name, Itf, Type) |
|
#define | WRITABLE_PROPERTY(Name, Itf, Type) |
|
#define METHOD |
( |
|
Name, |
|
|
|
Itf, |
|
|
|
Timeout |
|
) |
| |
Value:struct Name \
{ \
typedef Itf Interface; \
inline static const std::string& name() \
{ \
static const std::string s{#Name}; \
return s; \
} \
inline static const std::chrono::milliseconds default_timeout() { return std::chrono::milliseconds{7000}; } \
};\
Definition at line 41 of file macros.h.
#define METHOD_WITH_TIMEOUT_MS |
( |
|
Name, |
|
|
|
Itf, |
|
|
|
Timeout |
|
) |
| |
Value:struct Name \
{ \
typedef Itf Interface; \
inline static const std::string& name() \
{ \
static const std::string s{#Name}; \
return s; \
} \
inline static const std::chrono::milliseconds default_timeout() { return std::chrono::milliseconds{Timeout}; } \
};\
Definition at line 29 of file macros.h.
#define READABLE_PROPERTY |
( |
|
Name, |
|
|
|
Itf, |
|
|
|
Type |
|
) |
| |
Value:struct Name \
{ \
inline static std::string name() \
{ \
return #Name; \
}; \
typedef Itf Interface; \
typedef Type ValueType; \
static const bool readable = true; \
static const bool writable = false; \
}; \
Definition at line 64 of file macros.h.
#define SECONDS |
( |
|
seconds | ) |
std::chrono::seconds{seconds}; |
#define SIGNAL |
( |
|
Name, |
|
|
|
Itf, |
|
|
|
ArgType |
|
) |
| |
Value:struct Name \
{ \
inline static std::string name() \
{ \
return #Name; \
}; \
typedef Itf Interface; \
typedef ArgType ArgumentType; \
};\
Definition at line 53 of file macros.h.
#define WRITABLE_PROPERTY |
( |
|
Name, |
|
|
|
Itf, |
|
|
|
Type |
|
) |
| |
Value:struct Name \
{ \
inline static std::string name() \
{ \
return #Name; \
}; \
typedef Itf Interface; \
typedef Type ValueType; \
static const bool readable = true; \
static const bool writable = true; \
}; \
Definition at line 77 of file macros.h.