satui/satapp/tsrc/ut_satapp/src/dummyplaytoneprovider.cpp
changeset 15 d7fc66ccd6fb
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
       
     1 /*
       
     2 * Copyright (c) 2010 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 // PlayStandardTone
       
    20 #include    <MProfile.h>
       
    21 #include    <MProfileEngine.h>
       
    22 #include    <MProfileTones.h>
       
    23 #include    <TProfileToneSettings.h>
       
    24 #include    <audiopreference.h>//KAudioPriorityLowLevel
       
    25 
       
    26 #include    <Mda/Common/Resource.h>//KMdaRepeatForever
       
    27 #include    <QTimer> // timeout callback
       
    28 #include    <hbmessagebox.h>//playtone note
       
    29 #include    <mdaaudiotoneplayer.h>// for CMdaAudioToneUtility&CMdaAudioPlayerUtility
       
    30 #include    <e32std.h>//TTimeIntervalMicroSeconds
       
    31 
       
    32 #include "dummyplaytoneprovider.h"
       
    33 
       
    34 //#include "tflogger.h"
       
    35 
       
    36 
       
    37 // ----------------------------------------------------------------------------
       
    38 // DummyPlayToneProvider::DummyPlayToneProvider
       
    39 // (other items were commented in a header).
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 DummyPlayToneProvider::DummyPlayToneProvider(QObject *parent) :
       
    43     QObject(parent)
       
    44 {
       
    45     qDebug("SATAPP: DummyPlayToneProvider::DummyPlayToneProvider >");
       
    46     qDebug("SATAPP: DummyPlayToneProvider::DummyPlayToneProvider <");
       
    47 }
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // DummyPlayToneProvider::~DummyPlayToneProvider
       
    51 // Sets a pointer to CSatUiViewAppUi object.
       
    52 // (other items were commented in a header).
       
    53 // ----------------------------------------------------------------------------
       
    54 //
       
    55 DummyPlayToneProvider::~DummyPlayToneProvider()
       
    56 {
       
    57     qDebug("SATAPP: DummyPlayToneProvider::~DummyPlayToneProvider >");
       
    58     qDebug("SATAPP: DummyPlayToneProvider::~DummyPlayToneProvider <");
       
    59 }
       
    60 
       
    61 //-----------------------------------------------------------------------------
       
    62 // DummyPlayToneProvider::PlayStandardToneL
       
    63 // (other items were commented in a header).
       
    64 // ----------------------------------------------------------------------------
       
    65 //
       
    66 TSatUiResponse DummyPlayToneProvider::PlayStandardToneL( const TDesC& /*aText*/,
       
    67     const TDesC8& /*aSequence*/,
       
    68     TTimeIntervalMicroSeconds /*aDuration*/,
       
    69     const CFbsBitmap* /*aIconBitmap*/,
       
    70     const TBool /*aSelfExplanatory*/ )
       
    71 {
       
    72     qDebug("SATAPP: DummyPlayToneProvider::PlayStandardToneL >");
       
    73     qDebug("SATAPP: DummyPlayToneProvider::PlayStandardToneL <");
       
    74     return ESatSuccess;
       
    75 }
       
    76 
       
    77 
       
    78 // ---------------------------------------------------------
       
    79 // SatAppCommandHandler::GetProfileParamsL
       
    80 // Get and store settings from current profile 
       
    81 // (other items were commented in a header).
       
    82 // ---------------------------------------------------------
       
    83 //
       
    84 void DummyPlayToneProvider::GetProfileParamsL( TSatTone 
       
    85                   /*aTone = ESatToneNotSet*/, TDes* /*aToneName = NULL*/ )
       
    86 {
       
    87     qDebug( "SatAppCommandHandler::GetProfileParamsL >");
       
    88     qDebug("SatAppCommandHandler::GetProfileParamsL <");
       
    89 }
       
    90 
       
    91 // ---------------------------------------------------------
       
    92 // DummyPlayToneProvider::MatoPrepareComplete
       
    93 // Indicates success or failure.
       
    94 // (other items were commented in a header).
       
    95 // ---------------------------------------------------------
       
    96 //
       
    97 void DummyPlayToneProvider::MatoPrepareComplete(TInt /*aError*/)
       
    98 {
       
    99     qDebug("DummyPlayToneProvider::MatoPrepareComplete >");
       
   100     qDebug( "DummyPlayToneProvider::MatoPrepareComplete <");
       
   101 }
       
   102 
       
   103 //-----------------------------------------------------------------------------
       
   104 // DummyPlayToneProvider::MatoPlayComplete
       
   105 // Indicates success or failure.
       
   106 // (other items were commented in a header).
       
   107 // ----------------------------------------------------------------------------
       
   108 //
       
   109 void DummyPlayToneProvider::MatoPlayComplete( TInt /*aError*/ )
       
   110 {
       
   111     qDebug("DummyPlayToneProvider::MatoPlayComplete >");
       
   112     qDebug("DummyPlayToneProvider::MatoPlayComplete <");
       
   113 }
       
   114 
       
   115 //-----------------------------------------------------------------------------
       
   116 // DummyPlayToneProvider::PlayUserSelectedToneL
       
   117 // (other items were commented in a header).
       
   118 // ----------------------------------------------------------------------------
       
   119 //
       
   120 TSatUiResponse DummyPlayToneProvider::PlayUserSelectedToneL(
       
   121         const TDesC &/*aText*/,
       
   122         TTimeIntervalMicroSeconds /*aDuration*/,
       
   123         TSatTone /*aTone*/,
       
   124         const CFbsBitmap* /*aIconBitmap*/,
       
   125         const TBool /*aSelfExplanatory*/ )
       
   126 {
       
   127     qDebug("DummyPlayToneProvider::PlayUserSelectedToneL >");
       
   128     qDebug( "DummyPlayToneProvider::PlayUserSelectedToneL <");
       
   129     return ESatSuccess;
       
   130 }
       
   131 
       
   132 //-----------------------------------------------------------------------------
       
   133 // DummyPlayToneProvider::MapcInitComplete
       
   134 // Plays the tone.
       
   135 // (other items were commented in a header).
       
   136 // ----------------------------------------------------------------------------
       
   137 void DummyPlayToneProvider::MapcInitComplete( TInt /*aError*/, 
       
   138     const TTimeIntervalMicroSeconds& /*aDuration*/ )
       
   139 {
       
   140     qDebug( "DummyPlayToneProvider::MapcInitComplete >" );
       
   141     qDebug( "DummyPlayToneProvider::MapcInitComplete <" );
       
   142 }
       
   143 
       
   144 //-----------------------------------------------------------------------------
       
   145 // DummyPlayToneProvider::MapcPlayComplete
       
   146 // Deletes audio player after playing is completed.
       
   147 // (other items were commented in a header).
       
   148 // ----------------------------------------------------------------------------
       
   149 void DummyPlayToneProvider::MapcPlayComplete( TInt /*aError*/ )
       
   150 {
       
   151     qDebug( "DummyPlayToneProvider::MapcPlayComplete >");
       
   152     qDebug("DummyPlayToneProvider::MapcPlayComplete <");
       
   153 }
       
   154 
       
   155 // ----------------------------------------------------------------------------
       
   156 // DummyPlayToneProvider::clearScreen
       
   157 // (other items were commented in a header).
       
   158 // ----------------------------------------------------------------------------
       
   159 //
       
   160 void DummyPlayToneProvider::clearScreen()
       
   161 {
       
   162     qDebug("SATAPP: SatAppEventProvider::clearScreen >");
       
   163     qDebug("SATAPP: DummyPlayToneProvider::clearScreen <");
       
   164 }
       
   165 
       
   166 // ----------------------------------------------------------------------------
       
   167 // DummyPlayToneProvider::clearScreen
       
   168 // (other items were commented in a header).
       
   169 // ----------------------------------------------------------------------------
       
   170 //
       
   171 void DummyPlayToneProvider::closeSatUI()
       
   172 {
       
   173     qDebug("SATAPP: DummyPlayToneProvider::closeSatUI >");
       
   174     clearScreen();
       
   175     qDebug("SATAPP: DummyPlayToneProvider::closeSatUI <");
       
   176 }
       
   177 
       
   178  //End of file