summaryrefslogtreecommitdiffstats
path: root/lib/MiddleWare/Database.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-08-14 20:59:43 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-08-14 20:59:43 +0200
commit3c226c987f5015e8184bfc4293ee9f9b2f7b8f67 (patch)
treeb2ec9e8f5ec3140008a15cccea4030c438dbe72e /lib/MiddleWare/Database.h
parent15e44fefb8e0ce093e91bc0fd96302c6b77bf92a (diff)
added support for storing results from reporters (used from gui)
Diffstat (limited to 'lib/MiddleWare/Database.h')
-rw-r--r--lib/MiddleWare/Database.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/MiddleWare/Database.h b/lib/MiddleWare/Database.h
index 36238469..6566f41b 100644
--- a/lib/MiddleWare/Database.h
+++ b/lib/MiddleWare/Database.h
@@ -40,6 +40,7 @@
#define DATABASE_COLUMN_DEBUG_DUMP_PATH "DebugDumpPath"
#define DATABASE_COLUMN_COUNT "Count"
#define DATABASE_COLUMN_REPORTED "Reported"
+#define DATABASE_COLUMN_MESSAGE "Message"
#define DATABASE_COLUMN_TIME "Time"
/**
@@ -52,6 +53,7 @@ typedef struct SDatabaseRow
std::string m_sDebugDumpDir; /**< A debugdump directory of a crash.*/
std::string m_sCount; /**< Crash rate.*/
std::string m_sReported; /**< Is a row reported?*/
+ std::string m_sMessage; /**< if a row is reported, then there can be store message abotu that*/
std::string m_sTime; /**< Time of last occurred crash with same local UUID*/
} database_row_t;
@@ -96,9 +98,12 @@ class CDatabase : public CPlugin
* A method, which sets that particular row was reported.
* @param pUUID A local UUID of a crash.
* @param pUID An UID of an user.
+ * @param pMessga A text explanation of reported problem (where
+ * it is stored etc...
*/
virtual void SetReported(const std::string& pUUID,
- const std::string& pUID) = 0;
+ const std::string& pUID,
+ const std::string& pMessage) = 0;
/**
* A method, which gets all rows which belongs to particular user.
* If the user is root, then all rows are returned. If there are no