conversations_plat/im_cv_launcher_api/tsrc/ImCvLauncher_api/src/ImCvLauncher_apiBlocks.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2009 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: This file contains testclass implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 // [INCLUDE FILES] - do not remove
       
    19 #include <e32svr.h>
       
    20 #include <StifParser.h>
       
    21 #include <StifTestInterface.h>
       
    22 #include "ImCvLauncher_api.h"
       
    23 // imlauncher
       
    24 #include <imcvlauncher.h>
       
    25 
       
    26 // EXTERNAL DATA STRUCTURES
       
    27 //extern  ?external_data;
       
    28 
       
    29 // EXTERNAL FUNCTION PROTOTYPES  
       
    30 //extern ?external_function( ?arg_type,?arg_type );
       
    31 
       
    32 // CONSTANTS
       
    33 //const ?type ?constant_var = ?constant;
       
    34 
       
    35 // MACROS
       
    36 //#define ?macro ?macro_def
       
    37 
       
    38 // LOCAL CONSTANTS AND MACROS
       
    39 //const ?type ?constant_var = ?constant;
       
    40 //#define ?macro_name ?macro_def
       
    41 
       
    42 // MODULE DATA STRUCTURES
       
    43 //enum ?declaration
       
    44 //typedef ?declaration
       
    45 
       
    46 // LOCAL FUNCTION PROTOTYPES
       
    47 //?type ?function_name( ?arg_type, ?arg_type );
       
    48 
       
    49 // FORWARD DECLARATIONS
       
    50 //class ?FORWARD_CLASSNAME;
       
    51 
       
    52 // ============================= LOCAL FUNCTIONS ===============================
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // ?function_name ?description.
       
    56 // ?description
       
    57 // Returns: ?value_1: ?description
       
    58 //          ?value_n: ?description_line1
       
    59 //                    ?description_line2
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 /*
       
    63 ?type ?function_name(
       
    64     ?arg_type arg,  // ?description
       
    65     ?arg_type arg)  // ?description
       
    66     {
       
    67 
       
    68     ?code  // ?comment
       
    69 
       
    70     // ?comment
       
    71     ?code
       
    72     }
       
    73 */
       
    74 
       
    75 // ============================ MEMBER FUNCTIONS ===============================
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CImCvLauncher_api::Delete
       
    79 // Delete here all resources allocated and opened from test methods. 
       
    80 // Called from destructor. 
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CImCvLauncher_api::Delete() 
       
    84     {
       
    85 
       
    86     }
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // CImCvLauncher_api::RunMethodL
       
    90 // Run specified method. Contains also table of test mothods and their names.
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 TInt CImCvLauncher_api::RunMethodL( 
       
    94     CStifItemParser& aItem ) 
       
    95     {
       
    96 
       
    97     static TStifFunctionInfo const KFunctions[] =
       
    98         {  
       
    99         // Copy this line for every implemented function.
       
   100         // First string is the function name used in TestScripter script file.
       
   101         // Second is the actual implementation member function. 
       
   102         ENTRY( "Test_LaunchImConversationViewL", CImCvLauncher_api::Test_LaunchImConversationViewL ),
       
   103         //ADD NEW ENTRY HERE
       
   104         // [test cases entries] - Do not remove
       
   105 
       
   106         };
       
   107 
       
   108     const TInt count = sizeof( KFunctions ) / 
       
   109                         sizeof( TStifFunctionInfo );
       
   110 
       
   111     return RunInternalL( KFunctions, count, aItem );
       
   112 
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // CImCvLauncher_api::ExampleL
       
   117 // Example test method function.
       
   118 // (other items were commented in a header).
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 TInt CImCvLauncher_api::Test_LaunchImConversationViewL( CStifItemParser& aItem )
       
   122     {
       
   123 
       
   124     TVwsViewId activeViewId;
       
   125     
       
   126     IMCVLauncher::LaunchImConversationViewL(activeViewId, 4, KNullDesC );
       
   127     return KErrNone;
       
   128 
       
   129     }
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // CImCvLauncher_api::?member_function
       
   133 // ?implementation_description
       
   134 // (other items were commented in a header).
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 /*
       
   138 TInt CImCvLauncher_api::?member_function(
       
   139    CItemParser& aItem )
       
   140    {
       
   141 
       
   142    ?code
       
   143 
       
   144    }
       
   145 */
       
   146 
       
   147 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   148 // None
       
   149 
       
   150 //  [End of File] - Do not remove