photos_plat/controllers_collection_api/tsrc/ui_metaDataDialog/src/ui_metaDataDialogBlocks.cpp
changeset 0 4e91876724a2
child 18 bcb43dc84c44
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     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 "glxmetadataviewutility.h"
       
    23 #include "ui_metaDataDialog.h"
       
    24 
       
    25 // EXTERNAL DATA STRUCTURES
       
    26 //extern  ?external_data;
       
    27 
       
    28 // EXTERNAL FUNCTION PROTOTYPES  
       
    29 //extern ?external_function( ?arg_type,?arg_type );
       
    30 
       
    31 // CONSTANTS
       
    32 //const ?type ?constant_var = ?constant;
       
    33 
       
    34 // MACROS
       
    35 //#define ?macro ?macro_def
       
    36 
       
    37 // LOCAL CONSTANTS AND MACROS
       
    38 //const ?type ?constant_var = ?constant;
       
    39 //#define ?macro_name ?macro_def
       
    40 
       
    41 // MODULE DATA STRUCTURES
       
    42 //enum ?declaration
       
    43 //typedef ?declaration
       
    44 
       
    45 // LOCAL FUNCTION PROTOTYPES
       
    46 //?type ?function_name( ?arg_type, ?arg_type );
       
    47 
       
    48 // FORWARD DECLARATIONS
       
    49 //class ?FORWARD_CLASSNAME;
       
    50 
       
    51 // ============================= LOCAL FUNCTIONS ===============================
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // ?function_name ?description.
       
    55 // ?description
       
    56 // Returns: ?value_1: ?description
       
    57 //          ?value_n: ?description_line1
       
    58 //                    ?description_line2
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 /*
       
    62 ?type ?function_name(
       
    63     ?arg_type arg,  // ?description
       
    64     ?arg_type arg)  // ?description
       
    65     {
       
    66 
       
    67     ?code  // ?comment
       
    68 
       
    69     // ?comment
       
    70     ?code
       
    71     }
       
    72 */
       
    73 
       
    74 // ============================ MEMBER FUNCTIONS ===============================
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // Cui_metaDataDialog::Delete
       
    78 // Delete here all resources allocated and opened from test methods. 
       
    79 // Called from destructor. 
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 void Cui_metaDataDialog::Delete() 
       
    83     {
       
    84 
       
    85     }
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // Cui_metaDataDialog::RunMethodL
       
    89 // Run specified method. Contains also table of test mothods and their names.
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 TInt Cui_metaDataDialog::RunMethodL( 
       
    93     CStifItemParser& aItem ) 
       
    94     {
       
    95 
       
    96     static TStifFunctionInfo const KFunctions[] =
       
    97         {  
       
    98         // Copy this line for every implemented function.
       
    99         // First string is the function name used in TestScripter script file.
       
   100         // Second is the actual implementation member function. 
       
   101         ENTRY( "TestViewActivate", Cui_metaDataDialog::TestViewActivaeL ),
       
   102         //ADD NEW ENTRY HERE
       
   103         // [test cases entries] - Do not remove
       
   104 
       
   105         };
       
   106 
       
   107     const TInt count = sizeof( KFunctions ) / 
       
   108                         sizeof( TStifFunctionInfo );
       
   109 
       
   110     return RunInternalL( KFunctions, count, aItem );
       
   111 
       
   112     }
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // Cui_metaDataDialog::ExampleL
       
   116 // Example test method function.
       
   117 // (other items were commented in a header).
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 TInt Cui_metaDataDialog::TestViewActivaeL( CStifItemParser& /*aItem */)
       
   121     {
       
   122 
       
   123     const TBufC<256>  aUri(_L("e:\\images\\sample.jpg"));
       
   124     GlxMetadataViewUtility::ActivateViewL(aUri);
       
   125     
       
   126 
       
   127     return KErrNone;
       
   128 
       
   129     }
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // Cui_metaDataDialog::?member_function
       
   133 // ?implementation_description
       
   134 // (other items were commented in a header).
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 /*
       
   138 TInt Cui_metaDataDialog::?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