summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/CommLayerServer.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-04-23 14:42:40 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-04-23 14:42:40 +0200
commitbcf4c69ca5fdd6489ca1c09890971fc8f647aa1b (patch)
treee5fedc350ae9368faf77360ea4fb3c0f6d264210 /lib/CommLayer/CommLayerServer.cpp
parent99047bce024f1d23c953649cf56ff67e754e44ef (diff)
downloadabrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.tar.gz
abrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.tar.xz
abrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.zip
Added intercomm layer so plugins can send various information to the daemon.
Diffstat (limited to 'lib/CommLayer/CommLayerServer.cpp')
-rw-r--r--lib/CommLayer/CommLayerServer.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/CommLayer/CommLayerServer.cpp b/lib/CommLayer/CommLayerServer.cpp
index 1ebae6d..271f753 100644
--- a/lib/CommLayer/CommLayerServer.cpp
+++ b/lib/CommLayer/CommLayerServer.cpp
@@ -1,30 +1,24 @@
#include "CommLayerServer.h"
#include <iostream>
-CCommLayerServer::CCommLayerServer(CMiddleWare *pMW)
+CCommLayerServer::CCommLayerServer()
{
- m_pMW = pMW;
- std::cerr << "CCommLayerServer init.." << std::endl;
}
CCommLayerServer::~CCommLayerServer()
{
- std::cout << "CCommLayerServer::Cleaning up.." << std::endl;
}
void CCommLayerServer::Attach(CObserver *pObs)
{
- std::cerr << "CCommLayerServer::Attach" << std::endl;
m_pObserver = pObs;
}
void CCommLayerServer::Detach(CObserver *pObs)
{
- std::cerr << "CCommLayerServer::Detach" << std::endl;
m_pObserver = NULL;
}
void CCommLayerServer::Notify(const std::string& pMessage)
{
- std::cerr << "CCommLayerServer::Notify" << std::endl;
if(m_pObserver)
- m_pObserver->Update(pMessage);
+ m_pObserver->StatusUpdate(pMessage);
}