diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-26 14:21:42 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-26 14:21:42 +0200 |
commit | fcd811fdd17adb171478957e31401598dedce166 (patch) | |
tree | 14d6a745d822450e436e0fb4c531f987022f4302 /src/Daemon/CommLayerServer.cpp | |
parent | 2da98808e7484e69f14b19a1039ded34a954f64e (diff) | |
download | abrt-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.cpp | 14 |
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); } |