From 19329569c399e944d24d293c5ee90c945ed482a1 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 17 Aug 2009 11:48:18 +0200 Subject: GUI now show the status window after report to let user know how did it go. --- lib/CommLayer/CommLayerServerDBus.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/CommLayer/CommLayerServerDBus.cpp') diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index 5d5972a..90a7878 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -61,11 +61,12 @@ uint64_t CCommLayerServerDBus::CreateReport_t(const std::string &pUUID,const std return job_id; } -bool CCommLayerServerDBus::Report(map_crash_report_t pReport,const std::string &pSender) +report_status_t CCommLayerServerDBus::Report(map_crash_report_t pReport,const std::string &pSender) { + report_status_t rs; unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str()); - m_pObserver->Report(pReport, to_string(unix_uid)); - return true; + rs = m_pObserver->Report(pReport, to_string(unix_uid)); + return rs; } bool CCommLayerServerDBus::DeleteDebugDump(const std::string& pUUID, const std::string& pSender) @@ -108,6 +109,11 @@ void CCommLayerServerDBus::JobDone(const std::string &pDest, uint64_t pJobID) CDBusServer_adaptor::JobDone(pDest, pJobID); } +void CCommLayerServerDBus::Warning(const std::string& pDest, const std::string& pMessage) +{ + CDBusServer_adaptor::Warning(pMessage); +} + vector_map_string_string_t CCommLayerServerDBus::GetPluginsInfo() { //FIXME: simplify? -- cgit