mmserv/sts/stsimplementation/src/rstssession.h
changeset 33 5e8b14bae8c3
parent 28 ebf79c79991a
child 36 73253677b50a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
     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 client side session of the
       
    16  * STS Server.
       
    17  */
       
    18 
       
    19 #ifndef RSTSSESSION_H_
       
    20 #define RSTSSESSION_H_
       
    21 
       
    22 #include <e32msgqueue.h>
       
    23 #include <systemtoneservice.h>
       
    24 
       
    25 #include "stsclientservercommon.h"
       
    26 
       
    27 class RStsSession : public RSessionBase
       
    28     {
       
    29 public:
       
    30 
       
    31     TInt Connect();
       
    32 
       
    33     void Close();
       
    34 
       
    35     TInt SendPlayTone(CSystemToneService::TToneType aTone);
       
    36 
       
    37     TInt SendPlayAlarm(CSystemToneService::TAlarmType aAlarm,
       
    38             unsigned int& aAlarmContext, MStsPlayAlarmObserver& aObserver);
       
    39 
       
    40     TInt SendStopAlarm(unsigned int aAlarmContext);
       
    41 
       
    42 private:
       
    43 
       
    44     static TInt CallBackThreadMain(TAny* aSession);
       
    45     void RunThreadL();
       
    46     
       
    47     TInt StartMsgQueue();
       
    48     TInt StartServer();
       
    49     TInt StartThread();
       
    50 
       
    51     RThread iThread;
       
    52     RMsgQueue<TStsCallBack> iMsgQueue;
       
    53     };
       
    54 
       
    55 #endif // RSTSSESSION_H_