epoc32/include/app/calcalendarinfo.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/app/calcalendarinfo.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,72 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __CALCALENDARINFO_H__
    1.20 +#define __CALCALENDARINFO_H__
    1.21 +
    1.22 +#include <e32base.h>
    1.23 +#include <gdi.h>
    1.24 +
    1.25 +#include "calcommon.h"
    1.26 +
    1.27 +class CCalCalendarInfoImpl;
    1.28 +class CDesC8Array;
    1.29 +
    1.30 +/** The calendar info class where metadata of a calendar file is set and retrieved.
    1.31 +
    1.32 +@publishedAll
    1.33 +@released
    1.34 +*/
    1.35 +NONSHARABLE_CLASS(CCalCalendarInfo) : public CBase
    1.36 +	{
    1.37 +public:
    1.38 +	IMPORT_C static CCalCalendarInfo* NewL();
    1.39 +	IMPORT_C ~CCalCalendarInfo();
    1.40 +	
    1.41 +	IMPORT_C TBool IsValid() const;
    1.42 +	
    1.43 +	IMPORT_C const TDesC& FileNameL() const;
    1.44 +
    1.45 +	IMPORT_C void SetNameL(const TDesC& aName);
    1.46 +	IMPORT_C const TDesC& NameL() const;
    1.47 +
    1.48 +	IMPORT_C void SetDescriptionL(const TDesC& aDescription);
    1.49 +	IMPORT_C const TDesC& DescriptionL() const;
    1.50 +	
    1.51 +	IMPORT_C void SetColor(TRgb aColor);
    1.52 +	IMPORT_C TRgb Color() const;
    1.53 +
    1.54 +	IMPORT_C void SetEnabled(TBool aEnabled); 
    1.55 +	IMPORT_C TBool Enabled() const;
    1.56 +	
    1.57 +	IMPORT_C CDesC8Array* PropertyKeysL() const;
    1.58 +	IMPORT_C const TDesC8& PropertyValueL(const TDesC8& aKey) const;
    1.59 +	IMPORT_C void SetPropertyL(const TDesC8& aKey, const TDesC8& aValue);
    1.60 +	IMPORT_C void RemovePropertyL(const TDesC8& aKey);
    1.61 +
    1.62 +public:
    1.63 +	static CCalCalendarInfo* NewL(CCalCalendarInfoImpl* aCalendarInfoImpl);
    1.64 +	const CCalCalendarInfoImpl& Impl() const;
    1.65 +	
    1.66 +private:
    1.67 +    CCalCalendarInfo();
    1.68 +    void ConstructL();
    1.69 +    void ConstructL(CCalCalendarInfoImpl* aCalendarInfoImpl);
    1.70 +    
    1.71 +private:
    1.72 +	CCalCalendarInfoImpl* iImpl;
    1.73 +	};
    1.74 +
    1.75 +#endif