summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServer.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/CommLayerServer.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/CommLayerServer.cpp')
-rw-r--r--src/Daemon/CommLayerServer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Daemon/CommLayerServer.cpp b/src/Daemon/CommLayerServer.cpp
index 328986e7..1ba1a3c0 100644
--- a/src/Daemon/CommLayerServer.cpp
+++ b/src/Daemon/CommLayerServer.cpp
@@ -1,5 +1,5 @@
#include "CommLayerServer.h"
-#include <iostream>
+#include "CrashWatcher.h"
CCommLayerServer::CCommLayerServer()
{
@@ -9,16 +9,16 @@ CCommLayerServer::~CCommLayerServer()
{
}
-void CCommLayerServer::Attach(CObserver *pObs)
+void CCommLayerServer::Attach(CCrashWatcher *pCW)
{
- m_pObserver = pObs;
+ m_pCrashWatcher = pCW;
}
-void CCommLayerServer::Detach(CObserver *pObs)
+void CCommLayerServer::Detach(CCrashWatcher *pCW)
{
- m_pObserver = NULL;
+ m_pCrashWatcher = NULL;
}
void CCommLayerServer::Notify(const std::string& pMessage)
{
- if(m_pObserver)
- m_pObserver->Status(pMessage);
+ if (m_pCrashWatcher)
+ m_pCrashWatcher->Status(pMessage);
}