diff options
| author | dnovotny <danny@rawhide.localdomain> | 2009-09-14 09:40:28 -0400 |
|---|---|---|
| committer | dnovotny <danny@rawhide.localdomain> | 2009-09-14 09:40:28 -0400 |
| commit | 648a9cd08da32494227c4d36a4401fd877d6e03a (patch) | |
| tree | 40e6bd7ef22051ada9437ef22da9d2436a3fd358 /src/CLI | |
| parent | 814506ae62986c3c3b667afdae7a33fe6b9e690f (diff) | |
| parent | ac72b4b35e15c0823dc8c1f68684349a5e34c72a (diff) | |
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/CLI')
| -rw-r--r-- | src/CLI/CommLayerClientDBus.cpp | 14 | ||||
| -rw-r--r-- | src/CLI/CommLayerClientDBus.h | 17 | ||||
| -rw-r--r-- | src/CLI/Makefile.am | 18 |
3 files changed, 42 insertions, 7 deletions
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 <DBusCommon.h> +#include <DBusClientProxy.h> +#include <iostream> + +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..be89602 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 |
