diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
| commit | 42657326fdf8db194013094537d9386830fe5876 (patch) | |
| tree | a81cde5aa03cc72950987c4eaa29d0461696a3d4 /lib/CommLayer/CommLayerServer.cpp | |
| parent | d879ebf08c48bbe8ed9bd344fceee9163fe464da (diff) | |
| download | abrt-42657326fdf8db194013094537d9386830fe5876.tar.gz abrt-42657326fdf8db194013094537d9386830fe5876.tar.xz abrt-42657326fdf8db194013094537d9386830fe5876.zip | |
Added commlayer to make dbus optional
Diffstat (limited to 'lib/CommLayer/CommLayerServer.cpp')
| -rw-r--r-- | lib/CommLayer/CommLayerServer.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/CommLayer/CommLayerServer.cpp b/lib/CommLayer/CommLayerServer.cpp new file mode 100644 index 0000000..1ebae6d --- /dev/null +++ b/lib/CommLayer/CommLayerServer.cpp @@ -0,0 +1,30 @@ +#include "CommLayerServer.h" +#include <iostream> + +CCommLayerServer::CCommLayerServer(CMiddleWare *pMW) +{ + 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); +} |
