mmserv/sts/stsproxy/inc/stsimplementation.h
changeset 20 b67dd1fc57c5
parent 19 4a629bc82c5e
child 36 73253677b50a
equal deleted inserted replaced
19:4a629bc82c5e 20:b67dd1fc57c5
       
     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     PlayAlarm(CSystemToneService::TAlarmType aAlarm,
       
    35             unsigned int& aAlarmContext, MStsPlayAlarmObserver& aObserver);
       
    36     void StopAlarm(unsigned int aAlarmContext);
       
    37 private:
       
    38     CStsImplementation();
       
    39     bool Init();
       
    40 
       
    41     RStsSession* iSession;
       
    42     };
       
    43 
       
    44 #endif /* STSIMPLEMENTATION_H_ */