summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.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/CrashWatcher.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/CrashWatcher.cpp')
-rw-r--r--src/Daemon/CrashWatcher.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 01629f0b..41f0fa78 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -75,15 +75,15 @@ vector_crash_infos_t CCrashWatcher::GetCrashInfos(const std::string &pUID)
retval.push_back(info);
break;
case MW_ERROR:
- Warning("Can not find debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting from database");
- Status("Can not find debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting from database");
+ g_cw->Warning("Can not find debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting from database");
+ g_cw->Status("Can not find debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting from database");
DeleteCrashInfo(UUIDsUIDs[ii].first, UUIDsUIDs[ii].second);
break;
case MW_FILE_ERROR:
{
std::string debugDumpDir;
- Warning("Can not open file in debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting ");
- Status("Can not open file in debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting ");
+ g_cw->Warning("Can not open file in debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting ");
+ g_cw->Status("Can not open file in debug dump directory for UUID: " + UUIDsUIDs[ii].first + ", deleting ");
debugDumpDir = DeleteCrashInfo(UUIDsUIDs[ii].first, UUIDsUIDs[ii].second);
DeleteDebugDumpDir(debugDumpDir);
}
@@ -99,8 +99,8 @@ vector_crash_infos_t CCrashWatcher::GetCrashInfos(const std::string &pUID)
{
throw e;
}
- Warning(e.what());
- Status(e.what());
+ g_cw->Warning(e.what());
+ g_cw->Status(e.what());
}
//retval = GetCrashInfos(pUID);
@@ -210,8 +210,8 @@ report_status_t CCrashWatcher::Report(const map_crash_report_t& pReport, const s
{
throw e;
}
- Warning(e.what());
- Status(e.what());
+ g_cw->Warning(e.what());
+ g_cw->Status(e.what());
return rs;
}
return rs;
@@ -231,8 +231,8 @@ bool CCrashWatcher::DeleteDebugDump(const std::string& pUUID, const std::string&
{
throw e;
}
- Warning(e.what());
- Status(e.what());
+ g_cw->Warning(e.what());
+ g_cw->Status(e.what());
return false;
}
return true;
@@ -259,7 +259,7 @@ vector_map_string_string_t CCrashWatcher::GetPluginsInfo()
{
throw e;
}
- Warning(e.what());
+ g_cw->Warning(e.what());
}
// TODO: is it right? I added it just to disable a warning...
// but maybe returning empty map is wrong here?
@@ -278,7 +278,7 @@ map_plugin_settings_t CCrashWatcher::GetPluginSettings(const std::string& pName,
{
throw e;
}
- Warning(e.what());
+ g_cw->Warning(e.what());
}
// TODO: is it right? I added it just to disable a warning...
// but maybe returning empty map is wrong here?
@@ -297,7 +297,7 @@ void CCrashWatcher::RegisterPlugin(const std::string& pName)
{
throw e;
}
- Warning(e.what());
+ g_cw->Warning(e.what());
}
}
@@ -313,7 +313,7 @@ void CCrashWatcher::UnRegisterPlugin(const std::string& pName)
{
throw e;
}
- Warning(e.what());
+ g_cw->Warning(e.what());
}
}
@@ -329,6 +329,6 @@ void CCrashWatcher::SetPluginSettings(const std::string& pName, const std::strin
{
throw e;
}
- Warning(e.what());
+ g_cw->Warning(e.what());
}
}