|
1 // Copyright (c) 2007-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 #ifndef __CIMMOBILITYTESTTLS_H__ |
|
17 #define __CIMMOBILITYTESTTLS_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <msvstd.h> |
|
21 |
|
22 #include "cimmobilitytestframework.h" |
|
23 #include <comms-infras/cs_mobility_apiext.h> // MMobilityProtocolResp |
|
24 |
|
25 class CImMobilityManager; |
|
26 |
|
27 /** |
|
28 Holds a list of the test frameworks and the list of actions read from |
|
29 the test script. |
|
30 A pointer to this class is held in thread local storage. |
|
31 |
|
32 @internalComponent |
|
33 @released |
|
34 */ |
|
35 NONSHARABLE_CLASS(CImMobilityTestTls) : public CBase |
|
36 { |
|
37 public: |
|
38 static CImMobilityTestTls* NewL(); |
|
39 CImMobilityTestTls(); |
|
40 void ConstructL(); |
|
41 ~CImMobilityTestTls(); |
|
42 |
|
43 void AddFrameworkL(CImMobilityTestFramework& aFramework); |
|
44 CImMobilityTestFramework* RemoveFramework(CImMobilityManager& aMobilityManager, TBool& aLastOne); |
|
45 CImMobilityTestFramework* GetFramework(TMsvId aServiceId); |
|
46 CImMobilityTestFramework* GetFramework(CImMobilityManager& aMobilityManager); |
|
47 CImMobilityTestFramework* GetFramework(MMobilityProtocolResp& aProtocol); |
|
48 |
|
49 private: |
|
50 // Test framework list |
|
51 RPointerArray<CImMobilityTestFramework> iFrameworkList; |
|
52 }; |
|
53 |
|
54 #endif //__CIMMOBILITYTESTTLS_H__ |