mmserv/tms/tmscallserver/inc/tmscalladpt.h
changeset 42 1fa3fb47b1e3
parent 31 8dfd592727cb
child 53 eabc8c503852
equal deleted inserted replaced
32:94fc26b6e006 42:1fa3fb47b1e3
    24 namespace TMS {
    24 namespace TMS {
    25 
    25 
    26 // TMSCallAdpt class
    26 // TMSCallAdpt class
    27 class TMSCallAdpt
    27 class TMSCallAdpt
    28     {
    28     {
       
    29 protected:
       
    30     enum TMSStreamState
       
    31         {
       
    32         EIdle = 0,
       
    33         EInitialized,
       
    34         EActivated
       
    35         };
       
    36 
    29 public:
    37 public:
    30     static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt);
    38     static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt);
    31     virtual ~TMSCallAdpt();
    39     virtual ~TMSCallAdpt();
    32 
    40 
    33     // From TMSStream
    41     // From TMSStream
    91     virtual gint SetOutput(const TMSAudioOutput output) = 0;
    99     virtual gint SetOutput(const TMSAudioOutput output) = 0;
    92     virtual gint GetOutput(TMSAudioOutput& output) = 0;
   100     virtual gint GetOutput(TMSAudioOutput& output) = 0;
    93     virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0;
   101     virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0;
    94     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0;
   102     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0;
    95 
   103 
    96     // From TMSDTMF
   104     void GetCallType(TMSCallType& callType);
    97     virtual gint StartDTMF(const TMSStreamType streamtype, TDes& dtmfstr) = 0;
   105     gboolean IsUplActivated();
    98     virtual gint StopDTMF(const TMSStreamType streamtype) = 0;
       
    99     virtual gint ContinueDTMF(const gboolean sending) = 0;
       
   100 
   106 
   101 protected:
   107 protected:
   102     TMSCallAdpt();
   108     TMSCallAdpt();
   103     virtual gint PostConstruct() = 0;
   109     virtual gint PostConstruct() = 0;
   104 
   110 
   105 protected:
   111 protected:
   106     gint iGlobalVol;
   112     gint iGlobalVol;
   107     gint iGlobalGain;
   113     gint iGlobalGain;
       
   114     TMSStreamState iUplState;
       
   115     TMSStreamState iDnlState;
       
   116     gint iCallType;
   108     };
   117     };
   109 
   118 
   110 } //namespace TMS
   119 } //namespace TMS
   111 
   120 
   112 #endif // CALLADPT_H
   121 #endif // CALLADPT_H
   113 
   122 
   114 // End of file