pimappservices/calendar/inc/CalinterimApiPanic.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:13:43 +0300
branchRCL_3
changeset 65 12af337248b1
parent 0 f979ecb2b13e
permissions -rw-r--r--
Revision: 201033 Kit: 201035

// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @publishedAll
 @released
*/

#ifndef __CALINTERIMAPIPANIC_H__
#define __CALINTERIMAPIPANIC_H__

 /**
Panics raised from CallinterimAPI
 */
enum TCalInterimApiPanicCode
	{

	/**
	Trying to create a CCalCategory object and a wrong type is passed.
	*/
	EInvalidCategoryParameter		= 0,

	/**
	Attempt to pass wrong type of TChangeEntryType.
	*/
	EInvalidChangeEntryType			= 1,

	/**
	Trying to fetch an undefined TStatus/TCalStatus of an Entry.
	*/
	EInvalidEntryStatus				= 2,

	/**
	The TType of an Entry dosen't match the standard types
	*/
	EInvalidEntryType				= 3,

	/**
	Atttempt to create an object using NULL object of type CCalEntry.
	*/
	EInstanceCreatedFromNullEntry	= 4,

	/**
	Passed invalid Recurrence Range.
	*/
	EInvalidRecurrenceRangeParameter= 5,

	/**
	Attempt to pass a NULL object of type CCalInstance.
	*/
	ENullInstanceParameter			= 6,

	/**
	Wrong CCalEntry TType passed to API
	*/
	EInvalidEntryTypeParameter		= 7,

	/**
	Attempt to create an invalid repeat rule.
	*/
	ERepeatRuleBitFailure			= 8,

	/**
	Attempt to pass incorrect TCalRRule TType.
	*/
	EInvalidRepeatRuleType			= 9,
		
	/**
    Trying to set a repeat rule while one has already been set.
	*/
	ERepeatRuleTypeAlreadySet		= 10,

	/**
	Raised by the Class CCalSession's destructor if all the opened references
	have not been closed before destruction of CCalSession object.
	*/
	ESessionHasOpenReferences		= 11,

	/**
	The type of CCalAttachment is unknown.
	*/
	EInvalidAttachmentType			= 12,
	
	/**
	The instance iterator index is corrupt.
	*/
	EInstanceIteratorIndexCorrupt	= 13,
	
	/**
	Trying to pass an array of CCalSession whose elements have different server handles when creating CCalInstanceView.
	*/
	EInvalidServerHandle			= 14,
	
	/**
	Instance given does not say which file it comes from.
	*/
	EAmbiguousInstance				= 15,
	
	/**
    A property on a CCalCalendarInfo has a NULL stream Id.
    */
    ECalendarInfoNullStreamId       = 16
	};

#endif