epoc32/include/app/calcalendarinfo.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __CALCALENDARINFO_H__
    17 #define __CALCALENDARINFO_H__
    18 
    19 #include <e32base.h>
    20 #include <gdi.h>
    21 
    22 #include "calcommon.h"
    23 
    24 class CCalCalendarInfoImpl;
    25 class CDesC8Array;
    26 
    27 /** The calendar info class where metadata of a calendar file is set and retrieved.
    28 
    29 @publishedAll
    30 @released
    31 */
    32 NONSHARABLE_CLASS(CCalCalendarInfo) : public CBase
    33 	{
    34 public:
    35 	IMPORT_C static CCalCalendarInfo* NewL();
    36 	IMPORT_C ~CCalCalendarInfo();
    37 	
    38 	IMPORT_C TBool IsValid() const;
    39 	
    40 	IMPORT_C const TDesC& FileNameL() const;
    41 
    42 	IMPORT_C void SetNameL(const TDesC& aName);
    43 	IMPORT_C const TDesC& NameL() const;
    44 
    45 	IMPORT_C void SetDescriptionL(const TDesC& aDescription);
    46 	IMPORT_C const TDesC& DescriptionL() const;
    47 	
    48 	IMPORT_C void SetColor(TRgb aColor);
    49 	IMPORT_C TRgb Color() const;
    50 
    51 	IMPORT_C void SetEnabled(TBool aEnabled); 
    52 	IMPORT_C TBool Enabled() const;
    53 	
    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);
    58 
    59 public:
    60 	static CCalCalendarInfo* NewL(CCalCalendarInfoImpl* aCalendarInfoImpl);
    61 	const CCalCalendarInfoImpl& Impl() const;
    62 	
    63 private:
    64     CCalCalendarInfo();
    65     void ConstructL();
    66     void ConstructL(CCalCalendarInfoImpl* aCalendarInfoImpl);
    67     
    68 private:
    69 	CCalCalendarInfoImpl* iImpl;
    70 	};
    71 
    72 #endif