src/CCalendarDB.cpp File Reference

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

Data Structures

union  semun

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
const int MIN_SPACE_AVAIL = 16 *1024
static const char * tableList [MAX_TABLES]
static const int MAX_INDEXES = 7
static const char * indexTableList [MAX_INDEXES]
const int MAX_TRIGGER = 1
static const char * triggerList [MAX_TRIGGER]
static const int SEM_KEY = 21107001
union semun argument

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]

Header files used in this file static variables used here

Referenced by CCalendarDB::initDB(), and CCalendarDB::sqliteErrorMapper().

const char* indexTableList[MAX_INDEXES] [static]

Initial value:

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

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_INSTANCES        
}

const char* triggerList[MAX_TRIGGER] [static]

Initial value:

 {
        DELETE_TRIGGER
}


Generated on Wed Jul 8 14:17:12 2009 for calendar-backend by  doxygen 1.5.6