diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-02 15:18:52 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-02 15:18:52 +0100 |
| commit | f98ee8ad41a9f9ebc8f2318a4bbf9ecfc01bc1ab (patch) | |
| tree | 02b8f5bae86c0ac3b5e22708f637a9b77765810f /src/Daemon/CrashWatcher.cpp | |
| parent | a83f30394c4d7790b574b66b8fa326430830d706 (diff) | |
| download | abrt-f98ee8ad41a9f9ebc8f2318a4bbf9ecfc01bc1ab.tar.gz abrt-f98ee8ad41a9f9ebc8f2318a4bbf9ecfc01bc1ab.tar.xz abrt-f98ee8ad41a9f9ebc8f2318a4bbf9ecfc01bc1ab.zip | |
Added new method DeleteDebugDump
Added new signal "AnalyzeComplete"
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
| -rw-r--r-- | src/Daemon/CrashWatcher.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index c06ad01..5eb7705 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -148,6 +148,8 @@ dbus_map_report_info_t CCrashWatcher::CreateReport(const std::string &pUUID,cons { m_pMW->CreateReport(pUUID,to_string(unix_uid), crashReport); retval = crashReport.GetMap(); + //send out the message about completed analyze + AnalyzeComplete(pUUID); } catch(std::string err) { @@ -167,7 +169,6 @@ bool CCrashWatcher::Report(dbus_map_report_info_t pReport) // std::cerr << it->second << std::endl; //} crashReport.SetFromMap(pReport); - std::cerr << crashReport.m_sPackage << std::endl; try { m_pMW->Report(crashReport); @@ -175,10 +176,26 @@ bool CCrashWatcher::Report(dbus_map_report_info_t pReport) catch(std::string err) { std::cerr << err << std::endl; + return false; } return true; } +bool CCrashWatcher::DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender) +{ + unsigned long unix_uid = m_pConn->sender_unix_uid(pDBusSender.c_str()); + try + { + //std::cerr << "DeleteDebugDump(" << pUUID << "," << unix_uid << ")" << std::endl; + m_pMW->DeleteDebugDump(pUUID,to_string(unix_uid)); + } + catch(std::string err) + { + std::cerr << err << std::endl; + return false; + } + return true; +} void CCrashWatcher::Lock() { int lfp = open("crashcatcher.lock",O_RDWR|O_CREAT,0640); |
