equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 #ifndef CMMPHONEFACTORYTSY_H |
20 #ifndef CMMPHONEFACTORYTSY_H |
21 #define CMMPHONEFACTORYTSY_H |
21 #define CMMPHONEFACTORYTSY_H |
54 * By default Symbian 2nd phase constructor. |
54 * By default Symbian 2nd phase constructor. |
55 */ |
55 */ |
56 void ConstructL(); |
56 void ConstructL(); |
57 |
57 |
58 /** |
58 /** |
59 * Returns Phone instance |
59 * Returns a new Phone instance |
60 */ |
60 */ |
61 CPhoneBase* NewPhoneL( const TDesC& aName ); |
61 CPhoneBase* NewPhoneL( const TDesC& aName ); |
62 |
62 |
63 /** |
63 /** |
64 * Returns SimAtk TSY instance |
64 * Returns SimAtk TSY instance |
101 * @return TBool ETrue if supported, EFalse if not |
101 * @return TBool ETrue if supported, EFalse if not |
102 */ |
102 */ |
103 TBool IsSupported( const TInt aFunctionalUnit ); |
103 TBool IsSupported( const TInt aFunctionalUnit ); |
104 #ifdef USING_CTSY_DISPATCHER |
104 #ifdef USING_CTSY_DISPATCHER |
105 protected: |
105 protected: |
106 |
106 |
107 TBool UsingCtsyDispatcher(); |
107 TBool UsingCtsyDispatcher(); |
108 MLtsyFactoryBase* LoadLibraryL(); |
|
109 #endif // #endif USING_CTSY_DISPATCHER |
108 #endif // #endif USING_CTSY_DISPATCHER |
|
109 MLtsyFactoryBase* LoadLibraryL(); |
|
110 |
|
111 private: |
|
112 void InitCtsyL(MLtsyFactoryBase* aLtsyFactory); |
|
113 TPtrC ReadDllNameFromConfigL(const TDesC& aConfigData); |
|
114 TUint ReadDllUidFromConfigL(const TDesC& aConfigData); |
|
115 static void ReadConfigFileL(RBuf* aConfigData); |
|
116 static TPtrC GetValueForKeyL(const TDesC& aKeysValues, const TDesC& aKey); |
|
117 |
110 private: // Data |
118 private: // Data |
111 |
119 |
|
120 MLtsyFactoryBase* iLtsyFactory; |
112 /** |
121 /** |
113 * Pointer to PhoneTSY |
122 * Pointer to PhoneTSY |
114 * Not owned. |
123 * Not owned. |
115 */ |
124 */ |
116 CMmPhoneTsy* iPhoneTsy; |
125 CMmPhoneTsy* iPhoneTsy; |
118 /** |
127 /** |
119 * Pointer to messagerouter |
128 * Pointer to messagerouter |
120 * Not owned. |
129 * Not owned. |
121 */ |
130 */ |
122 MMessageRouter* iMessageRouter; |
131 MMessageRouter* iMessageRouter; |
123 |
132 |
124 /** |
|
125 * Pointer to LTSY factory, used to retrieve LTSY and SIM ATK TSY |
|
126 * Not owned. |
|
127 */ |
|
128 MLtsyFactoryBase* iLtsyFactory; |
|
129 #ifdef USING_CTSY_DISPATCHER |
|
130 RLibrary iLoadedLib; //can either be LicenseeTsy or CtsyDispatcher dlls |
133 RLibrary iLoadedLib; //can either be LicenseeTsy or CtsyDispatcher dlls |
131 #endif // #ifdef USING_CTSY_DISPATCHER |
|
132 }; |
134 }; |
133 |
135 |
134 #endif // CMMPHONEFACTORYTSY_H |
136 #endif // CMMPHONEFACTORYTSY_H |
135 |
|
136 // End of File |
|