summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-02-04 17:02:29 +0100
committerZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-02-04 17:02:29 +0100
commit8e22569ec4300041788ca216b532bf559e7968db (patch)
tree76a61e0c841708ffd7b8d196d7a123055124e118 /lib/Plugins/SQLite3.h
parentb34d6d335ac6641a91645964ecb850e84a54d761 (diff)
downloadabrt-8e22569ec4300041788ca216b532bf559e7968db.tar.gz
abrt-8e22569ec4300041788ca216b532bf559e7968db.tar.xz
abrt-8e22569ec4300041788ca216b532bf559e7968db.zip
tabs are replaced by spaces
fixed inserting into db
Diffstat (limited to 'lib/Plugins/SQLite3.h')
-rw-r--r--lib/Plugins/SQLite3.h68
1 files changed, 35 insertions, 33 deletions
diff --git a/lib/Plugins/SQLite3.h b/lib/Plugins/SQLite3.h
index 5270988..35365d2 100644
--- a/lib/Plugins/SQLite3.h
+++ b/lib/Plugins/SQLite3.h
@@ -28,52 +28,54 @@
class CSQLite3 : public CDatabase
{
- private:
+ private:
- std::string m_sDBPath;
- sqlite3* m_pDB;
+ std::string m_sDBPath;
+ sqlite3* m_pDB;
- void Create();
- void Exec(const std::string& pCommand);
- void GetTable(const std::string& pCommand, vector_database_rows_t& pTable);
- bool IsReported(const std::string& pUUID);
+ void Create();
+ void Exec(const std::string& pCommand);
+ void GetTable(const std::string& pCommand, vector_database_rows_t& pTable);
+ bool IsReported(const std::string& pUUID);
- public:
- CSQLite3();
- virtual ~CSQLite3() {}
+ public:
+ CSQLite3();
+ virtual ~CSQLite3() {}
- void Connect();
- void DisConnect();
+ void Connect();
+ void DisConnect();
- void Insert(const std::string& pUUID,
- const std::string& pDebugDumpPath,
- const std::string& pArch,
- const std::string& pKernel,
- const std::string& pExecutable,
- const std::string& pPackage,
- const std::string& pUID,
- const std::string& pTime);
+ void Insert(const std::string& pUUID,
+ const std::string& pDebugDumpPath,
+ const std::string& pArch,
+ const std::string& pKernel,
+ const std::string& pExecutable,
+ const std::string& pPackage,
+ const std::string& pUID,
+ const std::string& pTime);
- void InsertBackTrace(const std::string& pUUID,
- const std::string& pBackTrace);
+ void InsertBackTrace(const std::string& pUUID,
+ const std::string& pBackTrace);
- void InsertTextData1(const std::string& pUUID,
- const std::string& pData);
+ void InsertTextData1(const std::string& pUUID,
+ const std::string& pData);
- void Delete(const std::string& pUUID);
+ void Delete(const std::string& pUUID);
- const vector_database_rows_t GetUIDData(const std::string& pUID);
+ const vector_database_rows_t GetUIDData(const std::string& pUID);
+ const database_row_t GetUUIDData(const std::string& pUUID);
- void Init(const map_settings_t& pSettings);
- void DeInit() {}
+ void Init() {}
+ void DeInit() {}
+ void SetSettings(const map_settings_t& pSettings);
};
PLUGIN_INFO(DATABASE,
- "SQLite3",
- "0.0.1",
- "SQLite3 database plugin.",
- "zprikryl@redhat.com",
- "https://fedorahosted.org/crash-catcher/wiki");
+ "SQLite3",
+ "0.0.1",
+ "SQLite3 database plugin.",
+ "zprikryl@redhat.com",
+ "https://fedorahosted.org/crash-catcher/wiki");
PLUGIN_INIT(CSQLite3);