summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-28 17:08:09 +0200
committerZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-28 17:08:09 +0200
commit2e6a6e8aed825e456600d01c8a805b6f6fd24c3a (patch)
treec58cba2913350fed9674813b3fe0a27e6639fbd2 /src/Daemon/CrashWatcher.cpp
parentb08d5c2cf630ecb89d2f22b985dcdfcf25494258 (diff)
downloadabrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.tar.gz
abrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.tar.xz
abrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.zip
new commlayerinner interface
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r--src/Daemon/CrashWatcher.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 85a705ca..0146fab4 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -30,7 +30,7 @@
#include <sstream>
#include <dirent.h>
#include <cstring>
-#include "CommLayer.h"
+#include "ABRTCommLayer.h"
#include "ABRTException.h"
/* just a helper function
@@ -212,11 +212,10 @@ CCrashWatcher::CCrashWatcher(const std::string& pPath)
int watch = 0;
m_sTarget = pPath;
- // TODO: initialize object according parameters -w -i
+ // TODO: initialize object according parameters -w -d
// status has to be always created.
- CommLayerInner::init_status(this);
- CommLayerInner::init_warning(this);
- CommLayerInner::init_debug(this);
+ m_pCommLayerInner = new CCommLayerInner(this, true, true);
+ ABRTCommLayer::init_comm_layer_inner(m_pCommLayerInner);
m_pSettings = new CSettings();
m_pSettings->LoadSettings(std::string(CONF_DIR) + "/abrt.conf");
@@ -255,6 +254,7 @@ CCrashWatcher::~CCrashWatcher()
delete m_pCommLayer;
delete m_pMW;
delete m_pSettings;
+ delete m_pCommLayerInner;
}
void CCrashWatcher::FindNewDumps(const std::string& pPath)
{