1 // TestTelephonySharedData.h |
|
2 // |
|
3 // Copyright (c) 2003-2008 Symbian Software Ltd. All rights reserved. |
|
4 // |
|
5 // This contains TestTelephonySharedData |
|
6 #if (!defined __TEST_TELEPHONY_SHARED_DATA_H__) |
|
7 #define __TEST_TELEPHONY_SHARED_DATA_H__ |
|
8 |
|
9 // CDMA specific Conditional compilation |
|
10 //#include "../../group/configuration.cfg" |
|
11 |
|
12 // EPOC include |
|
13 #include <etelmm.h> |
|
14 #include <etel.h> |
|
15 #if (defined CDMA_API_ENABLED) |
|
16 #include <etelcdma.h> |
|
17 #endif |
|
18 #include <testexecutestepbase.h> |
|
19 |
|
20 #include "TestLtsyAsyncOperation.h" |
|
21 |
|
22 class CTestLtsySharedData : public CBase |
|
23 /** |
|
24 @internalAll |
|
25 @test |
|
26 @class CTestLtsySharedData |
|
27 |
|
28 For creating the shared data object and to access the object across |
|
29 the test steps.. |
|
30 */ |
|
31 { |
|
32 public: |
|
33 static CTestLtsySharedData* NewL(); |
|
34 |
|
35 ~CTestLtsySharedData(); |
|
36 TInt OpenPhone(const TName& aTsyName, CTestStep& aTestStep); |
|
37 void ClosePhone(); |
|
38 TInt ReopenPhone(); |
|
39 TBool PhoneOpened() const { return iPhoneOpened; } |
|
40 CTelephony& Telephony() const { return *iTelephony; } |
|
41 |
|
42 protected: |
|
43 CTestLtsySharedData(); |
|
44 virtual void ConstructL(); |
|
45 |
|
46 public: |
|
47 /** Holding Calld Id of line1 */ |
|
48 CTelephony::TCallId iCallId; |
|
49 /** Holding Calld Id of line2 */ |
|
50 CTelephony::TCallId iCallId1; |
|
51 /** Pointer to the RMobileCall object */ |
|
52 RMobileCall iMobileCall; |
|
53 /** Pointer to the RMobileLine object */ |
|
54 RMobileLine iMobileLine; |
|
55 /** Holds the TST name to be loaded */ |
|
56 TName iTSYName; |
|
57 /** For RTelServer connection */ |
|
58 TBool iTelServerConnected; |
|
59 /** For Phone module loading */ |
|
60 TBool iPhoneModuleLoaded; |
|
61 /** For RMobilePhone connection */ |
|
62 TBool iPhoneOpened; |
|
63 /** For RMobilePhone initialization */ |
|
64 TBool iPhoneInitialised; |
|
65 /** For RMobileLine connection */ |
|
66 TBool iLineOpened; |
|
67 /** For RMobileCall connection */ |
|
68 TBool iCallOpened; |
|
69 /** Holds RTelServer */ |
|
70 RTelServer iServer; |
|
71 RMobilePhone iMobilePhone; |
|
72 private: |
|
73 /** Pointer shared CTelephony object */ |
|
74 CTelephony* iTelephony; |
|
75 /** Holds pointer to the ActiveScheduler */ |
|
76 CActiveScheduler* iActiveScheduler; |
|
77 }; |
|
78 |
|
79 #endif //__TEST_TELEPHONY_SHARED_DATA_H__ |
|