systemswstubs/exampledsy/src/dsyfactory.cpp
changeset 0 0ce1b5ce9557
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *    It implements the class CDosFactoryExample.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "DsySysUtils.h"
       
    21 #include "DsyHelper.h"
       
    22 #include "DsyMtc.h"
       
    23 #include "DsySelfTest.h"
       
    24 
       
    25 #include "DsySae.h"
       
    26 
       
    27 #include "DsyExtension.h"
       
    28 #include "DsyFactory.h"
       
    29 #include "DsyDebug.h"
       
    30 //
       
    31 // ---------------------------------------------------------
       
    32 // CDosFactoryExample::NewL
       
    33 // ---------------------------------------------------------
       
    34 //  
       
    35 CDosFactoryExample* CDosFactoryExample::NewL()
       
    36 {
       
    37 	FLOG(_L("CDosFactoryExample::NewL()"));
       
    38 
       
    39 	CDosFactoryExample* result = new (ELeave) CDosFactoryExample;
       
    40 
       
    41 	CleanupStack::PushL(result);
       
    42 	result->ConstructL();
       
    43 	CleanupStack::Pop();
       
    44 
       
    45 	return result;
       
    46 }
       
    47 
       
    48 //
       
    49 // ---------------------------------------------------------
       
    50 // CDosFactoryExample::ConstructL
       
    51 // ---------------------------------------------------------
       
    52 //  
       
    53 void CDosFactoryExample::ConstructL()
       
    54 {
       
    55 	FLOG(_L("CDosFactoryExample::ConstructL()"));
       
    56 }
       
    57 
       
    58 
       
    59 //
       
    60 // ---------------------------------------------------------
       
    61 // CDosFactoryExample::NewSysUtilsServiceL
       
    62 // ---------------------------------------------------------
       
    63 //  
       
    64 CDosSysUtilsBase* CDosFactoryExample::NewSysUtilsServiceL()
       
    65 {
       
    66 	FLOG(_L("CDosFactoryExample::NewSysUtilsServiceL()"));
       
    67 
       
    68 	return CDosSysUtilsExample::NewL();
       
    69 }
       
    70 
       
    71 //
       
    72 // ---------------------------------------------------------
       
    73 // CDosFactoryExample::NewHelperServiceL
       
    74 // ---------------------------------------------------------
       
    75 //  
       
    76 CDosHelperBase* CDosFactoryExample::NewHelperServiceL()
       
    77 {
       
    78 	FLOG(_L("CDosFactoryExample::NewHelperServiceL()"));
       
    79 
       
    80 	return CDosHelperExample::NewL();
       
    81 }
       
    82 
       
    83 //
       
    84 // ---------------------------------------------------------
       
    85 // CDosFactoryExample::NewMtcServiceL
       
    86 // ---------------------------------------------------------
       
    87 //  
       
    88 CDosMtcBase* CDosFactoryExample::NewMtcServiceL()
       
    89 {
       
    90 	FLOG(_L("CDosFactoryExample::NewMtcServiceL()"));
       
    91 
       
    92 	return CDosMtcExample::NewL();
       
    93 }
       
    94 
       
    95 //
       
    96 // ---------------------------------------------------------
       
    97 // CDosFactoryExample::NewSelfTestServiceL
       
    98 // ---------------------------------------------------------
       
    99 //  
       
   100 CDosSelfTestBase* CDosFactoryExample::NewSelfTestServiceL()
       
   101 {
       
   102 	FLOG(_L("CDosFactoryExample::NewSelfTestServiceL()"));
       
   103 
       
   104 	return CDosSelfTestExample::NewL();
       
   105 }
       
   106 
       
   107 //
       
   108 // ---------------------------------------------------------
       
   109 // CDosFactoryExample::NewSaeServiceL
       
   110 // ---------------------------------------------------------
       
   111 //  
       
   112 CDosSaeBase* CDosFactoryExample::NewSaeServiceL()
       
   113 {
       
   114 	FLOG(_L("CDosFactoryExample::NewSaeServiceL()"));
       
   115 
       
   116 	return CDosSaeExample::NewL();
       
   117 }
       
   118 
       
   119 //
       
   120 // ---------------------------------------------------------
       
   121 // CDosFactoryExample::NewExtensionServiceL
       
   122 // ---------------------------------------------------------
       
   123 //  
       
   124 CDosExtensionBase* CDosFactoryExample::NewExtensionServiceL()
       
   125 {
       
   126 	FLOG(_L("CDosFactoryExample::NewExtensionServiceL()"));
       
   127 
       
   128 	return CDosExtensionExample::NewL();
       
   129 }
       
   130 
       
   131 //
       
   132 // ---------------------------------------------------------
       
   133 // Polymorphic Dll Entry Point
       
   134 // ---------------------------------------------------------
       
   135 //  
       
   136 EXPORT_C CDosFactoryBase* LibEntryL()
       
   137 {
       
   138 	FLOG(_L("CDosFactoryExample::LibEntryL()"));
       
   139 
       
   140 	return CDosFactoryExample::NewL();
       
   141 }