diff -r a3a1ae9acec6 -r da5135c61bad meetingrequest/mrguicommon/inc/cesmrrecurrence.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrguicommon/inc/cesmrrecurrence.h Wed Mar 31 21:08:33 2010 +0300 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2007-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: Definition for mrui list queries +* +*/ + +#ifndef CESMRRECURRENCE_H +#define CESMRRECURRENCE_H + +#include +#include // resource reader +// +#include "esmrdef.h" +// + +/** + * Helper class for recurrence texts + */ +NONSHARABLE_CLASS( CESMRRecurrence ) : public CBase + { +public: + /** + * Constructor. + */ + IMPORT_C CESMRRecurrence(); + + /** + * Destructor. + */ + IMPORT_C ~CESMRRecurrence(); + + /** + * Constructs the recurrence text from resource. + * + * @param aEnv - Control environment to be used + * @param aReader - resource reader for reading the correct text + */ + IMPORT_C void ConstructFromResourceL( + CCoeEnv* aEnv, TResourceReader& aReader ); + + /** + * Get the type of recurrence + * + * @return type of recurrence + */ + IMPORT_C TESMRRecurrenceValue RecurrenceValue(); + + /** + * Get the descriptor text for the type of recurrence + * + * @return descriptor text for the type of recurrence + */ + IMPORT_C HBufC& RecurrenceText(); + +private: + //Own: ID of the wanted recurrence text + TESMRRecurrenceValue iId; + //Own: Descriptor for the actual text + HBufC* iTxt; + }; +#endif