|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef VCXCONNUTILTESTEXETESTER_H_ |
|
20 #define VCXCONNUTILTESTEXETESTER_H_ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <e32msgqueue.h> |
|
27 #include "VCXConnUtilTestPSObserver.h" |
|
28 |
|
29 // CONSTANTS |
|
30 |
|
31 // MACROS |
|
32 |
|
33 // DATA TYPES |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 |
|
39 // CLASS DECLARATION |
|
40 class CVCXConnUtilTestSubscriber; |
|
41 class CVCXConnUtilTester; |
|
42 |
|
43 /** |
|
44 * Observer PS key and when it changes to 1 sends msg to queue to stop the tester exe. |
|
45 * @since |
|
46 */ |
|
47 class CVCXConnUtilTestExeTester : public CBase, public MVCXConnUtilTestPSObserver |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 static CVCXConnUtilTestExeTester * NewL( TUint aProcessId ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CVCXConnUtilTestExeTester(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 TBool Running() { return iRunning; }; |
|
63 |
|
64 protected: // From base classes |
|
65 |
|
66 void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TInt& aValue ); |
|
67 |
|
68 void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TDesC& aValue ); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * C++ default constructor. |
|
74 */ |
|
75 CVCXConnUtilTestExeTester(); |
|
76 |
|
77 /** |
|
78 * By default Symbian 2nd phase constructor is private. |
|
79 */ |
|
80 void ConstructL( TUint aProcessId ); |
|
81 |
|
82 private: // Data |
|
83 TBuf<256> iName; |
|
84 |
|
85 CVCXConnUtilTester* iTester; |
|
86 |
|
87 CVCXConnUtilTestSubscriber* iGlobalShutdownSubcriber; |
|
88 |
|
89 CVCXConnUtilTestSubscriber* iCmdSubcriber; |
|
90 |
|
91 TBool iRunning; |
|
92 |
|
93 TInt iPSKeyBase; |
|
94 |
|
95 TInt iAckCount; |
|
96 }; |
|
97 |
|
98 #endif // VCXCONNUTILTESTEXETESTER_H_ |
|
99 |
|
100 // End of File |