textandloc_pub/directory_localizer_api/tsrc/inc/testsdkdirloc.h
changeset 16 56cd22a7a1cb
parent 0 1fb32624e06b
child 18 67f6b0d39020
child 21 f2f7b3284356
equal deleted inserted replaced
0:1fb32624e06b 16:56cd22a7a1cb
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Test for CDirectoryLocalizer.h
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTSDKDIRLOC_H
       
    20 #define C_TESTSDKDIRLOC_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <stiflogger.h>
       
    24 #include <testscripterinternal.h>
       
    25 #include <stiftestmodule.h>
       
    26 #include <testclassassert.h>
       
    27 #include <coemain.h>
       
    28 #include <coeaui.h>
       
    29 
       
    30 // MACROS
       
    31 #define TEST_CLASS_VERSION_MAJOR 0
       
    32 #define TEST_CLASS_VERSION_MINOR 0
       
    33 #define TEST_CLASS_VERSION_BUILD 0
       
    34 
       
    35 // Logging path
       
    36 _LIT( KtestsdkdirlocLogPath, "\\logs\\testframework\\testsdkdirloc\\" );
       
    37 // Log file
       
    38 _LIT( KtestsdkdirlocLogFile, "testsdkdirloc.txt" );
       
    39 _LIT( KtestsdkdirlocLogFileWithTitle, "testsdkdirloc_[%S].txt" );
       
    40 
       
    41 // FORWARD DECLARATIONS
       
    42 class CTestSDKDirLoc;
       
    43 class CDirectoryLocalizer;
       
    44 
       
    45 /**
       
    46  *  CTestSDKDirLoc test class for STIF Test Framework TestScripter.
       
    47  *  ?other_description_lines
       
    48  *
       
    49  *  @lib ?library
       
    50  *  @since ?Series60_version
       
    51  */
       
    52 NONSHARABLE_CLASS( CTestSDKDirLoc ) : public CScriptBase
       
    53     {
       
    54 public: // Constructors and destructor
       
    55 
       
    56     /**
       
    57      * Two-phased constructor.
       
    58      */
       
    59     static CTestSDKDirLoc* NewL( CTestModuleIf& aTestModuleIf );
       
    60 
       
    61     /**
       
    62      * Destructor.
       
    63      */
       
    64     virtual ~CTestSDKDirLoc();
       
    65 
       
    66 public: // Functions from base classes
       
    67 
       
    68     /**
       
    69      * From CScriptBase Runs a script line.
       
    70      * @since ?Series60_version
       
    71      * @param aItem Script line containing method name and parameters
       
    72      * @return Symbian OS error code
       
    73      */
       
    74     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    75 
       
    76 private:
       
    77 
       
    78     /**
       
    79      * C++ default constructor.
       
    80      */
       
    81     CTestSDKDirLoc( CTestModuleIf& aTestModuleIf );
       
    82 
       
    83     /**
       
    84      * By default Symbian 2nd phase constructor is private.
       
    85      */
       
    86     void ConstructL();
       
    87 
       
    88     /**
       
    89      * Frees all resources allocated from test methods.
       
    90      * @since ?Series60_version
       
    91      */
       
    92     void Delete();
       
    93 
       
    94     /**
       
    95      * Method used to log version of test class
       
    96      */
       
    97     void SendTestClassVersion();
       
    98 
       
    99     /**
       
   100      * Turn off ScreenSaver
       
   101      * @since S60 5.0
       
   102      * @return Symbian OS error code.
       
   103      */
       
   104     void TurnOffScreenSaver();
       
   105     
       
   106     /**
       
   107      * Restore ScreenSaver
       
   108      * @since S60 5.0
       
   109      * @return Symbian OS error code.
       
   110      */
       
   111     void RestoreScreenSaver();
       
   112 
       
   113 private: // Test CDirectoryLocalizer.h
       
   114     /**
       
   115      * TestDLNewL test function for testing the NewL function
       
   116      * @since S60 5.0
       
   117      * @param aItem never used
       
   118      * @return Symbian OS error code.
       
   119      */
       
   120     virtual TInt TestDLNewL( CStifItemParser& /*aItem*/ );
       
   121 
       
   122     /**
       
   123      * TestDLNewLReaderL test function for testing the NewL function
       
   124      * @since S60 5.0
       
   125      * @param aItem never used
       
   126      * @return Symbian OS error code.
       
   127      */
       
   128     virtual TInt TestDLNewLResReaderL( CStifItemParser& /*aItem*/ );
       
   129 
       
   130     /**
       
   131      * TestDLNewLResIDL test function for testing the NewL function
       
   132      * @since S60 5.0
       
   133      * @param aItem never used
       
   134      * @return Symbian OS error code.
       
   135      */
       
   136     virtual TInt TestDLNewLResIDL( CStifItemParser& /*aItem*/ );
       
   137 
       
   138     /**
       
   139      * TestDLAddFromResourceL test function for testing the AddFromResourceL function
       
   140      * @since S60 5.0
       
   141      * @param aItem never used
       
   142      * @return Symbian OS error code.
       
   143      */
       
   144     virtual TInt TestDLAddFromResourceL( CStifItemParser& /*aItem*/ );
       
   145 
       
   146     /**
       
   147      * TestDLAddFromResourceLResIDL test function for testing the AddFromResourceL function
       
   148      * @since S60 5.0
       
   149      * @param aItem never used
       
   150      * @return Symbian OS error code.
       
   151      */
       
   152     virtual TInt TestDLAddFromResourceLResIDL( CStifItemParser& /*aItem*/ );
       
   153 
       
   154     /**
       
   155      * TestDLSetFullPath test function for testing the SetFullPath function
       
   156      * @since S60 5.0
       
   157      * @param aItem never used
       
   158      * @return Symbian OS error code.
       
   159      */
       
   160     virtual TInt TestDLSetFullPath( CStifItemParser& /*aItem*/ );
       
   161 
       
   162     /**
       
   163      * TestDLIsLocalized test function for testing the IsLocalized function
       
   164      * @since S60 5.0
       
   165      * @param aItem never used
       
   166      * @return Symbian OS error code.
       
   167      */
       
   168     virtual TInt TestDLIsLocalized( CStifItemParser& /*aItem*/ );
       
   169 
       
   170     /**
       
   171      * TestDLLocalizedName test function for testing the LocalizedName function
       
   172      * @since S60 5.0
       
   173      * @param aItem never used
       
   174      * @return Symbian OS error code.
       
   175      */
       
   176     virtual TInt TestDLLocalizedName( CStifItemParser& /*aItem*/ );
       
   177 
       
   178     /**
       
   179      * TestDLExtraData test function for testing the ExtraData function
       
   180      * @since S60 5.0
       
   181      * @param aItem never used
       
   182      * @return Symbian OS error code.
       
   183      */
       
   184     virtual TInt TestDLExtraData( CStifItemParser& /*aItem*/ );
       
   185 
       
   186     /**
       
   187      * TestDLIcon test function for testing the Icon function
       
   188      * @since S60 5.0
       
   189      * @param aItem never used
       
   190      * @return Symbian OS error code.
       
   191      */
       
   192     virtual TInt TestDLIcon( CStifItemParser& /*aItem*/ );
       
   193 
       
   194     /**
       
   195      * TestDLDelete test function for testing the destructor function
       
   196      * @since S60 5.0
       
   197      * @param aItem never used
       
   198      * @return Symbian OS error code.
       
   199      */
       
   200     virtual TInt TestDLDelete( CStifItemParser& /*aItem*/ );
       
   201 
       
   202 private: // Data
       
   203 
       
   204     /**
       
   205      * ScreenSaver Property
       
   206      */
       
   207     TInt iOldScreenSaverProperty;
       
   208 
       
   209     //Own : test functions in CDirectoryLocalizer.h
       
   210     CDirectoryLocalizer* iDirLocalizer;
       
   211     };
       
   212 
       
   213 #endif      // C_TESTSDKDIRLOC_H
       
   214 // End of File