Back to index

lightning-sunbird  0.9+nobinonly
calIErrors.idl
Go to the documentation of this file.
00001 /* -*- Mode: IDL; tab-width: 50; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is calendar code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  *  Oracle Corporation
00019  * Portions created by the Initial Developer are Copyright (C) 2005
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s): Vladimir Vukicevic <vladimir.vukicevic@oracle.com>
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #include "nsISupports.idl"
00039 
00040 [scriptable, uuid(404c7d78-bec7-474c-aa2a-82c0d0563bb6)]
00041 interface calIErrors : nsISupports
00042 {
00048   const unsigned long CAL_ERROR_MODULE_CALENDAR = 5;
00049   const unsigned long CAL_ERROR_MODULE_BASE_OFFSET = 0x45;
00050 
00055   const unsigned long ERROR_BASE = (1<<31) | 
00056     (CAL_ERROR_MODULE_CALENDAR + CAL_ERROR_MODULE_BASE_OFFSET) << 16;
00057 
00058   /* Onto the actual errors! */
00059 
00063   const unsigned long INVALID_TIMEZONE = ERROR_BASE + 1;
00064 
00068   const unsigned long CAL_IS_READONLY = ERROR_BASE + 2;  
00069 
00073   const unsigned long CAL_UTF8_DECODING_FAILED = ERROR_BASE + 3;
00074   
00079   const unsigned long DUPLICATE_ID = ERROR_BASE + 4;
00080 
00084   const unsigned long OPERATION_CANCELLED = ERROR_BASE + 5;
00085 
00089   const unsigned long PROVIDER_CREATION_FAILED = ERROR_BASE + 6;
00090 
00094   const unsigned long STORAGE_UNKNOWN_SCHEMA_ERROR = ERROR_BASE + 7;
00095 
00099   const unsigned long STORAGE_UNKNOWN_TIMEZONES_ERROR = ERROR_BASE + 8;
00100 
00104   const unsigned long READ_FAILED = ERROR_BASE + 9;
00105 
00109   const unsigned long MODIFICATION_FAILED = ERROR_BASE + 10;
00110 
00111   /* ICS specific errors */
00112   const unsigned long ICS_ERROR_BASE = ERROR_BASE + 0x100;
00113 
00119   const unsigned long ICS_NO_ERROR = ICS_ERROR_BASE + 0;
00120   const unsigned long ICS_BADARG = ICS_ERROR_BASE + 1;
00121   const unsigned long ICS_NEWFAILED = ICS_ERROR_BASE + 2;
00122   const unsigned long ICS_ALLOCATION = ICS_ERROR_BASE + 3;
00123   const unsigned long ICS_MALFORMEDDATA = ICS_ERROR_BASE + 4;
00124   const unsigned long ICS_PARSE = ICS_ERROR_BASE + 5;
00125   const unsigned long ICS_INTERNAL = ICS_ERROR_BASE + 6;
00126   const unsigned long ICS_FILE = ICS_ERROR_BASE + 7;
00127   const unsigned long ICS_USAGE = ICS_ERROR_BASE + 8;
00128   const unsigned long ICS_UNIMPLEMENTED = ICS_ERROR_BASE + 9;
00129   const unsigned long ICS_UNKNOWN = ICS_ERROR_BASE + 10;
00130   
00136   const unsigned long WCAP_ERROR_BASE = ERROR_BASE + 0x200;
00137 
00142   const unsigned long DAV_ERROR_BASE = ERROR_BASE + 0x301;
00143   const unsigned long DAV_NOT_DAV = DAV_ERROR_BASE +  0;
00144   const unsigned long DAV_DAV_NOT_CALDAV = DAV_ERROR_BASE + 1;
00145   const unsigned long DAV_NO_PROPS = DAV_ERROR_BASE +  2;
00146   const unsigned long DAV_PUT_ERROR = DAV_ERROR_BASE + 3;
00147   const unsigned long DAV_REMOVE_ERROR = DAV_ERROR_BASE + 4;
00148   const unsigned long DAV_REPORT_ERROR = DAV_ERROR_BASE + 5;
00149 };
00150