equal
deleted
inserted
replaced
14 * Description: Class definition that monitors tv window visibility |
14 * Description: Class definition that monitors tv window visibility |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
|
20 /** |
|
21 * @internal reviewed 24/08/2007 by D Holland |
|
22 */ |
|
23 |
|
24 #ifndef __GLXWINVISIBILITYMONITOR_H__ |
19 #ifndef __GLXWINVISIBILITYMONITOR_H__ |
25 #define __GLXWINVISIBILITYMONITOR_H__ |
20 #define __GLXWINVISIBILITYMONITOR_H__ |
26 |
21 |
27 // External Includes |
22 // External Includes |
28 #include <e32base.h> // for CBase |
23 #include <e32base.h> // for CBase |
31 |
26 |
32 // Forward Declarations |
27 // Forward Declarations |
33 class MGlxWindowVisibilityObserver; |
28 class MGlxWindowVisibilityObserver; |
34 |
29 |
35 |
30 |
36 |
|
37 /** |
31 /** |
38 * Class Description |
32 * Class Description |
39 * An Active object derived class is used to monitor the visibility of the |
33 * An Active object derived class is used to monitor the visibility of the |
40 * TV out window. |
34 * TV out window. |
41 * @author Loughlin |
|
42 */ |
35 */ |
43 NONSHARABLE_CLASS(CGlxWindowVisibilityMonitor) : public CBase, |
36 NONSHARABLE_CLASS(CGlxWindowVisibilityMonitor) : public CBase, |
44 public MAknWsEventObserver |
37 public MAknWsEventObserver |
45 { |
38 { |
46 public: |
39 public: |
72 /* |
65 /* |
73 * Symbian second stage construction |
66 * Symbian second stage construction |
74 */ |
67 */ |
75 void ConstructL(); |
68 void ConstructL(); |
76 |
69 |
77 public: // class member functions |
70 public: /// class member functions |
78 |
71 |
79 /* |
72 /** |
80 * Provides the caller with the current visible state |
73 * Provides the caller with the current visible state |
81 * @return ETrue if the window is visible or false otherwise |
74 * @return ETrue if the window is visible or false otherwise |
82 */ |
75 */ |
83 TBool IsVisible() const; |
76 TBool IsVisible() const; |
84 |
77 |
85 public: // from MAknWsEventObserver |
78 public: // from MAknWsEventObserver |
86 |
79 |
87 void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination ); |
80 void HandleWsEventL( const TWsEvent& aEvent, CCoeControl* aDestination ); |
88 |
81 |
89 private: // class member data |
82 private: /// class member data |
90 // Not ownded: The Akn event monitor |
83 /// Not ownded: The Akn event monitor |
91 CAknWsEventMonitor* iAknEventMonitor; |
84 CAknWsEventMonitor* iAknEventMonitor; |
92 |
85 |
93 // Not owned: Window visibility observer |
86 /// Not owned: Window visibility observer |
94 MGlxWindowVisibilityObserver& iVisibilityObserver; |
87 MGlxWindowVisibilityObserver& iVisibilityObserver; |
95 |
88 |
96 // The visible state |
89 /// The visible state |
97 TBool iIsVisible; |
90 TBool iIsVisible; |
98 }; |
91 }; |
99 |
92 |
100 |
93 |
101 |
94 |