mmserv/tms/inc/tmsproxy.h
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
child 14 80975da52420
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
    30 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    31 class TMSEffect;
    31 class TMSEffect;
    32 class TMSEffectObserver;
    32 class TMSEffectObserver;
    33 class TMSGlobalRouting;
    33 class TMSGlobalRouting;
    34 class TMSGlobalRoutingObserver;
    34 class TMSGlobalRoutingObserver;
       
    35 class TMSDTMF;
       
    36 class TMSDTMFObserver;
       
    37 class TMSRingTone;
       
    38 class TMSRingToneObserver;
       
    39 class TMSInbandTone;
       
    40 class TMSInbandToneObserver;
    35 
    41 
    36 // TMSProxy class
    42 // TMSProxy class
    37 class TMSProxy : public RSessionBase,
    43 class TMSProxy : public RSessionBase,
    38                  public MQueueHandlerObserver
    44                  public MQueueHandlerObserver
    39     {
    45     {
    75     IMPORT_C gint SetLevel(guint level);
    81     IMPORT_C gint SetLevel(guint level);
    76     IMPORT_C gint GetGain(guint& level);
    82     IMPORT_C gint GetGain(guint& level);
    77     IMPORT_C gint GetMaxGain(guint& level);
    83     IMPORT_C gint GetMaxGain(guint& level);
    78     IMPORT_C gint SetGain(guint level);
    84     IMPORT_C gint SetGain(guint level);
    79 
    85 
       
    86     // Ringtone
       
    87     IMPORT_C gint InitRT(const TMSRingToneType type, GString* str,
       
    88             GString* tts);
       
    89     IMPORT_C gint DeinitRT();
       
    90     IMPORT_C gint PlayRT();
       
    91     IMPORT_C gint StopRT();
       
    92     IMPORT_C gint PauseRT();
       
    93     IMPORT_C gint MuteRT();
       
    94 
       
    95     // TMSDTMF
       
    96     IMPORT_C gint StartDTMF(TMSStreamType streamtype, GString* tone);
       
    97     IMPORT_C gint StopDTMF(TMSStreamType streamtype);
       
    98     IMPORT_C gint ContinueDTMFStringSending(TBool continuesending);
       
    99 
       
   100     // TMSInbandTone
       
   101     IMPORT_C gint StartInbandTone(TMSInbandToneType inbandtonetype);
       
   102     IMPORT_C gint StopInbandTone();
       
   103 
    80     // Global notifiers
   104     // Global notifiers
    81     IMPORT_C gint StartDTMFNotifier();
   105     IMPORT_C gint StartDTMFNotifier();
    82     IMPORT_C gint CancelDTMFNotifier();
   106     IMPORT_C gint CancelDTMFNotifier();
    83     IMPORT_C gint StartGlobalEffectNotifier();
   107     IMPORT_C gint StartGlobalEffectNotifier();
    84     IMPORT_C gint CancelGlobalEffectNotifier();
   108     IMPORT_C gint CancelGlobalEffectNotifier();
   103             TMSEffect& parent, gint clientid);
   127             TMSEffect& parent, gint clientid);
   104     gint RemoveGlobalEffectObserver(TMSEffectObserver& obsrvr);
   128     gint RemoveGlobalEffectObserver(TMSEffectObserver& obsrvr);
   105     gint AddRoutingObserver(TMSGlobalRoutingObserver& obsrvr,
   129     gint AddRoutingObserver(TMSGlobalRoutingObserver& obsrvr,
   106             TMSGlobalRouting& parent, gint clientid);
   130             TMSGlobalRouting& parent, gint clientid);
   107     gint RemoveRoutingObserver(TMSGlobalRoutingObserver& obsrvr);
   131     gint RemoveRoutingObserver(TMSGlobalRoutingObserver& obsrvr);
       
   132     gint AddRingToneObserver(TMSRingToneObserver& obsrvr, TMSRingTone& parent,
       
   133             gint clientid);
       
   134     gint RemoveRingToneObserver(TMSRingToneObserver& obsrvr);
       
   135     gint AddDTMFObserver(TMSDTMFObserver& obsrvr, TMSDTMF& parent,
       
   136             gint clientid);
       
   137     gint RemoveDTMFObserver(TMSDTMFObserver& obsrvr);
       
   138     gint AddInbandToneObserver(TMSInbandToneObserver& obsrvr,
       
   139             TMSInbandTone& parent, gint clientid);
       
   140     gint RemoveInbandToneObserver(TMSInbandToneObserver& obsrvr);
   108 
   141 
   109     gint CreateQueue(const gint aNumSlots);
   142     gint CreateQueue(const gint aNumSlots);
   110     void ReceiveMsgQHandlerEventsL();
   143     void ReceiveMsgQHandlerEventsL();
       
   144     void ResetObjectLists();
   111 
   145 
   112 private:
   146 private:
   113     TRoutingMsgBufPckg ipckg;
   147     TRoutingMsgBufPckg ipckg;
       
   148 
   114     RPointerArray<TMSEffectObserver> iEffectsObsrvrList;
   149     RPointerArray<TMSEffectObserver> iEffectsObsrvrList;
       
   150     RPointerArray<TMSGlobalRoutingObserver> iRoutingObsrvrList;
       
   151     RPointerArray<TMSRingToneObserver> iRingToneObsrvrList;
       
   152     RPointerArray<TMSDTMFObserver> iDTMFObsrvrList;
       
   153     RPointerArray<TMSInbandToneObserver> iInbandToneObsrvrList;
       
   154 
   115     RPointerArray<TMSEffect> iEffectsParentList;
   155     RPointerArray<TMSEffect> iEffectsParentList;
   116     RPointerArray<TMSGlobalRoutingObserver> iRoutingObsrvrList;
       
   117     RPointerArray<TMSGlobalRouting> iRoutingParentList;
   156     RPointerArray<TMSGlobalRouting> iRoutingParentList;
       
   157     RPointerArray<TMSRingTone> iRingToneParentList;
       
   158     RPointerArray<TMSDTMF> iDTMFParentList;
       
   159     RPointerArray<TMSInbandTone> iInbandToneParentList;
   118 
   160 
   119     // Message queue and the handler
   161     // Message queue and the handler
   120     RMsgQueue<TmsMsgBuf> iMsgQueue;
   162     RMsgQueue<TmsMsgBuf> iMsgQueue;
   121     CQueueHandler* iMsgQHandler;
   163     TMSQueueHandler* iMsgQHandler;
   122     };
   164     };
   123 
   165 
   124 } //namespace TMS
   166 } //namespace TMS
   125 
   167 
   126 #endif // TMS_PROXY_H
   168 #endif // TMS_PROXY_H