videofeeds/server/tsrc/VCXServiceManagementApiTest/src/IptvServiceManagementApiTest.cpp
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 the License "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:   ?Description*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <Stiftestinterface.h>
       
    22 #include "IptvServiceManagementApiTest.h"
       
    23 
       
    24 // EXTERNAL DATA STRUCTURES
       
    25 
       
    26 // EXTERNAL FUNCTION PROTOTYPES
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // LOCAL CONSTANTS AND MACROS
       
    33 
       
    34 // MODULE DATA STRUCTURES
       
    35 
       
    36 // LOCAL FUNCTION PROTOTYPES
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // ============================= LOCAL FUNCTIONS ===============================
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // ?function_name ?description.
       
    44 // ?description
       
    45 // Returns: ?value_1: ?description
       
    46 //          ?value_n: ?description_line1
       
    47 //                    ?description_line2
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 /*
       
    51 ?type ?function_name(
       
    52     ?arg_type arg,  // ?description
       
    53     ?arg_type arg)  // ?description
       
    54     {
       
    55 
       
    56     ?code  // ?comment
       
    57 
       
    58     // ?comment
       
    59     ?code
       
    60     }
       
    61 */
       
    62 
       
    63 // ============================ MEMBER FUNCTIONS ===============================
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CIptvServiceManagementApiTest::CIptvServiceManagementApiTest
       
    67 // C++ default constructor can NOT contain any code, that
       
    68 // might leave.
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 CIptvServiceManagementApiTest::CIptvServiceManagementApiTest(
       
    72     CTestModuleIf& aTestModuleIf ):
       
    73         CScriptBase( aTestModuleIf )
       
    74     {
       
    75     //__UHEAP_MARK;
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CIptvServiceManagementApiTest::ConstructL
       
    80 // Symbian 2nd phase constructor can leave.
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CIptvServiceManagementApiTest::ConstructL()
       
    84     {
       
    85     iLog = CStifLogger::NewL( KIptvServiceManagementApiTestLogPath,
       
    86                           KIptvServiceManagementApiTestLogFile,
       
    87                           CStifLogger::ETxt,
       
    88                           CStifLogger::EFile,
       
    89                           EFalse );
       
    90 
       
    91     }
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // CIptvServiceManagementApiTest::NewL
       
    95 // Two-phased constructor.
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 CIptvServiceManagementApiTest* CIptvServiceManagementApiTest::NewL(
       
    99     CTestModuleIf& aTestModuleIf )
       
   100     {
       
   101     CIptvServiceManagementApiTest* self = new (ELeave) CIptvServiceManagementApiTest( aTestModuleIf );
       
   102 
       
   103     CleanupStack::PushL( self );
       
   104     self->ConstructL();
       
   105     CleanupStack::Pop();
       
   106 
       
   107     return self;
       
   108 
       
   109     }
       
   110 
       
   111 // Destructor
       
   112 CIptvServiceManagementApiTest::~CIptvServiceManagementApiTest()
       
   113     {
       
   114 
       
   115     // Delete resources allocated from test methods
       
   116     Delete();
       
   117 
       
   118     // Delete logger
       
   119     delete iLog;
       
   120     //__UHEAP_MARKEND;
       
   121     }
       
   122 
       
   123 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // LibEntryL is a polymorphic Dll entry point.
       
   127 // Returns: CScriptBase: New CScriptBase derived object
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 EXPORT_C CScriptBase* LibEntryL(
       
   131     CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework
       
   132     {
       
   133 
       
   134     return ( CScriptBase* ) CIptvServiceManagementApiTest::NewL( aTestModuleIf );
       
   135 
       
   136     }
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // E32Dll is a DLL entry point function.
       
   140 // Returns: KErrNone
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 #ifndef EKA2 // Hide Dll entry point to EKA2
       
   144 GLDEF_C TInt E32Dll(
       
   145     TDllReason /*aReason*/) // Reason code
       
   146     {
       
   147     return(KErrNone);
       
   148 
       
   149     }
       
   150 #endif // EKA2
       
   151 
       
   152 //  End of File