webengine/wmlengine/src/lmgr/include/nw_sound.h
changeset 74 91031d3aab7d
parent 68 92a765b5b3e7
child 85 e358f2276d3f
equal deleted inserted replaced
68:92a765b5b3e7 74:91031d3aab7d
     1 /*
       
     2 * Copyright (c) 2005 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:  Defines soundstart and background sound types.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef NW_SOUND_H
       
    21 #define NW_SOUND_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "BrsrTypes.h"
       
    25 #include "nwx_defs.h"
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // Soundstart types. Soundstart is a customer proprietary feature of anchor tags.
       
    34 // Example:
       
    35 //  <a href="some_url" soundstart=select|focus src="soundstart_url" volume=high|middle|low loop=N|infinite>
       
    36 typedef enum
       
    37     {
       
    38     ESoundstartActionOnSelect,
       
    39     ESoundstartActionOnFocus,
       
    40     } TSoundstartAction;
       
    41 
       
    42 typedef enum
       
    43     {
       
    44     ESoundstartVolumeCurrent = 0, // means use current device volume setting
       
    45     ESoundstartVolumeHigh,
       
    46     ESoundstartVolumeMiddle,
       
    47     ESoundstartVolumeLow,
       
    48     } TSoundstartVolume;
       
    49 
       
    50 typedef struct
       
    51     {
       
    52     TSoundstartAction action;
       
    53     NW_Int16 loop;
       
    54     TSoundstartVolume volume;
       
    55     NW_Ucs2* url;
       
    56     } TSoundstartState;
       
    57 
       
    58 
       
    59 // FUNCTION PROTOTYPES
       
    60 
       
    61 // FORWARD DECLARATIONS
       
    62 
       
    63 // CLASS DECLARATION
       
    64 
       
    65 #endif