musicplayer_plat/mpx_music_player_media_key_handler_api/tsrc/ui_mpxmusicplayerkeyhandertest/inc/ui_mpxmusicplayerkeyhandertest.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     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:  CMPXMusicplayermediakeyhandertest test class for STIF Test Framework TestScripter.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPXMUSICPLAYERMEDIAKEYHANDERTEST_H
       
    21 #define MPXMUSICPLAYERMEDIAKEYHANDERTEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include <TestclassAssert.h>
       
    28 #include <mpxmediakeyhandlerobserver.h>
       
    29 #include <mpxmediakeyhandler.h>
       
    30 // CONSTANTS
       
    31 //const ?type ?constant_var = ?constant;
       
    32 
       
    33 // MACROS
       
    34 //#define ?macro ?macro_def
       
    35 #define TEST_CLASS_VERSION_MAJOR 0
       
    36 #define TEST_CLASS_VERSION_MINOR 0
       
    37 #define TEST_CLASS_VERSION_BUILD 0
       
    38 #ifdef __WINSCW__
       
    39 // Logging path
       
    40 _LIT( KmpxmusicplayermediakeyhandertestLogPath, "c:\\logs\\testframework\\mpxmusicplayermediakeyhandertest\\" ); 
       
    41 // Log file
       
    42 _LIT( KmpxmusicplayermediakeyhandertestLogFile, "mpxmusicplayermediakeyhandertest.txt" ); 
       
    43 _LIT( KmpxmusicplayermediakeyhandertestLogFileWithTitle, "mpxmusicplayermediakeyhandertest_[%S].txt" );
       
    44 #else
       
    45 _LIT( KmpxmusicplayermediakeyhandertestLogPath, "e:\\logs\\testframework\\mpxmusicplayermediakeyhandertest\\" ); 
       
    46 // Log file
       
    47 _LIT( KmpxmusicplayermediakeyhandertestLogFile, "mpxmusicplayermediakeyhandertest.txt" ); 
       
    48 _LIT( KmpxmusicplayermediakeyhandertestLogFileWithTitle, "mpxmusicplayermediakeyhandertest_[%S].txt" );
       
    49 #endif
       
    50 // FUNCTION PROTOTYPES
       
    51 //?type ?function_name(?arg_list);
       
    52 
       
    53 // FORWARD DECLARATIONS
       
    54 //class ?FORWARD_CLASSNAME;
       
    55 class CMPXMusicplayermediakeyhandertest;
       
    56 class CCoeControl;
       
    57 class MMPXMediaKeyHandler;
       
    58 // DATA TYPES
       
    59 //enum ?declaration
       
    60 //typedef ?declaration
       
    61 //extern ?data_type;
       
    62 
       
    63 // CLASS DECLARATION
       
    64 
       
    65 /**
       
    66 *  CMPXMusicplayermediakeyhandertest test class for STIF Test Framework TestScripter.
       
    67 *  ?other_description_lines
       
    68 *
       
    69 *  @lib ?library
       
    70 *  @since ?Series60_version
       
    71 */
       
    72 NONSHARABLE_CLASS(CMPXMusicplayermediakeyhandertest) : public CScriptBase,
       
    73 													   public MMPXMediaKeyHandlerObserver
       
    74     {
       
    75     public:  // Constructors and destructor
       
    76 
       
    77         /**
       
    78         * Two-phased constructor.
       
    79         */
       
    80         static CMPXMusicplayermediakeyhandertest* NewL( CTestModuleIf& aTestModuleIf );
       
    81 
       
    82         /**
       
    83         * Destructor.
       
    84         */
       
    85         virtual ~CMPXMusicplayermediakeyhandertest();
       
    86 
       
    87     public: // New functions
       
    88 
       
    89         /**
       
    90         * ?member_description.
       
    91         * @since ?Series60_version
       
    92         * @param ?arg1 ?description
       
    93         * @return ?description
       
    94         */
       
    95         //?type ?member_function( ?type ?arg1 );
       
    96 
       
    97     public: // Functions from base classes
       
    98 
       
    99         /**
       
   100         * From CScriptBase Runs a script line.
       
   101         * @since ?Series60_version
       
   102         * @param aItem Script line containing method name and parameters
       
   103         * @return Symbian OS error code
       
   104         */
       
   105         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   106         virtual void HandleMediaKeyCommand(const TMPXPlaybackCommand /*aCommand*/,const TInt /*aData*/ ) {};
       
   107     protected:  // New functions
       
   108 
       
   109         /**
       
   110         * ?member_description.
       
   111         * @since ?Series60_version
       
   112         * @param ?arg1 ?description
       
   113         * @return ?description
       
   114         */
       
   115         //?type ?member_function( ?type ?arg1 );
       
   116 
       
   117     protected:  // Functions from base classes
       
   118 
       
   119         /**
       
   120         * From ?base_class ?member_description
       
   121         */
       
   122         //?type ?member_function();
       
   123 
       
   124     private:
       
   125 
       
   126         /**
       
   127         * C++ default constructor.
       
   128         */
       
   129         CMPXMusicplayermediakeyhandertest( CTestModuleIf& aTestModuleIf );
       
   130 
       
   131         /**
       
   132         * By default Symbian 2nd phase constructor is private.
       
   133         */
       
   134         void ConstructL();
       
   135 
       
   136         // Prohibit copy constructor if not deriving from CBase.
       
   137         // ?classname( const ?classname& );
       
   138         // Prohibit assigment operator if not deriving from CBase.
       
   139         // ?classname& operator=( const ?classname& );
       
   140 
       
   141         /**
       
   142         * Frees all resources allocated from test methods.
       
   143         * @since ?Series60_version
       
   144         */
       
   145         void Delete();
       
   146 
       
   147         /**
       
   148         * Test methods are listed below. 
       
   149         */
       
   150 
       
   151         /**
       
   152         * Example test method.
       
   153         * @since ?Series60_version
       
   154         * @param aItem Script line containing parameters.
       
   155         * @return Symbian OS error code.
       
   156         */
       
   157         virtual TInt ExampleL( CStifItemParser& aItem );
       
   158         TInt CancelMoveMR( CStifItemParser& aItem );
       
   159         virtual TInt EDWT_DeleteL( CStifItemParser& aItem );
       
   160         virtual TInt MPXmusicplayermediahandlerInstance( CStifItemParser& /*aItem*/ );
       
   161         TInt MPXmusicplayermediahandlerDestructor( CStifItemParser& );
       
   162         TInt MPXmusicplayermediahandlerShowPlaybackPopupL( CStifItemParser& /* aItem*/ );
       
   163         TInt MPXmusicplayermediahandlerShowVolumePopupL( CStifItemParser& /* aItem*/ );
       
   164         TInt MPXmusicplayermediahandlerDismissNotifier( CStifItemParser& /* aItem*/ );
       
   165         TInt MPXmusicplayermediahandlerSetEnableMediaKeys( CStifItemParser& /* aItem*/ );
       
   166         /**
       
   167          * Method used to log version of test class
       
   168          */
       
   169         void SendTestClassVersion();
       
   170 
       
   171         //ADD NEW METHOD DEC HERE
       
   172         //[TestMethods] - Do not remove
       
   173 
       
   174     public:     // Data
       
   175         // ?one_line_short_description_of_data
       
   176         //?data_declaration;
       
   177 
       
   178     protected:  // Data
       
   179         // ?one_line_short_description_of_data
       
   180         //?data_declaration;
       
   181 
       
   182     private:    // Data
       
   183         
       
   184         // ?one_line_short_description_of_data
       
   185         //?data_declaration;
       
   186 
       
   187         // Reserved pointer for future extension
       
   188         //TAny* iReserved;
       
   189 
       
   190     public:     // Friend classes
       
   191         //?friend_class_declaration;
       
   192     protected:  // Friend classes
       
   193         //?friend_class_declaration;
       
   194     private:    // Friend classes
       
   195         //?friend_class_declaration;
       
   196     	CCoeControl* iEdwinTestControl;
       
   197     	MMPXMediaKeyHandler* iMPXMediaKeyHandler;
       
   198     };
       
   199 
       
   200 #endif      // MPXMUSICPLAYERMEDIAKEYHANDERTEST_H
       
   201 
       
   202 // End of File