Back to index

lightning-sunbird  0.9+nobinonly
calBaseCID.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 Oracle Corporation code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  *  Oracle Corporation
00019  * Portions created by the Initial Developer are Copyright (C) 2004
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Vladimir Vukicevic <vladimir.vukicevic@oracle.com>
00024  *   Mike Shaver <shaver@off.net>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #ifndef CALBASECID_H_
00041 #define CALBASECID_H_
00042 
00043 /* C++ */
00044 #define CAL_DATETIME_CID \
00045     { 0x85475b45, 0x110a, 0x443c, { 0xaf, 0x3f, 0xb6, 0x63, 0x98, 0xa5, 0xa7, 0xcd } }
00046 #define CAL_DATETIME_CONTRACTID \
00047     "@mozilla.org/calendar/datetime;1"
00048 
00049 #define CAL_DURATION_CID \
00050     { 0x63513139, 0x51cb, 0x4f5b, { 0x9a, 0x52, 0x49, 0xac, 0xcc, 0x5c, 0xae, 0x17 } }
00051 #define CAL_DURATION_CONTRACTID \
00052     "@mozilla.org/calendar/duration;1"
00053 
00054 #define CAL_PERIOD_CID \
00055     { 0x12fdd72b, 0xc5b6, 0x4720, { 0x81, 0x66, 0x2d, 0xec, 0xa1, 0x33, 0x82, 0xf5 } }
00056 #define CAL_PERIOD_CONTRACTID \
00057     "@mozilla.org/calendar/period;1"
00058 
00059 #define CAL_ICSSERVICE_CID \
00060     { 0xae4ca6c3, 0x981b, 0x4f66, { 0xa0, 0xce, 0x2f, 0x2c, 0x21, 0x8a, 0xd9, 0xe3 } }
00061 #define CAL_ICSSERVICE_CONTRACTID \
00062     "@mozilla.org/calendar/ics-service;1"
00063 
00064 #define CAL_TIMEZONESERVICE_CID \
00065     { 0x1a23ace4, 0xa0dd, 0x43b4, { 0x96, 0xa8, 0xb3, 0xcd, 0x41, 0x9a, 0x14, 0xa5 } }
00066 #define CAL_TIMEZONESERVICE_CONTRACTID \
00067     "@mozilla.org/calendar/timezone-service;1"
00068 
00069 #define CAL_RECURRENCERULE_CID \
00070     { 0xd9560bf9, 0x3065, 0x404a, { 0x90, 0x4c, 0xc8, 0x82, 0xfc, 0x9c, 0x9b, 0x74 } }
00071 #define CAL_RECURRENCERULE_CONTRACTID \
00072     "@mozilla.org/calendar/recurrence-rule;1"
00073 
00074 #define CAL_RECURRENCEDATESET_CID \
00075     { 0x46ea7a6b, 0x01bd, 0x4ea5, { 0xb0, 0x6c, 0x90, 0xd5, 0xec, 0xcb, 0xbe, 0x3a } }
00076 #define CAL_RECURRENCEDATESET_CONTRACTID \
00077     "@mozilla.org/calendar/recurrence-date-set;1"
00078 
00079 #define CAL_RECURRENCEDATE_CID \
00080     { 0x99706e71, 0x3df5, 0x475e, { 0x84, 0xf8, 0x0f, 0xc5, 0x21, 0x1f, 0x92, 0x09 } }
00081 #define CAL_RECURRENCEDATE_CONTRACTID \
00082     "@mozilla.org/calendar/recurrence-date;1"
00083 
00084 /* JS -- Update these from calItemModule.js */
00085 #define CAL_EVENT_CID \
00086     { 0x974339d5, 0xab86, 0x4491, { 0xaa, 0xaf, 0x2b, 0x2c, 0xa1, 0x77, 0xc1, 0x2b } }
00087 #define CAL_EVENT_CONTRACTID \
00088     "@mozilla.org/calendar/event;1"
00089 
00090 #define CAL_TODO_CID \
00091     { 0x7af51168, 0x6abe, 0x4a31, { 0x98, 0x4d, 0x6f, 0x8a, 0x39, 0x89, 0x21, 0x2d } }
00092 #define CAL_TODO_CONTRACTID \
00093     "@mozilla.org/calendar/todo;1"
00094 
00095 #define CAL_ATTENDEE_CID \
00096     { 0x5c8dcaa3, 0x170c, 0x4a73, { 0x81, 0x42, 0xd5, 0x31, 0x15, 0x6f, 0x66, 0x4d } }
00097 #define CAL_ATTENDEE_CONTRACTID \
00098     "@mozilla.org/calendar/attendee;1"
00099 
00100 #define CAL_RECURRENCEINFO_CID \
00101     { 0x04027036, 0x5884, 0x4a30, { 0xb4, 0xaf, 0xf2, 0xca, 0xd7, 0x9f, 0x6e, 0xdf } }
00102 #define CAL_RECURRENCEINFO_CONTRACTID \
00103     "@mozilla.org/calendar/recurrence-info;1"
00104 
00105 #define NS_ERROR_CALENDAR_WRONG_COMPONENT_TYPE          NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CALENDAR, 1)
00106 // Until extensible xpconnect error mapping works
00107 // #define NS_ERROR_CALENDAR_IMMUTABLE                 NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CALENDAR, 2)
00108 #define NS_ERROR_CALENDAR_IMMUTABLE NS_ERROR_OBJECT_IS_IMMUTABLE
00109 
00110 #endif /* CALBASECID_H_ */