From fa69a86d9ffffd444ee8f64bfc794ea97e1a1453 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Thu, 12 Feb 2009 10:05:38 +0100 Subject: a creation of reports directly from DebugDumpDir is moved to private section because of security reasons --- lib/MiddleWare/MiddleWare.h | 7 ++++--- lib/MiddleWare/test.cpp | 7 +------ 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index 7164d48b..526888ea 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -55,7 +55,10 @@ class CMiddleWare void LoadSettings(const std::string& pPath); - void DebugDump2Report(const std::string& pDebugDumpDir, CReporter::report_t& pReport); + void DebugDump2Report(const std::string& pDebugDumpDir, + CReporter::report_t& pReport); + void CreateReport(const std::string& pDebugDumpDir, + crash_report_t& pReport); public: @@ -86,8 +89,6 @@ class CMiddleWare void RegisterPlugin(const std::string& pName); void UnRegisterPlugin(const std::string& pName); - void CreateReport(const std::string& pDebugDumpDir, - crash_report_t& pReport); void CreateReport(const std::string& pUUID, const std::string& pUID, crash_report_t& pReport); diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp index 1868284a..77b671a9 100644 --- a/lib/MiddleWare/test.cpp +++ b/lib/MiddleWare/test.cpp @@ -53,12 +53,7 @@ int main(int argc, char** argv) info.m_sExecutable << std::endl; /* Get Report, so user can change data (remove private stuff) - * - * If we want to send report immediately after DebugDump was created, - * we can use: - * middleWare.CreateReport(debugDumpDir, crashReport); - * and after that it can be easily reported by: - * middleWare.Report(crashReport); + * If we do not want user interaction, just send data immediately */ CMiddleWare::crash_report_t crashReport; middleWare.CreateReport(info.m_sUUID, info.m_sUID, crashReport); -- cgit