calendarui/organizerplugin/aiagendaplugin2/inc/aicalendarplugin2.h
branchRCL_3
changeset 5 42814f902fe6
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
0:f979ecb2b13e 5:42814f902fe6
    19 #ifndef C_AICALENDARPLUGIN2_H
    19 #ifndef C_AICALENDARPLUGIN2_H
    20 #define C_AICALENDARPLUGIN2_H
    20 #define C_AICALENDARPLUGIN2_H
    21 
    21 
    22 #include <AknsDrawUtils.h>
    22 #include <AknsDrawUtils.h>
    23 #include <AknUtils.h> 
    23 #include <AknUtils.h> 
    24 #include <aicontentpublisher.h>
    24 #include <hscontentpublisher.h>
    25 #include <aipropertyextension.h>
       
    26 #include <aieventhandlerextension.h>
       
    27 #include "PluginDataChangeObserver.h"
    25 #include "PluginDataChangeObserver.h"
    28 
    26 
    29 class CAIAgendaPluginEngineIf;
    27 class CAIAgendaPluginEngineIf;
    30 class CAICalendarPlugin2ConstantData;
    28 class CAICalendarPlugin2ConstantData;
    31 class CAICalendarPlugin2Data;
    29 class CAICalendarPlugin2Data;
    38  *  Main class of Active Idle's Calenda plug-in 2 implementation.
    36  *  Main class of Active Idle's Calenda plug-in 2 implementation.
    39  *
    37  *
    40  *  @lib aicalendarplugin2
    38  *  @lib aicalendarplugin2
    41  *  @since S60 3.2
    39  *  @since S60 3.2
    42  */
    40  */
    43 NONSHARABLE_CLASS( CAICalendarPlugin2 ): public CAiContentPublisher,
    41 NONSHARABLE_CLASS( CAICalendarPlugin2 ): public CHsContentPublisher,
    44                                          public MAiPropertyExtension,
       
    45                                          public MAiEventHandlerExtension,
       
    46                                          public MPluginDataChangeObserver
    42                                          public MPluginDataChangeObserver
    47 {
    43 {
    48     public:
    44     public:
    49 
    45 
    50     // Construction
    46     // Construction
    51 
    47 
    52         static CAICalendarPlugin2* NewL();
    48         static CAICalendarPlugin2* NewL();
    53 
    49 
    54         ~CAICalendarPlugin2();
    50         ~CAICalendarPlugin2();
    55 
    51 
    56     // From CAiContentPublisher
    52     // From CHsContentPublisher
    57 
    53 
    58         void Resume( TAiTransitionReason aReason );
    54         /**
    59 
    55          * @see CHsContentPublisher
    60         void Suspend( TAiTransitionReason aReason );
    56          */
    61 
    57         void Start( TStartReason aReason );
    62         void Stop( TAiTransitionReason aReason );
    58 
    63 
    59         /**
       
    60          * @see CHsContentPublisher
       
    61          */
       
    62         void Stop( TStopReason aReason );
       
    63 
       
    64         /**
       
    65          * @see CHsContentPublisher
       
    66          */    
       
    67         void Resume( TResumeReason aReason );
       
    68 
       
    69         /**
       
    70          * @see CHsContentPublisher
       
    71          */    
       
    72         void Suspend( TSuspendReason aReason );
       
    73 
       
    74         /**
       
    75          * @see CHsContentPublisher
       
    76          */    
    64         void SubscribeL( MAiContentObserver& aObserver );
    77         void SubscribeL( MAiContentObserver& aObserver );
    65 
    78 
       
    79         /**
       
    80          * @see CHsContentPublisher
       
    81          */    
    66         void ConfigureL( RAiSettingsItemArray& aSettings );
    82         void ConfigureL( RAiSettingsItemArray& aSettings );
    67 
    83 
    68         TAny* Extension( TUid aUid );
    84         /**
    69 
    85          * @see CHsContentPublisher
    70     // from MAiPropertyExtension
    86          */    
    71 
    87         TAny* GetProperty( TProperty aProperty );
    72         TAny* GetPropertyL( TInt aProperty );
    88 
    73 
    89         /**
    74         void SetPropertyL( TInt aProperty, TAny* aValue );
    90          * @see CHsContentPublisher
    75 
    91          */   
    76     // from MAiEventHandlerExtension
       
    77 
       
    78         void HandleEvent( TInt aEvent, const TDesC& aParam );
    92         void HandleEvent( TInt aEvent, const TDesC& aParam );
    79 
    93         
    80     // From MPluginDataChangeObserver
    94     // From MPluginDataChangeObserver
    81 
    95 
    82         void PluginDataChanged( const RPointerArray<CCalInstance>& aEntryArray,
    96         void PluginDataChanged( const RPointerArray<CCalInstance>& aEntryArray,
    83                                 TBool aHadEvents );
    97                                 TBool aHadEvents );
    84 
    98 
    90 
   104 
    91         void ConstructL();
   105         void ConstructL();
    92 
   106 
    93     // New methods
   107     // New methods
    94     
   108     
    95         void DoResumeL( TAiTransitionReason aReason );
   109         void DoResumeL( TResumeReason aReason );
    96         
   110         
    97         void CreateIconsL();
   111         void CreateIconsL();
    98         
   112         
    99         void CreateBitmapSkinnedIconL( const TAknsItemID& aSkinIconId, 
   113         void CreateBitmapSkinnedIconL( const TAknsItemID& aSkinIconId, 
   100                                        const TDesC& aFilename, 
   114                                        const TDesC& aFilename,