#include <CCalendarDB.h>
Public Member Functions | |
| int | initDB () |
| void | setApplicationName (string appName) |
| sqlite3 * | getDb () |
| int | insertRows (sqlite3_stmt *preparedStmt, int &iSqliteError) |
| bool | updateDB (sqlite3_stmt *preparedStmt, int &iSqliteError) |
| void | sqliteErrorMapper (int iSqliteError, int &pErrorCode) |
| bool | rollbackDB () |
| bool | commitDB (string szMessage) |
| bool | closeDB () |
| QueryResult * | getRecords (char *pQuery) |
| bool | sendDBusMessage (string szSendMessage) |
| bool | initializeDBus () |
| ~CCalendarDB () | |
Static Public Member Functions | |
| static CCalendarDB * | Instance () |
Private Member Functions | |
| CCalendarDB () | |
| CCalendarDB (CCalendarDB &calendardb) | |
| CCalendarDB & | operator= (CCalendarDB &calendardb) |
Private Attributes | |
| sqlite3 * | pDb |
| DBusConnection * | pBus |
Static Private Attributes | |
| static CCalendarDB * | pCalendarDb |
CCalendarDB class
| CCalendarDB::~CCalendarDB | ( | ) |
This is the default destructor for CCalendarDB class
| CCalendarDB::CCalendarDB | ( | ) | [private] |
| None |
| CCalendarDB::CCalendarDB | ( | CCalendarDB & | calendardb | ) | [private] |
Dummy copy constructor
| int CCalendarDB::initDB | ( | ) |
initDB
| None |
| void CCalendarDB::setApplicationName | ( | string | appName | ) |
setApplicationName Function to set the application name of calling process
| string | Application name |
| sqlite3 * CCalendarDB::getDb | ( | ) |
getDb
| None |
| int CCalendarDB::insertRows | ( | sqlite3_stmt * | preparedStmt, | |
| int & | iSqliteError | |||
| ) |
insertRows
| preparedStmt: Pointer to prepared statement | ||
| int& iSqliteError - place holder for error code from sqlite |
| bool CCalendarDB::updateDB | ( | sqlite3_stmt * | preparedStmt, | |
| int & | iSqliteError | |||
| ) |
updateDB
| preparedStmt: Pointer to prepared statement | ||
| int& iSqliteError - place holder for error code from sqlite |
| void CCalendarDB::sqliteErrorMapper | ( | int | iSqliteError, | |
| int & | pErrorCode | |||
| ) |
sqliteErrorMapper
| iSqliteError | - error obtained from sqlite | |
| pErrorCode | - error message thrown to external world |
| bool CCalendarDB::rollbackDB | ( | ) |
rollbackDB
| None |
| bool CCalendarDB::commitDB | ( | string | szMessage | ) |
commitDB
| None |
| bool CCalendarDB::closeDB | ( | ) |
closeDB
| None |
| QueryResult * CCalendarDB::getRecords | ( | char * | pQuery | ) |
getRecords
| query: sql statement in form of query. |
| CCalendarDB * CCalendarDB::Instance | ( | ) | [static] |
Instance
| None |
| bool CCalendarDB::sendDBusMessage | ( | string | szSendMessage | ) |
sendDBusMessage Send the DBusMessage over the session bus
| string | Message to send |
| CCalendarDB & CCalendarDB::operator= | ( | CCalendarDB & | calendardb | ) | [private] |
Dummy assignment operator
sqlite3* CCalendarDB::pDb [private] |
SQLite database pointer
DBusConnection* CCalendarDB::pBus [private] |
DBus Connection pointer
CCalendarDB * CCalendarDB::pCalendarDb [static, private] |
Static CCalendarDB pointer for singleton usage
1.5.1