summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 13:50:07 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 13:50:07 +0100
commitbc02aab93e78089ff48e381c0ced0a6dbb116efa (patch)
tree7660b0c7760232e8d76f0133ee993cf0b2320029 /src/Daemon
parentf1c7c25720243cb260410a57fef0c03f330dad68 (diff)
downloadabrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.tar.gz
abrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.tar.xz
abrt-bc02aab93e78089ff48e381c0ced0a6dbb116efa.zip
Added error reporting over dbus to daemon, error handling in gui, about dialog
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/CrashWatcher.cpp1
-rw-r--r--src/Daemon/DBusServerProxy.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 21c7908a..47e13c9f 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -170,6 +170,7 @@ dbus_map_report_info_t CCrashWatcher::CreateReport(const std::string &pUUID,cons
}
catch(std::string err)
{
+ Error(err);
std::cerr << err << std::endl;
}
return retval;
diff --git a/src/Daemon/DBusServerProxy.h b/src/Daemon/DBusServerProxy.h
index a8ed9abf..8ed1e5bc 100644
--- a/src/Daemon/DBusServerProxy.h
+++ b/src/Daemon/DBusServerProxy.h
@@ -113,6 +113,14 @@ public:
wi << arg1;
emit_signal(sig);
}
+
+ void Error(const std::string& arg1)
+ {
+ ::DBus::SignalMessage sig("Error");
+ ::DBus::MessageIter wi = sig.writer();
+ wi << arg1;
+ emit_signal(sig);
+ }
private: