summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-14 14:57:55 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-14 14:57:55 +0200
commit13483daa13d1b366fa9c7222361c094d3726f03e (patch)
tree0ca9c507072af60fd782f2e2ef2969a06519a12b /src
parentcc83804e6fb6b9b6534ea58003cd73d31968ca27 (diff)
downloadabrt-13483daa13d1b366fa9c7222361c094d3726f03e.tar.gz
abrt-13483daa13d1b366fa9c7222361c094d3726f03e.tar.xz
abrt-13483daa13d1b366fa9c7222361c094d3726f03e.zip
move lib/CommLayer/CommLayerClientDBus.{h,cpp) -> src/CLI
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Applet/CCApplet.h2
-rw-r--r--src/Applet/Makefile.am4
-rw-r--r--src/CLI/CommLayerClientDBus.cpp14
-rw-r--r--src/CLI/CommLayerClientDBus.h17
-rw-r--r--src/CLI/Makefile.am18
5 files changed, 46 insertions, 9 deletions
diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h
index dccd70b7..90a79e26 100644
--- a/src/Applet/CCApplet.h
+++ b/src/Applet/CCApplet.h
@@ -24,7 +24,7 @@
#include <map>
#include <string>
#include <DBusClientProxy.h>
-#include<libnotify/notify.h>
+#include <libnotify/notify.h>
class CApplet
: public CDBusClient_proxy,
diff --git a/src/Applet/Makefile.am b/src/Applet/Makefile.am
index 886102ff..5190649b 100644
--- a/src/Applet/Makefile.am
+++ b/src/Applet/Makefile.am
@@ -1,6 +1,8 @@
bin_PROGRAMS = abrt-applet
-abrt_applet_SOURCES = Applet.cpp CCApplet.cpp CCApplet.h
+abrt_applet_SOURCES = \
+ Applet.cpp \
+ CCApplet.h CCApplet.cpp
abrt_applet_CPPFLAGS = \
-Wall -Werror \
-I../Daemon/ \
diff --git a/src/CLI/CommLayerClientDBus.cpp b/src/CLI/CommLayerClientDBus.cpp
new file mode 100644
index 00000000..77983463
--- /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 00000000..9e63f58c
--- /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 6900bda1..33daaae6 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