mmserv/sts/stsproxy/inc/stsimplementation.h
branchRCL_3
changeset 19 095bea5f582e
equal deleted inserted replaced
18:a36789189b53 19:095bea5f582e
       
     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 #ifndef STSIMPLEMENTATION_H_
       
    19 #define STSIMPLEMENTATION_H_
       
    20 
       
    21 #include <systemtoneservice.h>
       
    22 
       
    23 class RStsSession;
       
    24 
       
    25 NONSHARABLE_CLASS(CStsImplementation) : public CBase
       
    26     {
       
    27 public:
       
    28     static CStsImplementation* Create();
       
    29     virtual ~CStsImplementation();
       
    30 public:
       
    31     void PlayTone(CSystemToneService::TToneType aTone);
       
    32     void PlayAlarm(CSystemToneService::TAlarmType aAlarm,
       
    33             unsigned int& aAlarmContext, MStsPlayAlarmObserver& aObserver);
       
    34     void PlayAlarm(CSystemToneService::TToneType aTone,
       
    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_ */