summaryrefslogtreecommitdiffstats
path: root/lib/Plugins
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-18 10:08:45 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-18 10:08:45 +0100
commit02210a03a15b733f8ecda7221c95fbe45b300af6 (patch)
tree6614fff9ca90df98ca6b2b7177de8606e469a048 /lib/Plugins
parent6aaeb6623eaa78f9a45f0f2c7b418939a1c4baf5 (diff)
downloadabrt-02210a03a15b733f8ecda7221c95fbe45b300af6.tar.gz
abrt-02210a03a15b733f8ecda7221c95fbe45b300af6.tar.xz
abrt-02210a03a15b733f8ecda7221c95fbe45b300af6.zip
added default values for settings
Diffstat (limited to 'lib/Plugins')
-rw-r--r--lib/Plugins/Mailx.conf4
-rw-r--r--lib/Plugins/Mailx.cpp14
-rw-r--r--lib/Plugins/Mailx.h2
-rw-r--r--lib/Plugins/SQLite3.cpp4
4 files changed, 12 insertions, 12 deletions
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;