radioengine/utils/api/radioenginedef.h
changeset 13 46974bebc798
child 14 63aabac4416d
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     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      * Output sources.
       
    26      */
       
    27     enum TRadioAudioRoute
       
    28         {
       
    29         ERadioHeadset = 0,  /**< Headset in use. */
       
    30         ERadioSpeaker = 1   /**< Speaker in use. */
       
    31         };
       
    32 
       
    33     /** Direction of tuning */
       
    34     enum TRadioTuneDirection
       
    35         {
       
    36         ERadioDown,
       
    37         ERadioUp
       
    38         };
       
    39 
       
    40     /** Direction when setting the volume */
       
    41     enum TRadioVolumeSetDirection
       
    42         {
       
    43         ERadioDecVolume,
       
    44         ERadioIncVolume
       
    45         };
       
    46 
       
    47     /** Audio mode */
       
    48     enum TRadioAudioMode
       
    49         {
       
    50         ERadioStereo = 0,
       
    51         ERadioMono
       
    52         };
       
    53 
       
    54     /** Seeking state */
       
    55     enum TRadioSeeking
       
    56         {
       
    57         ERadioNotSeeking,
       
    58         ERadioSeekingUp,
       
    59         ERadioSeekingDown,
       
    60         };
       
    61 
       
    62     enum TRadioFrequencyEventReason
       
    63         {
       
    64         ERadioFrequencyEventReasonUnknown,     // Default reason
       
    65         ERadioFrequencyEventReasonNext,        // Step to next preset
       
    66         ERadioFrequencyEventReasonPrevious,    // Step to previous preset
       
    67         ERadioFrequencyEventReasonUp,          // Tune or step to higher frequency
       
    68         ERadioFrequencyEventReasonDown,        // Tune or step to lower frequency
       
    69         ERadioFrequencyEventReasonImplicit,    // Event originated by radio component
       
    70         ERadioFrequencyEventReasonDummy        // Dummy event, doesn't cause any actions
       
    71         };
       
    72     }
       
    73 
       
    74 #endif // RADIOENGINEDEF_H_