From 02210a03a15b733f8ecda7221c95fbe45b300af6 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 18 Feb 2009 10:08:45 +0100 Subject: added default values for settings --- lib/Plugins/Mailx.conf | 4 ++-- lib/Plugins/Mailx.cpp | 14 +++++++------- lib/Plugins/Mailx.h | 2 +- lib/Plugins/SQLite3.cpp | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'lib/Plugins') diff --git a/lib/Plugins/Mailx.conf b/lib/Plugins/Mailx.conf index 5e7b824c..0ba7bcc0 100644 --- a/lib/Plugins/Mailx.conf +++ b/lib/Plugins/Mailx.conf @@ -3,7 +3,7 @@ Parameters = # Your Email -Email_From = zprikryl@redhat.com +Email_From = user@localhost # Email To -Email_To = jmoskovc@redhat.com +Email_To = root@localhost diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index cb26e398..2b8ef35d 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -28,8 +28,8 @@ #define MAILX_SUBJECT "\"CrashCatcher automated bug report\"" CMailx::CMailx() : - m_sEmailFrom(""), - m_sEmailTo(""), + m_sEmailFrom("user@localhost"), + m_sEmailTo("root@localhost"), m_sParameters(""), m_sAttachments("") {} @@ -56,7 +56,7 @@ void CMailx::SendEmail(const std::string& pText) } -void CMailx::Report(const report_t& pReport) +void CMailx::Report(const crash_report_t& pReport) { std::stringstream ss; @@ -97,13 +97,13 @@ void CMailx::Report(const report_t& pReport) ss << "==============" << std::endl; ss << "See the attachment[s]" << std::endl; - if (pReport.m_bBinaryData1 != "") + if (pReport.m_sBinaryData1 != "") { - m_sAttachments = " -a " + pReport.m_bBinaryData1; + m_sAttachments = " -a " + pReport.m_sBinaryData1; } - if (pReport.m_bBinaryData2 != "") + if (pReport.m_sBinaryData2 != "") { - m_sAttachments = " -a " + pReport.m_bBinaryData2; + m_sAttachments = " -a " + pReport.m_sBinaryData2; } SendEmail(ss.str()); diff --git a/lib/Plugins/Mailx.h b/lib/Plugins/Mailx.h index 3c54feb6..ab317eb2 100644 --- a/lib/Plugins/Mailx.h +++ b/lib/Plugins/Mailx.h @@ -44,7 +44,7 @@ class CMailx : public CReporter void DeInit() {} void SetSettings(const map_settings_t& pSettings); - void Report(const report_t& pReport); + void Report(const crash_report_t& pReport); }; diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp index c6cf8f4c..f96f3fa6 100644 --- a/lib/Plugins/SQLite3.cpp +++ b/lib/Plugins/SQLite3.cpp @@ -28,7 +28,7 @@ #define TABLE_NAME "CrashCatcher" CSQLite3::CSQLite3() : - m_sDBPath(""), + m_sDBPath("/tmp/CCDB"), m_pDB(NULL) {} @@ -79,7 +79,7 @@ void CSQLite3::GetTable(const std::string& pCommand, vector_database_rows_t& pTa break; case 1: row.m_sUID = table[jj + ncol]; break; - case 2: row.m_sDebugDumpPath = table[jj + ncol]; + case 2: row.m_sDebugDumpDir = table[jj + ncol]; break; case 3: row.m_sCount = table[jj + ncol]; break; -- cgit