summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServerSocket.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 14:21:42 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 14:21:42 +0200
commitfcd811fdd17adb171478957e31401598dedce166 (patch)
tree14d6a745d822450e436e0fb4c531f987022f4302 /src/Daemon/CommLayerServerSocket.cpp
parent2da98808e7484e69f14b19a1039ded34a954f64e (diff)
downloadabrt-fcd811fdd17adb171478957e31401598dedce166.tar.gz
abrt-fcd811fdd17adb171478957e31401598dedce166.tar.xz
abrt-fcd811fdd17adb171478957e31401598dedce166.zip
make some CrashWatcher member functions static; simplify CObserver class
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/CommLayerServerSocket.cpp')
-rw-r--r--src/Daemon/CommLayerServerSocket.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Daemon/CommLayerServerSocket.cpp b/src/Daemon/CommLayerServerSocket.cpp
index 1b54068..5a4f00b 100644
--- a/src/Daemon/CommLayerServerSocket.cpp
+++ b/src/Daemon/CommLayerServerSocket.cpp
@@ -6,6 +6,7 @@
#include "CommLayerInner.h"
#include "ABRTException.h"
#include "CrashTypesSocket.h"
+#include "CrashWatcher.h"
#include "CommLayerServerSocket.h"
void CCommLayerServerSocket::Send(const std::string& pData, GIOChannel *pDestination)
@@ -206,7 +207,7 @@ CCommLayerServerSocket::~CCommLayerServerSocket()
vector_crash_infos_t CCommLayerServerSocket::GetCrashInfos(const std::string &pSender)
{
vector_crash_infos_t crashInfos;
- crashInfos = m_pObserver->GetCrashInfos(pSender);
+ crashInfos = m_pCrashWatcher->GetCrashInfos(pSender);
return crashInfos;
}
@@ -214,20 +215,20 @@ vector_crash_infos_t CCommLayerServerSocket::GetCrashInfos(const std::string &pS
//map_crash_report_t CCommLayerServerSocket::CreateReport(const std::string &pUUID,const std::string &pSender)
//{
// map_crash_report_t crashReport;
-// crashReport = m_pObserver->CreateReport(pUUID, pSender);
+// crashReport = m_pCrashWatcher->CreateReport(pUUID, pSender);
// return crashReport;
//}
report_status_t CCommLayerServerSocket::Report(const map_crash_report_t& pReport, const std::string& pSender)
{
report_status_t rs;
- rs = m_pObserver->Report(pReport, pSender);
+ rs = m_pCrashWatcher->Report(pReport, pSender);
return rs;
}
bool CCommLayerServerSocket::DeleteDebugDump(const std::string& pUUID, const std::string& pSender)
{
- m_pObserver->DeleteDebugDump(pUUID, pSender);
+ m_pCrashWatcher->DeleteDebugDump(pUUID, pSender);
return true;
}