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