javauis/lcdui_akn/javalcdui/inc/lcdui.h
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   123 {
   123 {
   124 _LIT(KUIEnhMediaKeys,          "musickeyssupported");
   124 _LIT(KUIEnhMediaKeys,          "musickeyssupported");
   125 _LIT(KUIEnhCanvasBackground,   "canvashasbackground");
   125 _LIT(KUIEnhCanvasBackground,   "canvashasbackground");
   126 _LIT(KUIEnhPopUpTextBox,       "popuptextbox");
   126 _LIT(KUIEnhPopUpTextBox,       "popuptextbox");
   127 _LIT(KUIEnhFullScreenTextBox,  "fullscreentextbox");
   127 _LIT(KUIEnhFullScreenTextBox,  "fullscreentextbox");
   128 _LIT(KUIEnhVideoOverlay,       "videooverlaysupported");
       
   129 _LIT(KTrueValue,               "true");
   128 _LIT(KTrueValue,               "true");
   130 _LIT(KPauseValue,              "pause");
   129 _LIT(KPauseValue,              "pause");
   131 _LIT(KRunValue,                "run");
   130 _LIT(KRunValue,                "run");
   132 _LIT(KPortraitValue,           "portrait");
   131 _LIT(KPortraitValue,           "portrait");
   133 _LIT(KLandscapeValue,          "landscape");
   132 _LIT(KLandscapeValue,          "landscape");
   134 _LIT(KPositionBottom,          "bottom");
   133 _LIT(KPositionBottom,          "bottom");
   135 _LIT(KPositionRight,           "right");
   134 _LIT(KPositionRight,           "right");
   136 }
   135 }
   137 
   136 
       
   137 
       
   138 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   139 const TInt KHighlightedItemTextColor    = EAknsCIQsnTextColorsCG6;
       
   140 #else
   138 const TInt KHighlightedItemTextColor    = EAknsCIQsnTextColorsCG8;
   141 const TInt KHighlightedItemTextColor    = EAknsCIQsnTextColorsCG8;
       
   142 #endif // RD_JAVA_S60_RELEASE_9_2
   139 const TInt KNonHighlightedItemTextColor = EAknsCIQsnTextColorsCG6;
   143 const TInt KNonHighlightedItemTextColor = EAknsCIQsnTextColorsCG6;
   140 
   144 
   141 
   145 
   142 /**
   146 /**
   143  *
   147  *
   723          * is provided with the command as (x1,y1)-(x2,y2) inclusive-exclusive integer
   727          * is provided with the command as (x1,y1)-(x2,y2) inclusive-exclusive integer
   724          * coordinates following the command header.
   728          * coordinates following the command header.
   725          */
   729          */
   726         EDrwOpcBitBltRect = 1
   730         EDrwOpcBitBltRect = 1
   727 #endif // RD_JAVA_NGA_ENABLED
   731 #endif // RD_JAVA_NGA_ENABLED
   728 
       
   729         /**
       
   730          * Indicates start of drawing commands for canvas paint.
       
   731          * Used only video overlay case.
       
   732          * @since S60 9.2
       
   733          */
       
   734         ,EDrwOpcPaintStarted = 3
       
   735     };
   732     };
   736 public:
   733 public:
   737     /**
   734     /**
   738      * Returns the component type.
   735      * Returns the component type.
   739      * @return  The component type as a MMIDComponent::TType enum.
   736      * @return  The component type as a MMIDComponent::TType enum.
   839      * Notifies canvas about MIDlet exit. In exit Canvas must draw content to CWindowGc
   836      * Notifies canvas about MIDlet exit. In exit Canvas must draw content to CWindowGc
   840      * to enable system transition effects.
   837      * to enable system transition effects.
   841      * @since S60 9.2
   838      * @since S60 9.2
   842      */
   839      */
   843     virtual void MidletExiting() = 0;
   840     virtual void MidletExiting() = 0;
   844     
       
   845     /**
       
   846      * Returns ETrue if video overlay is currently used in Canvas.
       
   847      * ETrue is returned when:
       
   848      *      - overlay is enabled by the jad attribute
       
   849      *      - Canvas is not GameCanvas
       
   850      *      - Canvas has MMAPI content areas
       
   851      * @since S60 9.2
       
   852      */
       
   853     virtual TBool IsVideoOverlayActive() = 0;
       
   854 #endif // RD_JAVA_NGA_ENABLED
   841 #endif // RD_JAVA_NGA_ENABLED
   855 
   842 
   856     virtual TBool ReadyToBlit() const = 0;
   843     virtual TBool ReadyToBlit() const = 0;
   857 };
   844 };
   858 
   845 
  2499      * @param   Return <code>ETrue</code> if a background image can be shown.
  2486      * @param   Return <code>ETrue</code> if a background image can be shown.
  2500      * @since S60 5.0
  2487      * @since S60 5.0
  2501      */
  2488      */
  2502     virtual TBool CanvasHasBackground(const MMIDCanvas& aCanvas) const = 0;
  2489     virtual TBool CanvasHasBackground(const MMIDCanvas& aCanvas) const = 0;
  2503 
  2490 
  2504     /**
       
  2505      * Checks if video overlays are enabled (by the jad attribute).
       
  2506      * @return ETrue if overlays are enabled.
       
  2507      * @since S60 9.2
       
  2508      */
       
  2509     virtual TBool VideoOverlayEnabled() const = 0;
       
  2510 
       
  2511 #ifdef RD_JAVA_NGA_ENABLED
  2491 #ifdef RD_JAVA_NGA_ENABLED
  2512 
  2492 
  2513     /**
  2493     /**
  2514      * Hardware accelarator types
  2494      * Hardware accelarator types
  2515      * @since S60 9.2
  2495      * @since S60 9.2
  2585      *
  2565      *
  2586      * @return Last fullscreen Displayable
  2566      * @return Last fullscreen Displayable
  2587      * @since Java 2.1
  2567      * @since Java 2.1
  2588      */
  2568      */
  2589     virtual const MMIDDisplayable* LastFullscreenDisplayable() const = 0;
  2569     virtual const MMIDDisplayable* LastFullscreenDisplayable() const = 0;
  2590     
       
  2591     /**
       
  2592      * Returns reference to RCriticalSection that should be used in all
       
  2593      * MMAPI related synchronization in LCDUI.
       
  2594      *
       
  2595      * @return referende to RCriticalSection
       
  2596      * @since Java 2.1
       
  2597      */
       
  2598     virtual RCriticalSection& GetMMAPILock() = 0;
       
  2599     
       
  2600     /**
       
  2601      * Autolocker class for RCriticalSection.
       
  2602      */
       
  2603     class TCriticalSectionAutoLock
       
  2604     {
       
  2605     public:
       
  2606        /**
       
  2607         * Ctor
       
  2608         * @param aLock Syncronization primitive that is locked during construction
       
  2609         */
       
  2610         TCriticalSectionAutoLock(RCriticalSection& aLock) : iLock(aLock)
       
  2611        {
       
  2612            iLock.Wait();
       
  2613        }
       
  2614 
       
  2615        /**
       
  2616         * Dtor. Signals the synchronization primitive
       
  2617         */
       
  2618        ~TCriticalSectionAutoLock()
       
  2619        {
       
  2620            iLock.Signal();
       
  2621        }
       
  2622     private:
       
  2623        RCriticalSection& iLock;
       
  2624     };
       
  2625 };
  2570 };
  2626 
  2571 
  2627 /**
  2572 /**
  2628  *
  2573  *
  2629  * Interface class for provider of asynchronous calls to lcdui
  2574  * Interface class for provider of asynchronous calls to lcdui