phoneapp/phoneringingtoneplayer/inc/rphonetoneclient.h
changeset 78 baacf668fe89
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
       
     1 /*
       
     2 * Copyright (c) 2010-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:  Client interface for phone ringing tone server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef RPHONETONECLIENT_H
       
    20 #define RPHONETONECLIENT_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class TPhoneCommandParam;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 class RPhoneToneClient : public RSessionBase
       
    31     {
       
    32 public:
       
    33 
       
    34     IMPORT_C RPhoneToneClient();
       
    35 
       
    36     IMPORT_C ~RPhoneToneClient();
       
    37 
       
    38     /**
       
    39     * Starts playing the ringing tone.
       
    40     * Method plays tone according to values of parameter
       
    41     * @param aCommandParam contais ringingtone file name, volume etc.
       
    42     */    
       
    43     IMPORT_C void PlayRingingToneL( TPhoneCommandParam *aCommandParam );
       
    44 
       
    45     /**
       
    46     * Stops playing the ringing tone.
       
    47     * Method does not do anything if ringing tone is not playing.
       
    48     */
       
    49     IMPORT_C void StopPlayingL();
       
    50 
       
    51     /**
       
    52     * Establishes a connection with Server.
       
    53     * @return Result code indicating the success of operation.
       
    54     */
       
    55     IMPORT_C TInt Connect();
       
    56     
       
    57     };
       
    58 
       
    59 #endif // RPHONETONECLIENT_H
       
    60 
       
    61 // End of file