classicui_plat/keylock_api/tsrc/inc/testsdkkeylock.h
changeset 49 31c16e0c5e3e
equal deleted inserted replaced
40:7165f928e888 49:31c16e0c5e3e
       
     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 AknKeyLock.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_TESTSDKKEYLOCK_H
       
    21 #define C_TESTSDKKEYLOCK_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <stiflogger.h>
       
    25 #include <testscripterinternal.h>
       
    26 #include <stiftestmodule.h>
       
    27 #include <testclassassert.h>
       
    28 
       
    29 
       
    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( KtestsdkkeylockLogPath, "\\logs\\testframework\\testsdkkeylock\\" ); 
       
    36 // Log file
       
    37 _LIT( KtestsdkkeylockLogFile, "testsdkkeylock.txt" ); 
       
    38 _LIT( KtestsdkkeylockLogFileWithTitle, "testsdkkeylock_[%S].txt" );
       
    39 
       
    40 class CTestSDKKeyLock;
       
    41 
       
    42 /**
       
    43 *  CTestSDKKeyLock test class for STIF Test Framework TestScripter.
       
    44 */
       
    45 NONSHARABLE_CLASS(CTestSDKKeyLock) : public CScriptBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48 
       
    49         /**
       
    50          * Two-phased constructor.
       
    51          */
       
    52         static CTestSDKKeyLock* NewL( CTestModuleIf& aTestModuleIf );
       
    53 
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         virtual ~CTestSDKKeyLock();
       
    58 
       
    59     public: // Functions from base classes
       
    60 
       
    61         /**
       
    62          * From CScriptBase Runs a script line.
       
    63          * @since ?Series60_version
       
    64          * @param aItem Script line containing method name and parameters
       
    65          * @return Symbian OS error code
       
    66          */
       
    67         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72          * C++ default constructor.
       
    73          */
       
    74         CTestSDKKeyLock( CTestModuleIf& aTestModuleIf );
       
    75 
       
    76         /**
       
    77          * By default Symbian 2nd phase constructor is private.
       
    78          */
       
    79         void ConstructL();
       
    80 
       
    81         /**
       
    82          * Frees all resources allocated from test methods.
       
    83          * @since ?Series60_version
       
    84          */
       
    85         void Delete();
       
    86         /**
       
    87          * Method used to log version of test class
       
    88          */
       
    89         void SendTestClassVersion();
       
    90         
       
    91     private: // Test AknKeyLock.h
       
    92 /*                               class RAknKeylock2                         */
       
    93         /**
       
    94          * TestKLConnectL test function for testing the 
       
    95          *     Connect function
       
    96          * @since S60 5.0
       
    97          * @param aItem never used
       
    98          * @return Symbian OS error code.
       
    99          */
       
   100         virtual TInt TestKLConnectL( CStifItemParser& aItem );
       
   101 
       
   102 /*                               class RAknKeyLock                          */
       
   103         /**
       
   104          * TestKLEnableKeyLockL test function for testing the EnableKeyLock function
       
   105          * @since S60 5.0
       
   106          * @param aItem never used
       
   107          * @return Symbian OS error code.
       
   108          */
       
   109         virtual TInt TestKLEnableKeyLockL( CStifItemParser& aItem );
       
   110         
       
   111         /**
       
   112          * TestKLDisableKeyLockL test function for testing the DisableKeyLock function
       
   113          * @since S60 5.0
       
   114          * @param aItem never used
       
   115          * @return Symbian OS error code.
       
   116          */
       
   117         virtual TInt TestKLDisableKeyLockL( CStifItemParser& aItem );
       
   118         
       
   119         /**
       
   120          * TestKLIsKeyLockEnabledL test function for testing the 
       
   121          *     IsKeyLockEnabled function
       
   122          * @since S60 5.0
       
   123          * @param aItem never used
       
   124          * @return Symbian OS error code.
       
   125          */
       
   126         virtual TInt TestKLIsKeyLockEnabledL( CStifItemParser& aItem );
       
   127         
       
   128         /**
       
   129          * TestKLEnableSoftNotificationsL test function for testing the 
       
   130          *     EnableSoftNotifications function
       
   131          * @since S60 5.0
       
   132          * @param aItem never used
       
   133          * @return Symbian OS error code.
       
   134          */
       
   135         virtual TInt TestKLEnableSoftNotificationsL( CStifItemParser& aItem );
       
   136         
       
   137         /**
       
   138          * TestKLOfferKeyLockL test function for testing the OfferKeyLock function
       
   139          * @since S60 5.0
       
   140          * @param aItem never used
       
   141          * @return Symbian OS error code.
       
   142          */
       
   143         virtual TInt TestKLOfferKeyLockL( CStifItemParser& aItem );
       
   144         
       
   145         /**
       
   146          * TestKLCancelAllNotificationsL test function for testing the 
       
   147          *     CancelAllNotifications function
       
   148          * @since S60 5.0
       
   149          * @param aItem never used
       
   150          * @return Symbian OS error code.
       
   151          */
       
   152         virtual TInt TestKLCancelAllNotificationsL( CStifItemParser& aItem );
       
   153          
       
   154         /**
       
   155          * TestKLDisableWithoutNoteL test function for testing the  
       
   156          *     DisableWithoutNote function
       
   157          * @since S60 5.0
       
   158          * @param aItem never used
       
   159          * @return Symbian OS error code.
       
   160          */
       
   161         virtual TInt TestKLDisableWithoutNoteL( CStifItemParser& aItem );
       
   162         
       
   163         /**
       
   164          * TestKLEnableWithoutNoteL test function for testing the 
       
   165          *     EnableWithoutNote function
       
   166          * @since S60 5.0
       
   167          * @param aItem never used
       
   168          * @return Symbian OS error code.
       
   169          */
       
   170         virtual TInt TestKLEnableWithoutNoteL( CStifItemParser& aItem );
       
   171         
       
   172         /**
       
   173          * TestKLEnableAutoLockEmulationL test function for testing the 
       
   174          *     EnableAutoLockEmulation function
       
   175          * @since S60 5.0
       
   176          * @param aItem never used
       
   177          * @return Symbian OS error code.
       
   178          */
       
   179         virtual TInt TestKLEnableAutoLockEmulationL( CStifItemParser& aItem );
       
   180         
       
   181     private:    // Data
       
   182 
       
   183         TInt iOldScreenSaverProperty;
       
   184     };
       
   185 
       
   186 #endif      // C_TESTSDKKEYLOCK_H
       
   187 
       
   188 // End of File