include/CalendarErrors.h

00001 /*
00002  * @file CalendarErrors.h
00003  * This file is part of Maemo calendar.
00004  * It is the header file for ALL class.
00005  *
00006  * Copyright (C) 2008 Nokia Corporation. All rights reserved.
00007  *
00008  * Contact: Biris Ilias <ilias.biris@nokia.com>
00009  *
00010  * This software, including documentation, is protected by copyright 
00011  * controlled by Nokia Corporation. All rights are reserved. Copying, 
00012  * including reproducing, storing, adapting or translating, any or all
00013  * of this material requires the prior written consent of Nokia Corporation.
00014  * This material also contains confidential information which may not be
00015  * disclosed to others without the prior written consent of Nokia.
00016  */
00017 
00021 #ifndef __CALENDAR_ERROR_H__
00022 #define __CALENDAR_ERROR_H_
00023 
00024 /* System errors */
00025 const int CALENDAR_SYSTEM_ERROR        = 100;
00026 /* Any DB operation which is unsuccessful with result other than
00027  * SQLITE_OK is treaed as DB error*/
00028 const int CALENDAR_DATABASE_ERROR    = CALENDAR_SYSTEM_ERROR + 1;
00029 /*Failure to allocate memory with new */
00030 const int CALENDAR_MEMORY_ERROR        = CALENDAR_SYSTEM_ERROR + 2;
00031 /*File not present / not able to read file from disk*/
00032 const int CALENDAR_FILE_ERROR        = CALENDAR_SYSTEM_ERROR + 3;
00033 /*Failed to get the seesion Dbus */
00034 const int CALENDAR_DBUS_ERROR        = CALENDAR_SYSTEM_ERROR + 3;
00035 /*Failed to insert data in to DB because disk if full*/
00036 const int CALENDAR_DISK_FULL        = CALENDAR_SYSTEM_ERROR + 4;
00037 /*Clock Daemon is not active*/
00038 const int CALENDAR_LTIME_ERROR        = CALENDAR_SYSTEM_ERROR + 6;
00040 const int CALENDAR_LIBALARM_ERROR     =  0 - CALENDAR_SYSTEM_ERROR;
00041 /*Alarm daemon not active*/
00042 const int CALENDAR_ALARM_ERROR         = -1 - CALENDAR_SYSTEM_ERROR;
00043 
00044 
00045 /* Application error */
00046 const int CALENDAR_APP_ERROR        = 200;
00047 /*DB returns 2 rows with same ID*/
00048 const int CALENDAR_FUNC_ERROR        = CALENDAR_APP_ERROR + 1;
00049 /*Input parameters are not valid*/
00050 const int CALENDAR_INVALID_ARG_ERROR    = CALENDAR_APP_ERROR + 2;
00051 /*All errors using ICAL parser for ICS file*/
00052 const int CALENDAR_ICAL_PARSE_ERROR    = CALENDAR_APP_ERROR + 3;
00053 /*Unable to open file,read write because file not present*/
00054 const int CALENDAR_INVALID_FILE        = CALENDAR_APP_ERROR + 4;
00055 /*calendar with specified ID doesn't exist*/
00056 const int CALENDAR_DOESNOT_EXISTS   = CALENDAR_APP_ERROR + 5;
00057 /*trying to add a calendar which already exist*/
00058 const int CALENDAR_ALREADY_EXISTS   = CALENDAR_APP_ERROR + 6;
00059 /*No calendar in DB*/
00060 const int CALENDAR_NONE_INDB        = CALENDAR_APP_ERROR + 7 ;
00061 /*Invalid ics file 
00062  */
00063 const int CALENDAR_INVALID_ICSFILE = CALENDAR_APP_ERROR + 8;
00064 /* Cannot delete calendars- default calendars cannot be deleted
00065  */
00066 const int CALENDAR_CANNOT_BE_DELETED = CALENDAR_APP_ERROR + 9;
00067 
00068 /* Duplicate Entry exist in  Database so no new entry will be created 
00069  * old entry will be updated
00070  */
00071 const int CALENDAR_ENTRY_DUPLICATED = CALENDAR_APP_ERROR + 10 ;
00072 /* no duplicate item in database */
00073 const int NO_DUPLICATE_ITEM = CALENDAR_APP_ERROR + 11;
00074 /* external item is latest one so it is retained */
00075 const int EXT_ITEM_RETAINED = CALENDAR_APP_ERROR + 12;
00076 /* local item is the recent one so it is retained */
00077 const int LOCAL_ITEM_RETAINED = CALENDAR_APP_ERROR + 13;
00078 /* Calendar database Full */
00079 const int CALENDAR_DB_FULL = CALENDAR_APP_ERROR + 14;
00080 /* database file locked */
00081 const int CALENDAR_DB_LOCKED = CALENDAR_APP_ERROR + 15;
00082 /* change in Database schema */
00083 const int CALENDAR_SCHEMA_CHANGED = CALENDAR_APP_ERROR + 16;
00084 /* Some of entries/ all didnt get imported */
00085 const int CALENDAR_IMPORT_INCOMPLETE = CALENDAR_APP_ERROR + 17 ;
00086 
00087 /* Calendar Success Indicator*/
00088 const int CALENDAR_OPERATION_SUCCESSFUL    = 500;
00089 
00090 #endif
00091 

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