idlehomescreen/inc/xnappuiadapter.h
branchRCL_3
changeset 9 f966699dea19
parent 0 f72a12da539e
child 15 ff572dfe6d86
child 27 7a8b39b569cb
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    59 
    59 
    60 public:
    60 public:
    61     // New functions
    61     // New functions
    62 
    62 
    63     /**
    63     /**
       
    64      * Removes and deregisters view from AppUi
       
    65      *
       
    66      * @since S60 5.2
       
    67      * @param aView view to deregister
       
    68      */
       
    69     IMPORT_C void RemoveViewL( CAknView& aView );
       
    70 
       
    71     /**
    64      * Get the UI engine
    72      * Get the UI engine
    65      *
    73      *
    66      * @since Series 60 3.1
    74      * @since Series 60 3.1
    67      * @return UI engine
    75      * @return UI engine
    68      */
    76      */
    88     /**
    96     /**
    89      * Handles data plugin loading.
    97      * Handles data plugin loading.
    90      * To be overriden by subclass.     
    98      * To be overriden by subclass.     
    91      *
    99      *
    92      * @since S60 5.0
   100      * @since S60 5.0
    93      * @param aList list of plugins to load     
   101      * @param aPublisher Publisher to load
    94      */
   102      * @param aReason Load reason
    95     IMPORT_C virtual void LoadDataPluginsL(
   103      * @return KErrNone if succesful, system wide error code otherwise     
    96         RPointerArray< CXnNodeAppIf >& aList );
   104      */
       
   105     IMPORT_C virtual TInt LoadPublisher(
       
   106         CXnNodeAppIf& aPublisher, TInt aReason );
    97 
   107 
    98     /**
   108     /**
    99      * Handles data plugin destroying.
   109      * Handles data plugin destroying.
   100      * To be overriden by subclass.     
   110      * To be overriden by subclass.     
   101      *
   111      *
   102      * @since S60 5.0
   112      * @since S60 5.0
   103      * @param aList list of plugins to destroy     
   113      * @param aPublisher Publisher to destroy     
   104      */
   114      * @param aReason Destroy reason
   105     IMPORT_C virtual void DestroyDataPluginsL(
   115      * @return KErrNone if succesful, system wide error code otherwise
   106         RPointerArray< CXnNodeAppIf >& aList );
   116      */
       
   117     IMPORT_C virtual TInt DestroyPublisher(
       
   118         CXnNodeAppIf& aPublisher, TInt aReason );
   107 
   119 
   108     /**
   120     /**
   109      * Handles dynamic menuitem element initialisation.
   121      * Handles dynamic menuitem element initialisation.
   110      * To be overriden by subclass.     
   122      * To be overriden by subclass.     
   111      *
   123      *
   115      * @return ETrue if menuitem should be shown, EFalse otherwise     
   127      * @return ETrue if menuitem should be shown, EFalse otherwise     
   116      */    
   128      */    
   117     IMPORT_C virtual TBool DynInitMenuItemL( 
   129     IMPORT_C virtual TBool DynInitMenuItemL( 
   118         const TDesC& aItemType, 
   130         const TDesC& aItemType, 
   119         RPointerArray< CXnNodeAppIf >* aList = NULL );
   131         RPointerArray< CXnNodeAppIf >* aList = NULL );
   120 
       
   121     /**
       
   122      * Determines and sets data plugins to online.
       
   123      * To be overriden by subclass.     
       
   124      *     
       
   125      * @since S60 5.0
       
   126      * @param aList List of data plugins     
       
   127      */            
       
   128     IMPORT_C virtual void SetOnlineStateL(     
       
   129         RPointerArray< CXnNodeAppIf >& aList );
       
   130     
   132     
   131     /*
   133     /*
   132      * Returns the Xml Ui view as CAknView reference.
   134      * Returns the Xml Ui view as CAknView reference.
   133      * 
   135      * 
   134      * @since S60 5.0
   136      * @since S60 5.0
   135      * @return Xml Ui View 
   137      * @return Xml Ui View 
   136      */
   138      */
   137     IMPORT_C CAknView& CXnAppUiAdapter::View() const;
   139     IMPORT_C CAknView& CXnAppUiAdapter::View() const;
   138 	
   140 	    
   139     /**
       
   140      * Handles page switch changes 
       
   141      * To be overriden by subclass.     
       
   142      *
       
   143      * @since S60 5.0
       
   144      */
       
   145     IMPORT_C virtual void HandlePageSwitch();
       
   146     
       
   147     /**
   141     /**
   148      * Handles changes when entering or exiting edit mode 
   142      * Handles changes when entering or exiting edit mode 
   149      * To be overriden by subclass.     
   143      * To be overriden by subclass.     
   150      *
   144      *
   151      * @since S60 5.0
   145      * @since S60 5.0
   152      * @param aEnter enter or exit edit mode
   146      * @param aEnter enter or exit edit mode
   153      */
   147      */
   154     IMPORT_C virtual void HandleEnterEditModeL( TBool aEnter );
   148     IMPORT_C virtual void HandleEnterEditModeL( TBool aEnter );
   155 
   149 
       
   150     /**
       
   151      * Routes the events from external rendering plug-ins to content plug-ins.
       
   152      *
       
   153      * @since S60 5.2
       
   154      * @param aEvent Event string
       
   155      * @param aDestination Destination node for the event
       
   156      */
       
   157     IMPORT_C virtual void HandleEventL( const TDesC& aEvent, 
       
   158         CXnNodeAppIf& aDestination );
       
   159     
   156 public:
   160 public:
   157     /**
   161     /**
   158      * From CEikAppUi.
   162      * From CEikAppUi.
   159      * Second-phase constructor
   163      * Second-phase constructor
   160      *
   164      *
   168      * From CAknAppUi.
   172      * From CAknAppUi.
   169      *
   173      *
   170      * @since Series 60 3.1
   174      * @since Series 60 3.1
   171      */
   175      */
   172     IMPORT_C void HandleResourceChangeL( TInt aType );
   176     IMPORT_C void HandleResourceChangeL( TInt aType );
   173     
   177 
       
   178     /**
       
   179      * From CAknAppUi.
       
   180      *
       
   181      * @since Series 60 5.2
       
   182      */
       
   183     IMPORT_C void PrepareToExit();
       
   184 
   174 public:
   185 public:
   175     // new functions
   186     // new functions
   176         
   187         
   177     /**
   188     /**
   178      * Reloads the UI
   189      * Reloads the UI
   260 
   271 
   261 private:
   272 private:
   262     // Data
   273     // Data
   263 
   274 
   264     /**
   275     /**
       
   276      * flag for application exit
       
   277      */
       
   278     TBool iExitingApp;
       
   279 
       
   280     /**
   265      * application uid
   281      * application uid
   266      */
   282      */
   267     TUid iApplicationUid;
   283     TUid iApplicationUid;
   268 
   284 
   269     /**
   285     /**