|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __WSLISTEN_H__ |
|
23 #define __WSLISTEN_H__ |
|
24 |
|
25 #include <w32std.h> |
|
26 |
|
27 const TUint8 KListenerInfoSig = 0xaa; |
|
28 |
|
29 NONSHARABLE_STRUCT(TListenerInfo) |
|
30 { |
|
31 TUint8 iSignature; |
|
32 TInt iNumRect; |
|
33 TRect iRect; |
|
34 TInt iWindowGroupId; |
|
35 }; |
|
36 |
|
37 NONSHARABLE_CLASS(CWsListen): public CWsGraphic |
|
38 { |
|
39 public: |
|
40 IMPORT_C static CWsListen* NewL(); |
|
41 IMPORT_C static CWsListen* NewL(TBool aDisableWin); |
|
42 IMPORT_C ~CWsListen(); |
|
43 IMPORT_C TInt Enable(TBool aEnabled); |
|
44 IMPORT_C void SetCallBack(TCallBack aCallBack); |
|
45 IMPORT_C TInt QueryPlugin(TListenerInfo& aInfo); |
|
46 IMPORT_C void SetTestFlag(); |
|
47 private: |
|
48 // override CWsGraphic |
|
49 virtual void HandleMessage(const TDesC8& aData); |
|
50 virtual void OnReplace(); |
|
51 private: |
|
52 TBool iIsReady; |
|
53 TCallBack iCallBack; |
|
54 TListenerInfo* iReq; |
|
55 TBool iTestFlag; |
|
56 }; |
|
57 |
|
58 NONSHARABLE_CLASS(CWsNotify): public CWsGraphic |
|
59 { |
|
60 public: |
|
61 IMPORT_C static CWsNotify* NewL(); |
|
62 IMPORT_C static CWsNotify* NewL(TBool aPluginOrder); |
|
63 IMPORT_C ~CWsNotify(); |
|
64 IMPORT_C TInt SetBehaviour(TInt aType); |
|
65 private: |
|
66 // override CWsGraphic |
|
67 virtual void HandleMessage(const TDesC8& aData); |
|
68 virtual void OnReplace(); |
|
69 private: |
|
70 TBool iIsReady; |
|
71 public: |
|
72 TBool iResult; |
|
73 TBuf16<100> iError; |
|
74 }; |
|
75 |
|
76 #endif |