diff -r 8d6dd3663aad -r 7d78dc22f397 calendarui/caldav/inc/calencaldavplugin.h --- a/calendarui/caldav/inc/calencaldavplugin.h Mon Mar 08 21:43:23 2010 +0000 +++ b/calendarui/caldav/inc/calencaldavplugin.h Sun Mar 14 13:09:26 2010 +0000 @@ -1,105 +1,105 @@ -/* -* Copyright (c) 2010 Sun Microsystems, Inc. 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 Contributor: -* Maximilian Odendahl -* -* Contributors: -* -* Description: CalDav ECOM plugin -* -*/ - -#ifndef __CALENLUNARPLUGIN_H__ -#define __CALENLUNARPLUGIN_H__ - -//SYSTEM INCLUDES -#include -#include - -//CALENDAR INCLUDES -#include -#include -#include "calencustomisation.h" -#include "CalendarVariant.hrh" - -//FORWARD DECLARE -class CEikonEnv; -class CCalenLunarInfoProvider; -class CEikLabel; -class CCoeControl; -class TRect; -class CEikMenuPane; -class CCalDavSession; - -enum TCalDavSettingItem -{ - ECalDavSettingUrl = 0, - ECalDavSettingUser, - ECalDavSettingPassword, - ECalDavSettingEnable, - ECalDavSettingKeepServer, - ECalDavSettingSyncImmediate, - ECalDavSettingSyncInterval, - ECalDavSettingSyncRange, - ECalDavSettingAccess -}; - -//CLASS DECLARATION -NONSHARABLE_CLASS(CCalenCalDavPlugin) : public CCalenCustomisation, - public MCalenCommandHandler, - public MCalenNotificationHandler - - { - public: - - static CCalenCalDavPlugin* NewL( MCalenServices* aServices ); - virtual ~CCalenCalDavPlugin(); - - private: - CCalenCalDavPlugin( MCalenServices* aServices); - void ConstructL(); - - public: //From CCalenCustomisation - void GetCustomViewsL( RPointerArray& aCustomViewArray ); - void GetCustomSettingsL( RPointerArray& aCustomSettingArray ); - CCoeControl* InfobarL( const TRect& aRect ); - const TDesC& InfobarL(); - MCalenPreview* CustomPreviewPaneL( TRect& aRect ); - CCoeControl* PreviewPaneL( TRect& aRect ); - MCalenCommandHandler* CommandHandlerL( TInt aCommand ); - void RemoveViewsFromCycle( RArray& aViews ); - TBool CustomiseMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); - TBool CanBeEnabledDisabled(); - TAny* CalenCustomisationExtensionL( TUid aExtensionUid ); - - public:// From MCalenCommandHandler - TBool HandleCommandL( const TCalenCommand& aCommand ); - TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid ); - - public://From MCalenNotificationHandler - void HandleNotification( const TCalenNotification aNotification ); - - private: - - MCalenServices* iServices; - - TInt iStart; - TInt iEnd; - TRect iRect; - TInt iResourceFileOffset; - - CCalDavSession* iSession; - - }; - -#endif //__CALENLUNARPLUGIN_H__ - - - - +/* +* Copyright (c) 2010 Sun Microsystems, Inc. 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 Contributor: +* Maximilian Odendahl +* +* Contributors: +* +* Description: CalDav ECOM plugin +* +*/ + +#ifndef __CALENLUNARPLUGIN_H__ +#define __CALENLUNARPLUGIN_H__ + +//SYSTEM INCLUDES +#include +#include + +//CALENDAR INCLUDES +#include +#include +#include "calencustomisation.h" +#include "CalendarVariant.hrh" + +//FORWARD DECLARE +class CEikonEnv; +class CCalenLunarInfoProvider; +class CEikLabel; +class CCoeControl; +class TRect; +class CEikMenuPane; +class CCalDavSession; + +enum TCalDavSettingItem +{ + ECalDavSettingUrl = 0, + ECalDavSettingUser, + ECalDavSettingPassword, + ECalDavSettingEnable, + ECalDavSettingKeepServer, + ECalDavSettingSyncImmediate, + ECalDavSettingSyncInterval, + ECalDavSettingSyncRange, + ECalDavSettingAccess +}; + +//CLASS DECLARATION +NONSHARABLE_CLASS(CCalenCalDavPlugin) : public CCalenCustomisation, + public MCalenCommandHandler, + public MCalenNotificationHandler + + { + public: + + static CCalenCalDavPlugin* NewL( MCalenServices* aServices ); + virtual ~CCalenCalDavPlugin(); + + private: + CCalenCalDavPlugin( MCalenServices* aServices); + void ConstructL(); + + public: //From CCalenCustomisation + void GetCustomViewsL( RPointerArray& aCustomViewArray ); + void GetCustomSettingsL( RPointerArray& aCustomSettingArray ); + CCoeControl* InfobarL( const TRect& aRect ); + const TDesC& InfobarL(); + MCalenPreview* CustomPreviewPaneL( TRect& aRect ); + CCoeControl* PreviewPaneL( TRect& aRect ); + MCalenCommandHandler* CommandHandlerL( TInt aCommand ); + void RemoveViewsFromCycle( RArray& aViews ); + TBool CustomiseMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); + TBool CanBeEnabledDisabled(); + TAny* CalenCustomisationExtensionL( TUid aExtensionUid ); + + public:// From MCalenCommandHandler + TBool HandleCommandL( const TCalenCommand& aCommand ); + TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid ); + + public://From MCalenNotificationHandler + void HandleNotification( const TCalenNotification aNotification ); + + private: + + MCalenServices* iServices; + + TInt iStart; + TInt iEnd; + TRect iRect; + TInt iResourceFileOffset; + + CCalDavSession* iSession; + + }; + +#endif //__CALENLUNARPLUGIN_H__ + + + +