src/CCalendarDB.cpp File Reference

#include <string>
#include <sstream>
#include <fstream>
#include <sqlite3.h>
#include <dirent.h>
#include <sys/stat.h>
#include <clockd/libtime.h>
#include "CCalendarDB.h"
#include "Common.h"
#include "CalendarErrors.h"

Variables

static const char * CALENDAR = "/.calendar"
static const char * CALENDARDB = "/calendardb"
static const char * CALENDAR_DBUS_LISTENER_SERVICE = "com.nokia.calendar"
static const char * CALENDAR_DBUS_OBJECT_PATH = "/com/nokia/calendar"
static const char * CALENDAR_DBUS_LISTENER_SIGNAL = "dbChange"
static const int MAX_TABLES = 10
static const char * tableList [MAX_TABLES]
static const int MAX_INDEXES = 6
static const char * indexTableList [MAX_INDEXES]

Detailed Description

cal_db class & its API's to transact with Sqlite database. This file is part of Maemo calendar. This source file contains constructor and destructor of CCalendarDB class This is a singleton class in which (SQL) database interactions are implemented. In this file functions are defined which are used to initialize database,update database,insert rows,close database file and to get record from the database Copyright (C) 2008 Nokia Corporation. All rights reserved.

Contact: Biris Ilias <ilias.biris@nokia.com>

This software, including documentation, is protected by copyright controlled by Nokia Corporation. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of Nokia Corporation. This material also contains confidential information which may not be disclosed to others without the prior written consent of Nokia.


Variable Documentation

const char* CALENDAR = "/.calendar" [static]

static variables used here

const char* indexTableList[MAX_INDEXES] [static]

Initial value:

 {
    INDEX_CALENDAR,
    INDEX_COMPONENT,
    INDEX_COMPONENT_DETAILS,
    INDEX_RECURSIVE,
    INDEX_ALARM,
    INDEX_TRASH
}

const char* tableList[MAX_TABLES] [static]

Initial value:

 {
    CREATE_CAL,
    CREATE_ENTRY,
    CREATE_COMPONENT,
    CREATE_RECURSIVE,
    CREATE_ALARM,
    CREATE_TRASH,
    CREATE_XPROP,
    CREATE_PARAM,
    CREATE_IDMAP,
    CREATE_UTILITY
}


Generated on Tue Feb 24 16:21:32 2009 for calendar-backend by  doxygen 1.5.1