tsrc/fusionmpxplayer_test/inc/FusionMpxPlayerTestCommon.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FUSIONMPXPLAYERTESTCOMMON_H
       
    20 #define FUSIONMPXPLAYERTESTCOMMON_H
       
    21 
       
    22 // Category for PS keys used by tests. Test module and exe must both use this.
       
    23 const TUid KFusionMpxPlayerTestPScategory = { 0x101FB3E3 };
       
    24 
       
    25 const TUint KFusionMpxPlayerTestExeGlobalTesterCount = 1;
       
    26 
       
    27 // Set this to 1 to inform all the tester exe's for shutdown.
       
    28 const TInt KFusionMpxPlayerTestExeGlobalShutdownKey = 2;
       
    29 
       
    30 /**
       
    31  *  P&S key for commands, created by tester exe which adds it's own process id to this.
       
    32  */
       
    33 const TUint KFusionMpxPlayerTestExePsKeyCmd = 10; // Observed for changes by tester exe.
       
    34 
       
    35 /**
       
    36  *  Parameters for the commands, created by tester exe which adds it's own process id to these.
       
    37  */
       
    38 const TUint KFusionMpxPlayerTestExePsKeyCmdIntParam1 = 11;
       
    39 const TUint KFusionMpxPlayerTestExePsKeyCmdIntParam2 = 12;
       
    40 const TUint KFusionMpxPlayerTestExePsKeyCmdDescParam1 = 13;
       
    41 
       
    42 /**
       
    43  *  P&S keys for responses, created by tester exe which adds it's own process id to these.
       
    44  */
       
    45 // This is sent after tester exe has received the cmd.
       
    46 // Contains symbian error code.
       
    47 const TUint KFusionMpxPlayerTestExePsKeyResponse = 20;
       
    48 const TUint KFusionMpxPlayerTestExePsKeyResponseError = 21;
       
    49 
       
    50 /**
       
    51  * List of commands to tester exe.
       
    52  */
       
    53 enum TVcxFusionMpxPlayerCommand
       
    54     {
       
    55     // Params: none
       
    56     EVcxFusionMpxPlayerCommandShutdown, 
       
    57 
       
    58     // Descparam1: filename and path
       
    59     // Intparam1: start playback
       
    60     EVcxFusionMpxPlayerCommandOpenLocalFile,
       
    61 
       
    62     // Descparam1: url
       
    63     // Intparam1: iapId
       
    64     EVcxFusionMpxPlayerCommandOpenUrl,
       
    65     
       
    66     // Issues general playback command to player
       
    67     // Params: intparam1: command from mpxplaybackcommanddefs.h
       
    68     //         others: as needed
       
    69     EVcxFusionMpxPlayerCommandGeneralPlaybackCommand,  
       
    70     
       
    71     // Issues video playback command to player
       
    72     // Params: intparam1: command from  mpxvideoplaybackdefs.h
       
    73     //         others: as needed
       
    74     EVcxFusionMpxPlayerCommandVideoPlaybackCommand, 
       
    75     };
       
    76 
       
    77 /**
       
    78  * List of responses from tester exe.
       
    79  */
       
    80 enum TVcxFusionMpxPlayerResponse
       
    81     {
       
    82     // Sent after receiving command.
       
    83     EVcxFusionMpxPlayerResponseGeneralError = 1,
       
    84     // Sent after completing the command.
       
    85     EVcxFusionMpxPlayerResponseCommandComplete,
       
    86     // Sent after tester class is destroyed. 
       
    87     EVcxFusionMpxPlayerResponseShutdown,
       
    88     };
       
    89 
       
    90 #endif // FUSIONMPXPLAYERTESTCOMMON_H