equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: TLS data object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef _LIW_TLS_DATA_H |
|
25 #define _LIW_TLS_DATA_H |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 class MLiwMenuLaunchObserver |
|
30 { |
|
31 public: |
|
32 virtual void MenuLaunched() = 0; |
|
33 }; |
|
34 |
|
35 NONSHARABLE_CLASS( CLiwTlsData ) : public CBase |
|
36 { |
|
37 public: |
|
38 static CLiwTlsData* OpenL(); |
|
39 static void Close(); |
|
40 |
|
41 inline static CLiwTlsData* Instance() |
|
42 { |
|
43 return static_cast<CLiwTlsData*>( Dll::Tls() ); |
|
44 } |
|
45 |
|
46 void AddMenuLaunchObserverL( MLiwMenuLaunchObserver* aObserver ); |
|
47 void RemoveMenuLaunchObserver( MLiwMenuLaunchObserver* aObserver ); |
|
48 |
|
49 // CEikMenuPane uses this to inform LIW when a menu is launched. |
|
50 void ReportMenuLaunch(); |
|
51 |
|
52 private: |
|
53 CLiwTlsData(); |
|
54 virtual ~CLiwTlsData(); |
|
55 |
|
56 static CLiwTlsData* NewL(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: |
|
60 TInt iRefCount; |
|
61 RPointerArray<MLiwMenuLaunchObserver> iMenuLaunchObservers; |
|
62 }; |
|
63 |
|
64 #endif // _LIW_TLS_DATA_H |
|
65 |
|
66 // End of file |