classicui_pub/server_application_api/tsrc/inc/testsdkserverapplication.h
changeset 0 2f259fa3e83a
child 14 3320e4e6e8bb
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 AknServerApp.h 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_TESTSDKSERVERAPPLICATION_H
       
    19 #define C_TESTSDKSERVERAPPLICATION_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <stiflogger.h>
       
    23 #include <testscripterinternal.h>
       
    24 #include <stiftestmodule.h>
       
    25 #include <testclassassert.h>
       
    26 
       
    27 // MACROS
       
    28 #define TEST_CLASS_VERSION_MAJOR 0
       
    29 #define TEST_CLASS_VERSION_MINOR 0
       
    30 #define TEST_CLASS_VERSION_BUILD 0
       
    31 
       
    32 // Logging path
       
    33 _LIT( KtestsdkserverapplicationLogPath, "\\logs\\testframework\\testsdkserverapplication\\" ); 
       
    34 // Log file
       
    35 _LIT( KtestsdkserverapplicationLogFile, "testsdkserverapplication.txt" ); 
       
    36 _LIT( KtestsdkserverapplicationLogFileWithTitle, "testsdkserverapplication_[%S].txt" );
       
    37 
       
    38 /**
       
    39 *  CTestSDKserverApplication test class for STIF Test Framework TestScripter.
       
    40 *  @since S60 5.0
       
    41 */
       
    42 NONSHARABLE_CLASS( CTestSDKserverApplication ) : public CScriptBase
       
    43     {
       
    44 public:  // Constructors and destructor
       
    45 
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     */
       
    49     static CTestSDKserverApplication* NewL( CTestModuleIf& aTestModuleIf );
       
    50 
       
    51     /**
       
    52     * Destructor.
       
    53     */
       
    54     virtual ~CTestSDKserverApplication();
       
    55 
       
    56 public: // Functions from base classes
       
    57 
       
    58     /**
       
    59     * From CScriptBase Runs a script line.
       
    60     * @since S60 5.0
       
    61     * @param aItem Script line containing method name and parameters
       
    62     * @return Symbian OS error code
       
    63     */
       
    64     virtual TInt RunMethodL( CStifItemParser& aItem );
       
    65 
       
    66 private:
       
    67 
       
    68     /**
       
    69     * C++ default constructor.
       
    70     */
       
    71     CTestSDKserverApplication( CTestModuleIf& aTestModuleIf );
       
    72 
       
    73     /**
       
    74     * By default Symbian 2nd phase constructor is private.
       
    75     */
       
    76     void ConstructL();
       
    77     
       
    78     /**
       
    79      * Method used to log version of test class
       
    80      */
       
    81     void SendTestClassVersion();
       
    82     
       
    83         /**
       
    84      * Turn off ScreenSaver
       
    85      * @since S60 5.0
       
    86      * @return Symbian OS error code.
       
    87      */
       
    88     void TurnOffScreenSaver();
       
    89 
       
    90     /**
       
    91      * Restore ScreenSaver
       
    92      * @since S60 5.0
       
    93      * @return Symbian OS error code.
       
    94      */
       
    95     void RestoreScreenSaver();
       
    96 
       
    97 private: // Test AknServerApp.h
       
    98 /*                               class RAknAppServiceBase                   */
       
    99     /**
       
   100      * TestASBConnectChainedAppL test function for testing the 
       
   101      *     ConnectChainedAppL function
       
   102      * @since S60 5.0
       
   103      * @param aItem never used
       
   104      * @return Symbian OS error code.
       
   105      */
       
   106     virtual TInt TestASBConnectChainedAppL( CStifItemParser& aItem );
       
   107     
       
   108     /**
       
   109      * TestASBCloseL test function for testing the 
       
   110      *     Close function
       
   111      * @since S60 5.0
       
   112      * @param aItem never used
       
   113      * @return Symbian OS error code.
       
   114      */
       
   115     virtual TInt TestASBCloseL( CStifItemParser& aItem );
       
   116     
       
   117 /*                         class MAknServerAppExitObserver                   */
       
   118     /**
       
   119      * TestSAEOHandleServerAppExitL test function for testing the 
       
   120      *     HandleServerAppExit function
       
   121      * @since S60 5.0
       
   122      * @param aItem never used
       
   123      * @return Symbian OS error code.
       
   124      */
       
   125     virtual TInt TestSAEOHandleServerAppExitL( CStifItemParser& aItem );
       
   126     
       
   127 /*                            class CAknAppServiceBase                       */
       
   128     /**
       
   129      * TestASBCAknAppServiceBaseL test function for testing the 
       
   130      *     CAknAppServiceBase function
       
   131      * @since S60 5.0
       
   132      * @param aItem never used
       
   133      * @return Symbian OS error code.
       
   134      */
       
   135     virtual TInt TestASBCAknAppServiceBaseL( CStifItemParser& aItem );
       
   136     
       
   137     /**
       
   138      * TestASBDeconstructorL test function for testing the 
       
   139      *     ~CAknAppServiceBase function
       
   140      * @since S60 5.0
       
   141      * @param aItem never used
       
   142      * @return Symbian OS error code.
       
   143      */
       
   144     virtual TInt TestASBDeconstructorL( CStifItemParser& aItem );
       
   145     
       
   146     /**
       
   147      * TestASBCreateL test function for testing the 
       
   148      *     CreateL function
       
   149      * @since S60 5.0
       
   150      * @param aItem never used
       
   151      * @return Symbian OS error code.
       
   152      */
       
   153     virtual TInt TestASBCreateL( CStifItemParser& aItem );
       
   154     
       
   155     /**
       
   156      * TestASBServiceL test function for testing the 
       
   157      *     ServiceL function
       
   158      * @since S60 5.0
       
   159      * @param aItem never used
       
   160      * @return Symbian OS error code.
       
   161      */
       
   162     virtual TInt TestASBServiceL( CStifItemParser& aItem );
       
   163     
       
   164     /**
       
   165      * TestASBServiceErrorL test function for testing the 
       
   166      *     ServiceError function
       
   167      * @since S60 5.0
       
   168      * @param aItem never used
       
   169      * @return Symbian OS error code.
       
   170      */
       
   171     virtual TInt TestASBServiceErrorL( CStifItemParser& aItem );
       
   172     
       
   173 /*                               class CAknAppServer                         */
       
   174     
       
   175     /**
       
   176      * TestASDeconstructorL test function for testing the 
       
   177      *     ~CAknAppServer function
       
   178      * @since S60 5.0
       
   179      * @param aItem never used
       
   180      * @return Symbian OS error code.
       
   181      */
       
   182     virtual TInt TestASDeconstructorL( CStifItemParser& aItem );
       
   183     
       
   184     /**
       
   185      * TestASConstructL test function for testing the 
       
   186      *     ConstructL function
       
   187      * @since S60 5.0
       
   188      * @param aItem never used
       
   189      * @return Symbian OS error code.
       
   190      */
       
   191     virtual TInt TestASConstructL( CStifItemParser& aItem );
       
   192     
       
   193     /**
       
   194      * TestASCreateServiceL test function for testing the 
       
   195      *     CreateServiceL function
       
   196      * @since S60 5.0
       
   197      * @param aItem never used
       
   198      * @return Symbian OS error code.
       
   199      */
       
   200     virtual TInt TestASCreateServiceL( CStifItemParser& aItem );
       
   201     
       
   202     /**
       
   203      * TestASHandleAllClientsClosedL test function for testing the 
       
   204      *     HandleAllClientsClosed function
       
   205      * @since S60 5.0
       
   206      * @param aItem never used
       
   207      * @return Symbian OS error code.
       
   208      */
       
   209     virtual TInt TestASHandleAllClientsClosedL( CStifItemParser& aItem );
       
   210 private:    // Data
       
   211 
       
   212     /**
       
   213      * ScreenSaver Property
       
   214      */
       
   215     TInt iOldScreenSaverProperty;
       
   216 
       
   217 
       
   218     };
       
   219 
       
   220 #endif      // C_TESTSDKSERVERAPPLICATION_H
       
   221 
       
   222 // End of File