summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/CommLayerServerDBus.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-07-20 17:01:01 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-07-20 17:01:01 +0200
commitc581668d59fc839f42a9e42ff4b371b02789aaa3 (patch)
tree7191f4085b1763b01dd4f813caedd93bae157ba8 /lib/CommLayer/CommLayerServerDBus.cpp
parentede175cb92ada7e1235b9b1ee8777d7d1ad32613 (diff)
downloadabrt-c581668d59fc839f42a9e42ff4b371b02789aaa3.tar.gz
abrt-c581668d59fc839f42a9e42ff4b371b02789aaa3.tar.xz
abrt-c581668d59fc839f42a9e42ff4b371b02789aaa3.zip
Daemon: added threaded CreateReport -> breaks CLI!
Diffstat (limited to 'lib/CommLayer/CommLayerServerDBus.cpp')
-rw-r--r--lib/CommLayer/CommLayerServerDBus.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp
index 139575b..d3e00c1 100644
--- a/lib/CommLayer/CommLayerServerDBus.cpp
+++ b/lib/CommLayer/CommLayerServerDBus.cpp
@@ -39,7 +39,8 @@ vector_crash_infos_t CCommLayerServerDBus::GetCrashInfos(const std::string &pSen
crashInfos = m_pObserver->GetCrashInfos(to_string(unix_uid));
return crashInfos;
}
-
+//FIXME: fix CLI and remove this
+/*
map_crash_report_t CCommLayerServerDBus::CreateReport(const std::string &pUUID,const std::string &pSender)
{
unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str());
@@ -47,6 +48,14 @@ map_crash_report_t CCommLayerServerDBus::CreateReport(const std::string &pUUID,c
crashReport = m_pObserver->CreateReport(pUUID, to_string(unix_uid));
return crashReport;
}
+*/
+uint64_t CCommLayerServerDBus::CreateReport_t(const std::string &pUUID,const std::string &pSender)
+{
+ unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str());
+ map_crash_report_t crashReport;
+ uint64_t job_id = m_pObserver->CreateReport_t(pUUID, to_string(unix_uid));
+ return job_id;
+}
bool CCommLayerServerDBus::Report(map_crash_report_t pReport,const std::string &pSender)
{
@@ -62,6 +71,14 @@ bool CCommLayerServerDBus::DeleteDebugDump(const std::string& pUUID, const std::
return true;
}
+map_crash_report_t CCommLayerServerDBus::GetJobResult(uint64_t pJobID, const std::string& pSender)
+{
+ unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str());
+ map_crash_report_t crashReport;
+ crashReport = m_pObserver->GetJobResult(pJobID,to_string(unix_uid));
+ return crashReport;
+}
+
void CCommLayerServerDBus::Crash(const std::string& arg)
{
CDBusServer_adaptor::Crash(arg);
@@ -76,3 +93,13 @@ void CCommLayerServerDBus::Error(const std::string& arg1)
{
CDBusServer_adaptor::Error(arg1);
}
+
+void CCommLayerServerDBus::Update(const std::string& pDest, const std::string& pMessage)
+{
+ CDBusServer_adaptor::Update(pDest, pMessage);
+}
+
+void CCommLayerServerDBus::JobDone(uint64_t pJobID)
+{
+ CDBusServer_adaptor::JobDone(pJobID);
+}