44
|
1 |
// TestTelephonyModel.inl
|
|
2 |
// Copyright (c) Symbian Software Ltd 2008. All rights reserved.
|
|
3 |
//
|
|
4 |
// The inline function implementation of CTestTelephonyModel
|
|
5 |
|
|
6 |
#ifndef TESTTELEPHONYMODEL_INL_
|
|
7 |
#define TESTTELEPHONYMODEL_INL_
|
|
8 |
|
|
9 |
// user include
|
|
10 |
#include "TestLtsyModel.h"
|
|
11 |
|
|
12 |
/**
|
|
13 |
* Get the shared phone environment
|
|
14 |
*
|
|
15 |
*/
|
|
16 |
CTestLtsySharedEnv& CTestLtsyModel::SharedEnv()
|
|
17 |
{
|
|
18 |
return *iSharedPhoneEnv;
|
|
19 |
}
|
|
20 |
|
|
21 |
/**
|
|
22 |
* Get the packet shared data
|
|
23 |
*
|
|
24 |
*/
|
|
25 |
CTestLtsyPktSharedData& CTestLtsyModel::PktSharedData()
|
|
26 |
{
|
|
27 |
return *iPktSharedData;
|
|
28 |
}
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Get the call shared data
|
|
32 |
*
|
|
33 |
*/
|
|
34 |
CTestLtsyCallSharedData& CTestLtsyModel::CallSharedData()
|
|
35 |
{
|
|
36 |
return *iCallSharedData;
|
|
37 |
}
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Get the sms shared data
|
|
41 |
*
|
|
42 |
*/
|
|
43 |
CTestLtsySmsSharedData& CTestLtsyModel::SmsSharedData()
|
|
44 |
{
|
|
45 |
return *iSmsSharedData;
|
|
46 |
}
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Get the phone store shared data
|
|
50 |
*
|
|
51 |
*/
|
|
52 |
|
|
53 |
|
|
54 |
CTestLtsyPhoneStoreSharedData& CTestLtsyModel::PhoneStoreSharedData()
|
|
55 |
{
|
|
56 |
return *iPhoneStoreSharedData;
|
|
57 |
}
|
|
58 |
|
|
59 |
///**
|
|
60 |
// * Get the Tsy Adaptor
|
|
61 |
// *
|
|
62 |
// */
|
|
63 |
//CTestTelephonyTsyAdaptor& CTestLtsySharedEnv::TsyAdaptor()
|
|
64 |
// {
|
|
65 |
// return *iTsyAdaptor;
|
|
66 |
// }
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Get the shared phone
|
|
70 |
*
|
|
71 |
*/
|
|
72 |
RMobilePhone& CTestLtsySharedEnv::Phone()
|
|
73 |
{
|
|
74 |
return *iSharedPhone;
|
|
75 |
}
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Get the shared ETel server
|
|
79 |
*
|
|
80 |
*/
|
|
81 |
RTelServer& CTestLtsySharedEnv::ETelServer()
|
|
82 |
{
|
|
83 |
return iSharedTelServer;
|
|
84 |
}
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Check if the shared phone has arleady been opened before
|
|
88 |
*
|
|
89 |
*/
|
|
90 |
TBool CTestLtsySharedEnv::PhoneOpened()
|
|
91 |
{
|
|
92 |
return iPhoneInitialized;
|
|
93 |
}
|
|
94 |
|
|
95 |
/**
|
|
96 |
* Increase the shared phone reference number when a client used the shared phone
|
|
97 |
*
|
|
98 |
*/
|
|
99 |
void CTestLtsySharedEnv::IncreasePhoneReference()
|
|
100 |
{
|
|
101 |
iPhoneRef++;
|
|
102 |
}
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Decrease the shared phone reference number
|
|
106 |
*
|
|
107 |
*/
|
|
108 |
void CTestLtsySharedEnv::DecreasePhoneReference()
|
|
109 |
{
|
|
110 |
iPhoneRef--;
|
|
111 |
}
|
|
112 |
|
|
113 |
/**
|
|
114 |
* Get the phone reference count
|
|
115 |
*
|
|
116 |
*/
|
|
117 |
TInt CTestLtsySharedEnv::PhoneRefCount()
|
|
118 |
{
|
|
119 |
return iPhoneRef;
|
|
120 |
}
|
|
121 |
|
|
122 |
#endif /*TESTTELEPHONYMODEL_INL_*/
|
|
123 |
|
|
124 |
// end of file
|