meetingrequest/mrbcplugin/inc/cmrbcplugin.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2009-2009 Nokia Corporation 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 Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Class implementing the RECAL customisation interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRBCPLUGIN_H
       
    19 #define CMRBCPLUGIN_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <calencustomisation.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MCalenServices;
       
    26 class CMRBCPluginEntryLoader;
       
    27 class CMRBCPluginResourceReader;
       
    28 class MCalenPreview;
       
    29 class CMRBCEventPlugin;
       
    30 
       
    31 // CLASS DECLARATIONS
       
    32 /**
       
    33  * This class is used for creating implement of view through ECom framework.
       
    34  */
       
    35 NONSHARABLE_CLASS( CMRBCPlugin ) : public CCalenCustomisation
       
    36     {
       
    37 public: // C'tor and d'tor
       
    38     /**
       
    39     * Static constructor.
       
    40     * @param aServices 
       
    41     * @return A new instance of CMRBCPlugin
       
    42     */        
       
    43     static CMRBCPlugin* NewL( MCalenServices* aServices );
       
    44     
       
    45     /**
       
    46     * Destructor
       
    47     */
       
    48     ~CMRBCPlugin();
       
    49     
       
    50 public: // Interface
       
    51 
       
    52 protected: // From base class CCalenCustomisation
       
    53     
       
    54     void GetCustomViewsL(  RPointerArray<CCalenView>& aCustomViewArray );
       
    55             
       
    56     void GetCustomSettingsL( RPointerArray<CAknSettingItem>& aCustomSettingArray );
       
    57     
       
    58     CCoeControl* InfobarL( const TRect& aRect );
       
    59     
       
    60     const TDesC& InfobarL();
       
    61     
       
    62     MCalenPreview* CustomPreviewPaneL( TRect& aRect ); // From wk 39 onwards
       
    63     
       
    64     CCoeControl* PreviewPaneL( TRect& aRect );
       
    65     
       
    66     MCalenCommandHandler* CommandHandlerL(TInt aCommand );
       
    67     
       
    68     void RemoveViewsFromCycle( RArray<TInt>& aViews );
       
    69 
       
    70     TBool CustomiseMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    71     
       
    72     TBool CanBeEnabledDisabled();
       
    73     
       
    74     TAny* CalenCustomisationExtensionL( TUid aExtensionUid );
       
    75     
       
    76 private: // Implementation
       
    77     /**
       
    78      * C++ constructor
       
    79      */
       
    80     CMRBCPlugin( MCalenServices* aServices );
       
    81     
       
    82     /**
       
    83      * constructor
       
    84      */
       
    85     void ConstructL();
       
    86     
       
    87     MCalenCommandHandler* ResolveCommandHandlerL( TInt aCommand );
       
    88     
       
    89     CMRBCEventPlugin* PluginByUidL( TUid aUid );
       
    90     
       
    91 private: // Data
       
    92     /// Ref: Services interface for Calendar services
       
    93     MCalenServices* iServices; 
       
    94     /// Own: Plugin resource reader
       
    95     RPointerArray<CMRBCPluginResourceReader> iPluginResources;
       
    96     /// Own: Entry loader
       
    97     CMRBCPluginEntryLoader* iEntryLoader;
       
    98     };
       
    99     
       
   100 #endif // CMRBCPLUGIN_H
       
   101 
       
   102 // End of file