williamr@2: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __CALCATEGORYMANAGER_H__ williamr@2: #define __CALCATEGORYMANAGER_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: class MCalProgressCallBack; williamr@2: class CCalCategory; williamr@2: class CCalEntry; williamr@2: class CCalCategoryManagerImpl; williamr@2: class CCalSession; williamr@2: williamr@2: /** A category manager used to manipulate the categories held by the Calendar store. williamr@2: williamr@2: There are 12 built-in category types which are specified by CCalCategory::TCalCategoryType. williamr@2: In addition, clients can create as many of their own categories as they like by giving a name to the category. williamr@2: This class is used along with the class CCalCategory to manipulate the categories in the file, for instance to williamr@2: add, delete and get a list of entries filtered by their category. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: NONSHARABLE_CLASS(CCalCategoryManager) : public CBase williamr@2: { williamr@2: public: williamr@2: williamr@2: IMPORT_C static CCalCategoryManager* NewL(CCalSession& aSession); williamr@2: IMPORT_C ~CCalCategoryManager(); williamr@2: williamr@2: IMPORT_C TInt CategoryCountL() const; williamr@2: IMPORT_C CCalCategory* CategoryL(TInt aIndex) const; williamr@2: IMPORT_C void AddCategoryL(const CCalCategory& aCategory); williamr@2: IMPORT_C void FilterCategoryL(const CCalCategory& aCategory, RPointerArray& aEntries, MCalProgressCallBack& aProgressCallBack); williamr@2: IMPORT_C void FilterCategoryL(const CCalCategory& aCategory, RPointerArray& aEntries); williamr@2: IMPORT_C void DeleteCategoryL(const CCalCategory& aCategory, MCalProgressCallBack& aProgressCallBack); williamr@2: williamr@2: private: williamr@2: CCalCategoryManager(); williamr@2: void ConstructL(CCalSession& aSession); williamr@2: williamr@2: private: williamr@2: CCalCategoryManagerImpl* iCCalCategoryManagerImpl; williamr@2: }; williamr@2: williamr@2: #endif // __CALCATEGORYMANAGER_H__