diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-07 17:56:35 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-07 17:56:35 +0200 |
commit | 0e96f49ddb33421efcdd55d543439f622e707164 (patch) | |
tree | 128a52ac7736a94933128a80842a935ea62619f0 /lib/CommLayer/CommLayerServerDBus.cpp | |
parent | 72a96c03f783e55daff80d331811bc43198283fd (diff) | |
download | abrt-0e96f49ddb33421efcdd55d543439f622e707164.tar.gz abrt-0e96f49ddb33421efcdd55d543439f622e707164.tar.xz abrt-0e96f49ddb33421efcdd55d543439f622e707164.zip |
Fixed dbus commlayer
Diffstat (limited to 'lib/CommLayer/CommLayerServerDBus.cpp')
-rw-r--r-- | lib/CommLayer/CommLayerServerDBus.cpp | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index a62ed2e1..5bcecf27 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -26,14 +26,19 @@ CCommLayerServerDBus::~CCommLayerServerDBus() delete m_pDispatcher; } -vector_crash_infos_t CCommLayerServerDBus::GetCrashInfos(const std::string &pUID) +vector_crash_infos_t CCommLayerServerDBus::GetCrashInfos(const std::string &pDBusSender) { vector_crash_infos_t retval; - /* vector_crash_infos_t crash_info; - m_pMW->GetCrashInfos("501"); - for (vector_crash_infos_t::iterator it = crash_info.begin(); it!=crash_info.end(); ++it) { - std::cerr << it->m_sExecutable << std::endl; - }*/ + unsigned long unix_uid = m_pConn->sender_unix_uid(pDBusSender.c_str()); + try + { + retval = m_pMW->GetCrashInfos(to_string(unix_uid)); + } + catch(std::string err) + { + std::cerr << err << std::endl; + } + Notify("Sent crash info"); return retval; } @@ -114,3 +119,18 @@ bool CCommLayerServerDBus::DeleteDebugDump(const std::string& pUUID, const std:: } return true; } + +void CCommLayerServerDBus::Crash(const std::string& arg) +{ + CDBusServer_adaptor::Crash(arg); +} + +void CCommLayerServerDBus::AnalyzeComplete(map_crash_report_t arg1) +{ + CDBusServer_adaptor::AnalyzeComplete(arg1); +} + +void CCommLayerServerDBus::Error(const std::string& arg1) +{ + CDBusServer_adaptor::Error(arg1); +} |