mmserv/sts/inc/stsimplementation.h
changeset 14 80975da52420
child 16 43d09473c595
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
       
     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  * This file defines the interface to the class that provides the
       
    16  * implementation logic of the STS API.
       
    17  */
       
    18 
       
    19 #ifndef STSIMPLEMENTATION_H_
       
    20 #define STSIMPLEMENTATION_H_
       
    21 
       
    22 #include <systemtoneservice.h>
       
    23 
       
    24 class RStsSession;
       
    25 
       
    26 NONSHARABLE_CLASS(CStsImplementation) : public CBase
       
    27     {
       
    28 public:
       
    29     static CStsImplementation* Create();
       
    30     virtual ~CStsImplementation();
       
    31 public:
       
    32     void PlayTone(CSystemToneService::TToneType aTone);
       
    33     void
       
    34     PlayTone(CSystemToneService::TToneType aTone, unsigned int& aPlayToneContext);
       
    35     void StopTone(unsigned int aPlayToneContext);
       
    36 private:
       
    37     CStsImplementation();
       
    38     bool Init();
       
    39 
       
    40     RStsSession* iSession;
       
    41     };
       
    42 
       
    43 #endif /* STSIMPLEMENTATION_H_ */