telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmphonefactorytsy.h
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
--- a/telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmphonefactorytsy.h	Thu Aug 19 11:03:36 2010 +0300
+++ b/telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmphonefactorytsy.h	Tue Aug 31 16:23:08 2010 +0300
@@ -1,19 +1,19 @@
 /*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
+ * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
 
 
 
@@ -56,7 +56,7 @@
         void ConstructL();
 
         /**
-         * Returns Phone instance
+         * Returns a new Phone instance
          */
         CPhoneBase* NewPhoneL( const TDesC& aName );
 
@@ -103,12 +103,21 @@
         TBool IsSupported( const TInt aFunctionalUnit );    
 #ifdef USING_CTSY_DISPATCHER     
     protected:
-    	
-    	TBool UsingCtsyDispatcher();
-    	MLtsyFactoryBase* LoadLibraryL();
+        
+        TBool UsingCtsyDispatcher();
 #endif // #endif USING_CTSY_DISPATCHER
+        MLtsyFactoryBase* LoadLibraryL();
+        
+    private:
+        void InitCtsyL(MLtsyFactoryBase* aLtsyFactory);
+        TPtrC ReadDllNameFromConfigL(const TDesC& aConfigData);
+        TUint ReadDllUidFromConfigL(const TDesC& aConfigData);
+        static void ReadConfigFileL(RBuf* aConfigData);
+        static TPtrC GetValueForKeyL(const TDesC& aKeysValues, const TDesC& aKey);
+
     private:    // Data
     
+        MLtsyFactoryBase* iLtsyFactory;
         /**
          * Pointer to PhoneTSY
          * Not owned.
@@ -120,17 +129,8 @@
          * Not owned.
          */
         MMessageRouter* iMessageRouter;
-                
-        /**
-         * Pointer to LTSY factory, used to retrieve LTSY and SIM ATK TSY
-         * Not owned.
-         */
-        MLtsyFactoryBase* iLtsyFactory;
-#ifdef USING_CTSY_DISPATCHER        
+
         RLibrary iLoadedLib; //can either be LicenseeTsy or CtsyDispatcher dlls
-#endif // #ifdef USING_CTSY_DISPATCHER
     };
 
 #endif // CMMPHONEFACTORYTSY_H
-
-// End of File