javauis/lcdui_akn/javalcdui/inc/CMIDToLcduiObserver.h
branchRCL_3
changeset 60 6c158198356e
parent 19 04becd199f91
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
   129      * @param aConsumer Consumer of the callback.
   129      * @param aConsumer Consumer of the callback.
   130      * @param aCallbackId Id which is provided to the callback
   130      * @param aCallbackId Id which is provided to the callback
   131      */
   131      */
   132     void InvokeUICallback(MUiEventConsumer& aConsumer, TInt aCallbackId);
   132     void InvokeUICallback(MUiEventConsumer& aConsumer, TInt aCallbackId);
   133 
   133 
       
   134     /**
       
   135      * Invokes MDirectContainer::InvokeLcduiEvent in UI thread.
       
   136      *
       
   137      * @since S60 9.2
       
   138      * @param aControl CCoeControl pointer needed for checking that registered
       
   139      *                 control has not unregistered yet.
       
   140      * @param aContainer The container to be notifed.
       
   141      */
       
   142     void InvokeLcduiEvent(
       
   143          MMIDLcduiEventConsumer& aConsumer,
       
   144          TInt aCallbackId);
       
   145 
   134 private:
   146 private:
   135     /** CMIDToLcduiObserver event datatype */
   147     /** CMIDToLcduiObserver event datatype */
   136     enum TToLcduiEventType
   148     enum TToLcduiEventType
   137     {
   149     {
   138         EFlushEvent,
   150         EFlushEvent,
   139         EDSAResourcesCallbackEvent,
   151         EDSAResourcesCallbackEvent,
   140         EUICallbackEvent
   152         EUICallbackEvent
   141 #ifdef RD_JAVA_NGA_ENABLED
   153 #ifdef RD_JAVA_NGA_ENABLED
   142         ,ENotifyContentAdded
   154         ,ENotifyContentAdded
   143 #endif
   155 #endif
       
   156         ,ELcduiEvent
   144     };
   157     };
   145 
   158 
   146     /** CMIDToLcduiObserver event content datatype */
   159     /** CMIDToLcduiObserver event content datatype */
   147     struct TToLcduiEventData
   160     struct TToLcduiEventData
   148     {
   161     {
   149         TToLcduiEventType iType;
   162         TToLcduiEventType iType;
   150         CCoeControl* iControl;
   163         CCoeControl* iControl;
   151         TRect iRect;
   164         TRect iRect;
   152         MUiEventConsumer* iConsumer;
   165         void* iConsumer;
   153         TInt iId;
   166         TInt iId;
   154 #ifdef RD_JAVA_NGA_ENABLED
   167 #ifdef RD_JAVA_NGA_ENABLED
   155         MDirectContainer* iContainer;
   168         MDirectContainer* iContainer;
   156 #endif
   169 #endif
   157     };
   170     };
   177     void DoInvokeDSAResourcesCallback(
   190     void DoInvokeDSAResourcesCallback(
   178         CCoeControl* aControl,
   191         CCoeControl* aControl,
   179         MUiEventConsumer *aConsumer);
   192         MUiEventConsumer *aConsumer);
   180 
   193 
   181     /**
   194     /**
   182      * Invokes callback aConsumer->MdcUICallback.
   195      * Invokes callback aConsumer->HandleLcduiEvent(aCallbackId)
   183      *
   196      *
   184      * @since S60 5.0
   197      * @since S60 9.2
   185      * @param aConsumer Consumer of the callback.
   198      * @param aConsumer Consumer of the callback.
   186      * @param aCallbackId Id which is provided to the callback
   199      * @param aCallbackId Id which is provided to the callback
   187      */
   200      */
       
   201     void DoInvokeLcduiEvent(
       
   202          MMIDLcduiEventConsumer  *aConsumer,
       
   203          TInt aCallbackId);
       
   204     
       
   205     /**
       
   206      * Invokes callback aConsumer->MdcUICallback
       
   207      *
       
   208      * @since S60 5.0
       
   209      * @param aConsumer Consumer of the callback.
       
   210      * @param aCallbackId Id which is provided to the callback
       
   211      */
   188     void DoInvokeUICallback(
   212     void DoInvokeUICallback(
   189         MUiEventConsumer *aConsumer,
   213          MUiEventConsumer *aConsumer,
   190         TInt aCallbackId);
   214          TInt aCallbackId);
   191 
   215 
   192 
   216 
   193 #ifdef RD_JAVA_NGA_ENABLED
   217 #ifdef RD_JAVA_NGA_ENABLED
   194     /**
   218     /**
   195      * Invokes MDirectContainer::MdcNotifyContentAdded in UI thread.
   219      * Invokes MDirectContainer::MdcNotifyContentAdded in UI thread.
   219      * From CActive.
   243      * From CActive.
   220      * Implements cancellation of an outstanding request.
   244      * Implements cancellation of an outstanding request.
   221      *
   245      *
   222      * @since S60 5.0
   246      * @since S60 5.0
   223      */
   247      */
   224     virtual void DoCancel();
   248     virtual void DoCancel();    
   225 
   249 
   226 private:
   250 private:
   227     /**
   251     /**
   228      * Event queue to store the call requests
   252      * Event queue to store the call requests
   229      * Own.
   253      * Own.