mmserv/tms/inc/tmsproxy.h
branchRCL_3
changeset 20 0ac9a5310753
parent 19 095bea5f582e
equal deleted inserted replaced
19:095bea5f582e 20:0ac9a5310753
    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;
       
    41 
    35 
    42 // TMSProxy class
    36 // TMSProxy class
    43 class TMSProxy : public RSessionBase,
    37 class TMSProxy : public RSessionBase,
    44                  public MQueueHandlerObserver
    38                  public MQueueHandlerObserver
    45     {
    39     {
    81     IMPORT_C gint SetLevel(guint level);
    75     IMPORT_C gint SetLevel(guint level);
    82     IMPORT_C gint GetGain(guint& level);
    76     IMPORT_C gint GetGain(guint& level);
    83     IMPORT_C gint GetMaxGain(guint& level);
    77     IMPORT_C gint GetMaxGain(guint& level);
    84     IMPORT_C gint SetGain(guint level);
    78     IMPORT_C gint SetGain(guint level);
    85 
    79 
    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 InitDTMFPlayer(TMSStreamType streamtype);
       
    97     IMPORT_C gint StartDTMF(TMSStreamType streamtype, GString* tone);
       
    98     IMPORT_C gint StopDTMF(TMSStreamType streamtype);
       
    99     IMPORT_C gint ContinueDTMFStringSending(TBool continuesending);
       
   100 
       
   101     // TMSInbandTone
       
   102     IMPORT_C gint StartInbandTone(TMSInbandToneType inbandtonetype);
       
   103     IMPORT_C gint StopInbandTone();
       
   104 
       
   105     // Global notifiers
    80     // Global notifiers
       
    81     IMPORT_C gint StartDTMFNotifier();
       
    82     IMPORT_C gint CancelDTMFNotifier();
   106     IMPORT_C gint StartGlobalEffectNotifier();
    83     IMPORT_C gint StartGlobalEffectNotifier();
   107     IMPORT_C gint CancelGlobalEffectNotifier();
    84     IMPORT_C gint CancelGlobalEffectNotifier();
   108     IMPORT_C gint StartRoutingNotifier();
    85     IMPORT_C gint StartRoutingNotifier();
   109     IMPORT_C gint CancelRoutingNotifier();
    86     IMPORT_C gint CancelRoutingNotifier();
   110 
    87 
   128             TMSEffect& parent, gint clientid);
   105             TMSEffect& parent, gint clientid);
   129     gint RemoveGlobalEffectObserver(TMSEffectObserver& obsrvr);
   106     gint RemoveGlobalEffectObserver(TMSEffectObserver& obsrvr);
   130     gint AddRoutingObserver(TMSGlobalRoutingObserver& obsrvr,
   107     gint AddRoutingObserver(TMSGlobalRoutingObserver& obsrvr,
   131             TMSGlobalRouting& parent, gint clientid);
   108             TMSGlobalRouting& parent, gint clientid);
   132     gint RemoveRoutingObserver(TMSGlobalRoutingObserver& obsrvr);
   109     gint RemoveRoutingObserver(TMSGlobalRoutingObserver& obsrvr);
   133     gint AddRingToneObserver(TMSRingToneObserver& obsrvr, TMSRingTone& parent,
       
   134             gint clientid);
       
   135     gint RemoveRingToneObserver(TMSRingToneObserver& obsrvr);
       
   136     gint AddDTMFObserver(TMSDTMFObserver& obsrvr, TMSDTMF& parent,
       
   137             gint clientid);
       
   138     gint RemoveDTMFObserver(TMSDTMFObserver& obsrvr);
       
   139     gint AddInbandToneObserver(TMSInbandToneObserver& obsrvr,
       
   140             TMSInbandTone& parent, gint clientid);
       
   141     gint RemoveInbandToneObserver(TMSInbandToneObserver& obsrvr);
       
   142 
   110 
   143     gint CreateQueue(const gint aNumSlots);
   111     gint CreateQueue(const gint aNumSlots);
   144     void ReceiveMsgQHandlerEventsL();
   112     void ReceiveMsgQHandlerEventsL();
   145     void ResetObjectLists();
   113     void ResetObjectLists();
   146 
   114 
   147 private:
   115 private:
   148     TRoutingMsgBufPckg ipckg;
   116     TRoutingMsgBufPckg ipckg;
   149 
   117 
   150     RPointerArray<TMSEffectObserver> iEffectsObsrvrList;
   118     RPointerArray<TMSEffectObserver> iEffectsObsrvrList;
   151     RPointerArray<TMSGlobalRoutingObserver> iRoutingObsrvrList;
   119     RPointerArray<TMSGlobalRoutingObserver> iRoutingObsrvrList;
   152     RPointerArray<TMSRingToneObserver> iRingToneObsrvrList;
       
   153     RPointerArray<TMSDTMFObserver> iDTMFObsrvrList;
       
   154     RPointerArray<TMSInbandToneObserver> iInbandToneObsrvrList;
       
   155 
       
   156     RPointerArray<TMSEffect> iEffectsParentList;
   120     RPointerArray<TMSEffect> iEffectsParentList;
   157     RPointerArray<TMSGlobalRouting> iRoutingParentList;
   121     RPointerArray<TMSGlobalRouting> iRoutingParentList;
   158     RPointerArray<TMSRingTone> iRingToneParentList;
       
   159     RPointerArray<TMSDTMF> iDTMFParentList;
       
   160     RPointerArray<TMSInbandTone> iInbandToneParentList;
       
   161 
   122 
   162     // Message queue and the handler
   123     // Message queue and the handler
   163     RMsgQueue<TmsMsgBuf> iMsgQueue;
   124     RMsgQueue<TmsMsgBuf> iMsgQueue;
   164     TMSQueueHandler* iMsgQHandler;
   125     TMSQueueHandler* iMsgQHandler;
   165     };
   126     };