tsrc/musenginestub/inc/musengtelephoneutils.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MUSENGTELEPHONEUTILS_H
       
    20 #define MUSENGTELEPHONEUTILS_H
       
    21 
       
    22 
       
    23 //#include "musunittesting.h"
       
    24 
       
    25 // SYSTEM
       
    26 #include <e32base.h>
       
    27 //#include <mtelephonyaudioroutingobserver.h>
       
    28 //#include <telephonyaudiorouting.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 //class CRepository;
       
    32 //class CTelephonyAudioRouting;
       
    33 
       
    34 /**
       
    35 *
       
    36 * @lib musengine.lib
       
    37 * @since S60 v3.2
       
    38 */
       
    39 class CMusEngTelephoneUtils : public CBase
       
    40                               //public MTelephonyAudioRoutingObserver
       
    41     {
       
    42     public:
       
    43 
       
    44         /**
       
    45         *
       
    46         * @since S60 v3.2
       
    47         */
       
    48         static CMusEngTelephoneUtils* NewL();
       
    49 
       
    50         /**
       
    51         *
       
    52         * @since S60 v3.2
       
    53         */
       
    54         ~CMusEngTelephoneUtils();
       
    55 
       
    56 
       
    57     public: // API
       
    58 
       
    59         /**
       
    60         *
       
    61         * @since S60 v3.2
       
    62         */
       
    63         void LoudspeakerL( TBool aEnable, TBool aShowDialog );
       
    64 
       
    65         /**
       
    66         *
       
    67         * @since S60 v3.2
       
    68         */
       
    69         TBool IsLoudSpeakerEnabled() const;
       
    70 
       
    71         /**
       
    72         *
       
    73         * @since S60 v3.2
       
    74         */
       
    75         TInt GetVolumeL() const;
       
    76 
       
    77         /**
       
    78         *
       
    79         * @since S60 v3.2
       
    80         */
       
    81         void SetVolumeL( TInt aVolume );
       
    82 
       
    83 
       
    84 
       
    85     private:
       
    86 
       
    87         /**
       
    88         *
       
    89         * @since S60 v3.2
       
    90         */
       
    91         CMusEngTelephoneUtils();
       
    92 
       
    93         /**
       
    94         *
       
    95         * @since S60 v3.2
       
    96         */
       
    97         void ConstructL();
       
    98 
       
    99 
       
   100     private: // HELPER
       
   101 
       
   102         /**
       
   103         *
       
   104         * @since S60 v3.2
       
   105         */
       
   106         TInt ValidateVolume( const TInt aVolume ) const;
       
   107 
       
   108 
       
   109     public: // DATA
       
   110 
       
   111         /**
       
   112          *  Stores the audio routing state at startup.
       
   113          */
       
   114         //CTelephonyAudioRouting::TAudioOutput iAudioOutputAtStartup;
       
   115 
       
   116         /**
       
   117         * Telephony audio routing instance. Owned.
       
   118         */
       
   119         //CTelephonyAudioRouting* iTelephonyAudioRouting;
       
   120 
       
   121         /**
       
   122         * Central repository. Owned.
       
   123         *
       
   124         * @since S60 v3.2
       
   125         */
       
   126         //CRepository* iRepository;
       
   127 
       
   128     };
       
   129 
       
   130 
       
   131 #endif // MUSENGTELEPHONEUTILS_H