phoneapp/phoneuiutils/src/tphonecmdparamaudiooutput.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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 "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: Implementation of TPhoneCmdParamAudioOutput class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparamaudiooutput.h"   
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamAudioOutput::TPhoneCmdParamAudioOutput
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TPhoneCmdParamAudioOutput::TPhoneCmdParamAudioOutput() :
       
    31     TPhoneCommandParam(),
       
    32     iAudioOutput( EPEHandset )
       
    33     {
       
    34     iParamId = EPhoneParamIdAudioOutput;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // TPhoneCmdParamAudioOutput::SetAudioOutput
       
    39 // Sets the accessory mode
       
    40 // (other items were commented in a header).
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 EXPORT_C void TPhoneCmdParamAudioOutput::SetAudioOutput( 
       
    44     TPEAudioOutput aAudioOutput )
       
    45     {
       
    46     iAudioOutput = aAudioOutput;
       
    47     }
       
    48 
       
    49 // ---------------------------------------------------------
       
    50 // TPhoneCmdParamAudioOutput::AudioOutput
       
    51 // Returns the accessory mode
       
    52 // (other items were commented in a header).
       
    53 // ---------------------------------------------------------
       
    54 //
       
    55 EXPORT_C TPEAudioOutput 
       
    56     TPhoneCmdParamAudioOutput::AudioOutput() const
       
    57     {
       
    58     return iAudioOutput;
       
    59     }
       
    60  
       
    61 //  End of File