javauis/lcdui_akn/javalcdui/inc/CMIDToolkit.h
branchRCL_3
changeset 60 6c158198356e
parent 24 0fd27995241b
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
    29 #include "lcdgr.h"
    29 #include "lcdgr.h"
    30 
    30 
    31 //
    31 //
    32 class CApaWindowGroupName;
    32 class CApaWindowGroupName;
    33 class CMIDToolkit;
    33 class CMIDToolkit;
       
    34 class MMIDDisplayable;
    34 
    35 
    35 /**
    36 /**
    36 Utility class providing access to the MIDlet suite attributes.
    37 Utility class providing access to the MIDlet suite attributes.
    37 */
    38 */
    38 class CMIDletSuite : public CBase
    39 class CMIDletSuite : public CBase
   101     static void InvokeSvrConstructL(CMIDToolkit* aToolkit,const TDesC* aName);
   102     static void InvokeSvrConstructL(CMIDToolkit* aToolkit,const TDesC* aName);
   102     void SetCurrentL(MMIDDisplayable* aDisplayable);
   103     void SetCurrentL(MMIDDisplayable* aDisplayable);
   103     void ClearDisplayable();
   104     void ClearDisplayable();
   104     TBool PostSerialEvent(jobject aRunnable);
   105     TBool PostSerialEvent(jobject aRunnable);
   105     void DisposeObject(MMIDComponent* aObject);
   106     void DisposeObject(MMIDComponent* aObject);
       
   107 
       
   108     // Returns pointer to last fullscreen displayble.
       
   109     inline const MMIDDisplayable* LastFullscreenDisplayable() const;
   106 
   110 
   107     //
   111     //
   108     // Activate event sources
   112     // Activate event sources
   109     //
   113     //
   110     void ActivateL();
   114     void ActivateL();
   163      */
   167      */
   164     void HandleExitL();
   168     void HandleExitL();
   165     void HandleForegroundL(TBool aForeground);
   169     void HandleForegroundL(TBool aForeground);
   166     void HandleSwitchOnEventL();
   170     void HandleSwitchOnEventL();
   167     void HandleResourceChangeL(TInt aType);
   171     void HandleResourceChangeL(TInt aType);
       
   172 #ifdef RD_JAVA_NGA_ENABLED
       
   173     void HandleFullOrPartialForegroundL(TBool aFullOrPartialFg);
       
   174     void HandleFreeGraphicsMemory();
       
   175 #endif
   168 
   176 
   169 private:
   177 private:
   170     /**
   178     /**
   171      * Resets user inactivity timers
   179      * Resets user inactivity timers
   172      */
   180      */
   216      */
   224      */
   217     TBool CheckEvent(CJavaEventBase*);
   225     TBool CheckEvent(CJavaEventBase*);
   218 
   226 
   219     void LoadLibrariesL();
   227     void LoadLibrariesL();
   220 
   228 
       
   229     /**
       
   230      * If current displayable is canvas,
       
   231      * returns pointer to it.
       
   232      *
       
   233      * @return  pointer to the current canvas, if current displayable is canvas.
       
   234      *          NULL, if current displayable is not canvas.
       
   235      */
       
   236     MMIDCanvas* GetCurrentCanvas() const;
       
   237 
   221 public:
   238 public:
   222     /*@ deprecated */
   239     /*@ deprecated */
   223     jmethodID iHandleNotifyMethod;
   240     jmethodID iHandleNotifyMethod;
   224 
   241 
   225 private:
   242 private:
   240         EPhase3
   257         EPhase3
   241     };
   258     };
   242 
   259 
   243     struct TObjectEntry
   260     struct TObjectEntry
   244     {
   261     {
   245 public:
   262     public:
   246         TObjectEntry(MMIDComponent* aComponent);
   263         TObjectEntry(MMIDComponent* aComponent);
   247         union
   264         union
   248         {
   265         {
   249             MMIDComponent*  iComponent;
   266             MMIDComponent*  iComponent;
   250             TObjectEntry*   iNextEntry;
   267             TObjectEntry*   iNextEntry;
   382             iCurrentDisplayable->DisplayableBehindPopupIsDestroyed();
   399             iCurrentDisplayable->DisplayableBehindPopupIsDestroyed();
   383         }
   400         }
   384     }
   401     }
   385 }
   402 }
   386 
   403 
       
   404 inline const MMIDDisplayable* CMIDToolkit::LastFullscreenDisplayable() const
       
   405 {
       
   406     return iOldFullScreenDisplayable;
       
   407 }
       
   408 
   387 #endif // CMIDTOOLKIT_H
   409 #endif // CMIDTOOLKIT_H