From 13483daa13d1b366fa9c7222361c094d3726f03e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 14 Sep 2009 14:57:55 +0200 Subject: move lib/CommLayer/CommLayerClientDBus.{h,cpp) -> src/CLI Signed-off-by: Denys Vlasenko --- src/CLI/CommLayerClientDBus.cpp | 14 ++++++++++++++ src/CLI/CommLayerClientDBus.h | 17 +++++++++++++++++ src/CLI/Makefile.am | 18 +++++++++++------- 3 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 src/CLI/CommLayerClientDBus.cpp create mode 100644 src/CLI/CommLayerClientDBus.h (limited to 'src/CLI') diff --git a/src/CLI/CommLayerClientDBus.cpp b/src/CLI/CommLayerClientDBus.cpp new file mode 100644 index 0000000..7798346 --- /dev/null +++ b/src/CLI/CommLayerClientDBus.cpp @@ -0,0 +1,14 @@ +#include "CommLayerClientDBus.h" +CCommLayerClientDBus::CCommLayerClientDBus(DBus::Connection &connection, const char *path, const char *name) +: CDBusClient_proxy(connection), + DBus::ObjectProxy(connection, path, name) +{ +} +CCommLayerClientDBus::~CCommLayerClientDBus() +{ +}; + +void Crash(std::string &value) +{ + std::cout << "Another Crash?" << std::endl; +} diff --git a/src/CLI/CommLayerClientDBus.h b/src/CLI/CommLayerClientDBus.h new file mode 100644 index 0000000..9e63f58 --- /dev/null +++ b/src/CLI/CommLayerClientDBus.h @@ -0,0 +1,17 @@ +#include +#include +#include + +class CCommLayerClientDBus +: public CDBusClient_proxy, + public DBus::IntrospectableProxy, + public DBus::ObjectProxy +{ + public: + CCommLayerClientDBus(DBus::Connection &connection, const char *path, const char *name); + ~CCommLayerClientDBus(); + void Crash(std::string &value) + { + std::cout << "Another Crash?" << std::endl; + } +}; diff --git a/src/CLI/Makefile.am b/src/CLI/Makefile.am index 6900bda..33daaae 100644 --- a/src/CLI/Makefile.am +++ b/src/CLI/Makefile.am @@ -3,11 +3,15 @@ #abrt_cli_CPPFLAGS = -I$(srcdir)/../../inc -DVAR_RUN=\"$(VAR_RUN)\" bin_PROGRAMS = abrt-cli -abrt_cli_SOURCES = CLI.cpp ABRTSocket.cpp ABRTSocket.h -abrt_cli_CPPFLAGS = $(DBUS_GLIB_CFLAGS) $(GTK_CFLAGS) $(DBUSCPP_CFLAGS) $(LIBNOTIFY_CFLAGS)\ - -I$(srcdir)/../../inc -DVAR_RUN=\"$(VAR_RUN)\" \ - -I$(srcdir)/../../lib/CommLayer \ - $(ENABLE_SOCKET_OR_DBUS) \ - -I../../lib/MiddleWare +abrt_cli_SOURCES = \ + CLI.cpp \ + ABRTSocket.h ABRTSocket.cpp \ + CommLayerClientDBus.h CommLayerClientDBus.cpp \ +abrt_cli_CPPFLAGS = \ + $(DBUS_GLIB_CFLAGS) $(GTK_CFLAGS) $(DBUSCPP_CFLAGS) $(LIBNOTIFY_CFLAGS)\ + -I$(srcdir)/../../inc -DVAR_RUN=\"$(VAR_RUN)\" \ + -I$(srcdir)/../../lib/CommLayer \ + $(ENABLE_SOCKET_OR_DBUS) \ + -I../../lib/MiddleWare -abrt_cli_LDADD = ../../lib/CommLayer/libABRTCommLayer.la \ No newline at end of file +abrt_cli_LDADD = ../../lib/CommLayer/libABRTCommLayer.la -- cgit