1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CALCALENDARINFO_H__
17 #define __CALCALENDARINFO_H__
22 #include "calcommon.h"
24 class CCalCalendarInfoImpl;
27 /** The calendar info class where metadata of a calendar file is set and retrieved.
32 NONSHARABLE_CLASS(CCalCalendarInfo) : public CBase
35 IMPORT_C static CCalCalendarInfo* NewL();
36 IMPORT_C ~CCalCalendarInfo();
38 IMPORT_C TBool IsValid() const;
40 IMPORT_C const TDesC& FileNameL() const;
42 IMPORT_C void SetNameL(const TDesC& aName);
43 IMPORT_C const TDesC& NameL() const;
45 IMPORT_C void SetDescriptionL(const TDesC& aDescription);
46 IMPORT_C const TDesC& DescriptionL() const;
48 IMPORT_C void SetColor(TRgb aColor);
49 IMPORT_C TRgb Color() const;
51 IMPORT_C void SetEnabled(TBool aEnabled);
52 IMPORT_C TBool Enabled() const;
54 IMPORT_C CDesC8Array* PropertyKeysL() const;
55 IMPORT_C const TDesC8& PropertyValueL(const TDesC8& aKey) const;
56 IMPORT_C void SetPropertyL(const TDesC8& aKey, const TDesC8& aValue);
57 IMPORT_C void RemovePropertyL(const TDesC8& aKey);
60 static CCalCalendarInfo* NewL(CCalCalendarInfoImpl* aCalendarInfoImpl);
61 const CCalCalendarInfoImpl& Impl() const;
66 void ConstructL(CCalCalendarInfoImpl* aCalendarInfoImpl);
69 CCalCalendarInfoImpl* iImpl;