radioengine/utils/api/radioenginedef.h
branchRCL_3
changeset 20 93c594350b9a
parent 19 cce62ebc198e
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RADIOENGINEDEF_H_
       
    19 #define RADIOENGINEDEF_H_
       
    20 
       
    21 namespace RadioEngine
       
    22     {
       
    23 
       
    24     /**
       
    25      * Headset volume.
       
    26      */
       
    27     enum TRadioHeadsetVolume
       
    28         {
       
    29         ERadioHeadsetDefaultVolume = 4   /**< Headset default volume. */
       
    30         };
       
    31 
       
    32     /**
       
    33      * Speaker volume.
       
    34      */
       
    35     enum TRadioSpeakerVolume
       
    36         {
       
    37         ERadioSpeakerDefaultVolume = 4   /**< Speaker default volume. */
       
    38         };
       
    39 
       
    40     /** Minimum volume */
       
    41     enum TRadioMinVolume
       
    42         {
       
    43         ERadioDefaultMinVolume = 1   /**< Default minimum volume. */
       
    44         };
       
    45 
       
    46     /**
       
    47      * Output sources.
       
    48      */
       
    49     enum TRadioAudioRoute
       
    50         {
       
    51         ERadioHeadset = 0,  /**< Headset in use. */
       
    52         ERadioSpeaker = 1   /**< Speaker in use. */
       
    53         };
       
    54 
       
    55     /** Direction of tuning */
       
    56     enum TRadioTuneDirection
       
    57         {
       
    58         ERadioDown,
       
    59         ERadioUp
       
    60         };
       
    61 
       
    62     /** Direction when setting the volume */
       
    63     enum TRadioVolumeSetDirection
       
    64         {
       
    65         ERadioDecVolume,
       
    66         ERadioIncVolume
       
    67         };
       
    68 
       
    69     /** Audio mode */
       
    70     enum TRadioAudioMode
       
    71         {
       
    72         ERadioStereo = 0,
       
    73         ERadioMono
       
    74         };
       
    75 
       
    76     /** Seeking state */
       
    77     enum TRadioSeeking
       
    78         {
       
    79         ERadioNotSeeking,
       
    80         ERadioSeekingUp,
       
    81         ERadioSeekingDown,
       
    82         };
       
    83 
       
    84     enum TRadioFrequencyEventReason
       
    85         {
       
    86         ERadioFrequencyEventReasonUnknown,     // Default reason
       
    87         ERadioFrequencyEventReasonNext,        // Step to next preset
       
    88         ERadioFrequencyEventReasonPrevious,    // Step to previous preset
       
    89         ERadioFrequencyEventReasonUp,          // Tune or step to higher frequency
       
    90         ERadioFrequencyEventReasonDown,        // Tune or step to lower frequency
       
    91         ERadioFrequencyEventReasonSeekUp,      // Seek to higher frequency
       
    92         ERadioFrequencyEventReasonSeekDown,    // Seek to lower frequency
       
    93         ERadioFrequencyEventReasonImplicit,    // Event originated by radio component
       
    94         ERadioFrequencyEventReasonDummy        // Dummy event, doesn't cause any actions
       
    95         };
       
    96     }
       
    97 
       
    98 #endif // RADIOENGINEDEF_H_