classicui_plat/common_file_dialogs_filter_factory_api/tsrc/inc/testdomcfdfilterfactory.h
branchGCC_SURGE
changeset 44 484cb5040995
parent 32 512f698a535d
parent 40 7165f928e888
equal deleted inserted replaced
32:512f698a535d 44:484cb5040995
     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:  for testing the cfd filer factory module
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTDOMCFDFILTERFACTORY_H
       
    21 #define C_TESTDOMCFDFILTERFACTORY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <stiflogger.h>
       
    25 #include <testscripterinternal.h>
       
    26 #include <stiftestmodule.h>
       
    27 #include <testclassassert.h>
       
    28 
       
    29 // MACROS
       
    30 #define TEST_CLASS_VERSION_MAJOR 0
       
    31 #define TEST_CLASS_VERSION_MINOR 0
       
    32 #define TEST_CLASS_VERSION_BUILD 0
       
    33 
       
    34 // Logging path
       
    35 _LIT( KtestdomcfdfilterfactoryLogPath, "\\logs\\testframework\\testdomcfdfilterfactory\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestdomcfdfilterfactoryLogFile, "testdomcfdfilterfactory.txt" ); 
       
    38 _LIT( KtestdomcfdfilterfactoryLogFileWithTitle, "testdomcfdfilterfactory_[%S].txt" );
       
    39 
       
    40 /**
       
    41 *  Ctestdomcfdfilterfactory test class for STIF Test Framework TestScripter.
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( CTestDOMCFDFilterFactory ) : public CScriptBase
       
    45     {
       
    46 public:  // Constructors and destructor
       
    47 
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CTestDOMCFDFilterFactory* NewL( CTestModuleIf& aTestModuleIf );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     virtual ~CTestDOMCFDFilterFactory();
       
    57 
       
    58 public: // Functions from base classes
       
    59 
       
    60     /**
       
    61     * From CScriptBase Runs a script line.
       
    62     * @since S60 5.0
       
    63     * @param aItem Script line containing method name and parameters
       
    64     * @return Symbian OS error code
       
    65     */
       
    66     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    67 
       
    68 private:
       
    69 
       
    70     /**
       
    71     * C++ default constructor.
       
    72     */
       
    73     CTestDOMCFDFilterFactory( CTestModuleIf& aTestModuleIf );
       
    74 
       
    75     /**
       
    76     * By default Symbian 2nd phase constructor is private.
       
    77     */
       
    78     void ConstructL();
       
    79 
       
    80     
       
    81     /**
       
    82      * Method used to log version of test class
       
    83      */
       
    84     void SendTestClassVersion();
       
    85 
       
    86 private: //test the AknFileFilterFactory.h
       
    87     /**
       
    88     * TestFFFCreateAttributeFilterLC test method.
       
    89     * @since S60 5.0
       
    90     * @param aItem Script line containing parameters.
       
    91     * @return Symbian OS error code.
       
    92     */
       
    93     virtual TInt TestFFFCreateAttributeFilterLC( CStifItemParser& aItem );
       
    94     
       
    95     /**
       
    96     * TestFFFCreateFilenameFilterLC test method.
       
    97     * @since S60 5.0
       
    98     * @param aItem Script line containing parameters.
       
    99     * @return Symbian OS error code.
       
   100     */
       
   101     virtual TInt TestFFFCreateFilenameFilterLC( CStifItemParser& aItem );
       
   102 
       
   103 private:    // Data
       
   104 
       
   105     /**
       
   106      * ScreenSaver Property
       
   107      */
       
   108     TInt iOldScreenSaverProperty;
       
   109     // Resource file offset
       
   110     TInt iOffset;
       
   111 
       
   112     };
       
   113 
       
   114 #endif      // C_TESTDOMCFDFILTERFACTORY_H
       
   115 
       
   116 // End of File