calendarui/caldav/inc/calencaldavplugin.h
branchRCL_3
changeset 86 ed599363c2d7
parent 78 356f28cd5ca0
child 87 6d3f83773253
equal deleted inserted replaced
78:356f28cd5ca0 86:ed599363c2d7
     1 /*
       
     2 * Copyright (c) 2010 Sun Microsystems, Inc. and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributor:
       
    10 * Maximilian Odendahl
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description: CalDav ECOM plugin
       
    15 *
       
    16 */
       
    17  
       
    18 #ifndef __CALENLUNARPLUGIN_H__
       
    19 #define __CALENLUNARPLUGIN_H__
       
    20 
       
    21 //SYSTEM INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <ecom.h> 
       
    24 
       
    25 //CALENDAR INCLUDES
       
    26 #include <calencommandhandler.h>
       
    27 #include <calennotificationhandler.h>
       
    28 #include "calencustomisation.h"
       
    29 #include "CalendarVariant.hrh"
       
    30 
       
    31 //FORWARD DECLARE
       
    32 class CEikonEnv;
       
    33 class CCalenLunarInfoProvider;
       
    34 class CEikLabel;
       
    35 class CCoeControl;
       
    36 class TRect;
       
    37 class CEikMenuPane;
       
    38 class CCalDavSession;
       
    39 
       
    40 enum TCalDavSettingItem
       
    41 {
       
    42 	ECalDavSettingUrl = 0,
       
    43 	ECalDavSettingUser,
       
    44 	ECalDavSettingPassword,
       
    45 	ECalDavSettingEnable,	
       
    46 	ECalDavSettingKeepServer, 
       
    47 	ECalDavSettingSyncImmediate, 
       
    48 	ECalDavSettingSyncInterval,
       
    49 	ECalDavSettingSyncRange,
       
    50 	ECalDavSettingAccess
       
    51 };
       
    52 	
       
    53 //CLASS DECLARATION
       
    54 NONSHARABLE_CLASS(CCalenCalDavPlugin) : 	public CCalenCustomisation,
       
    55 												public MCalenCommandHandler,
       
    56 												public MCalenNotificationHandler
       
    57 									
       
    58 	{
       
    59 	public:
       
    60 	    
       
    61 	    static CCalenCalDavPlugin* NewL( MCalenServices* aServices );
       
    62 	    virtual ~CCalenCalDavPlugin();
       
    63     
       
    64 	private:
       
    65 		CCalenCalDavPlugin( MCalenServices* aServices);
       
    66 		void ConstructL();
       
    67 		
       
    68 	public: //From CCalenCustomisation
       
    69 		void GetCustomViewsL(  RPointerArray<CCalenView>& aCustomViewArray );
       
    70 		void GetCustomSettingsL( RPointerArray<CAknSettingItem>& aCustomSettingArray );
       
    71         CCoeControl* InfobarL( const TRect& aRect );
       
    72         const TDesC& InfobarL();
       
    73 	  MCalenPreview* CustomPreviewPaneL( TRect& aRect );
       
    74         CCoeControl* PreviewPaneL(  TRect& aRect );
       
    75         MCalenCommandHandler* CommandHandlerL( TInt aCommand );
       
    76         void RemoveViewsFromCycle( RArray<TInt>& aViews );
       
    77         TBool CustomiseMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    78         TBool CanBeEnabledDisabled();
       
    79         TAny* CalenCustomisationExtensionL( TUid aExtensionUid );        
       
    80         
       
    81     public:// From MCalenCommandHandler
       
    82         TBool HandleCommandL( const TCalenCommand& aCommand );
       
    83         TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid );
       
    84     
       
    85     public://From MCalenNotificationHandler 
       
    86         void HandleNotification( const TCalenNotification aNotification );
       
    87         
       
    88     private:
       
    89         
       
    90 		MCalenServices* iServices;
       
    91 	
       
    92 		TInt iStart;
       
    93 	    TInt iEnd;
       
    94 	    TRect iRect;
       
    95 	    TInt  iResourceFileOffset;
       
    96 	    
       
    97     	CCalDavSession* iSession;
       
    98 	    
       
    99 	};
       
   100 	
       
   101 #endif //__CALENLUNARPLUGIN_H__
       
   102 
       
   103 
       
   104 
       
   105