mmserv/tms/tmscallserver/inc/tmscalladpt.h
branchRCL_3
changeset 19 095bea5f582e
parent 17 60e492b28869
child 20 0ac9a5310753
equal deleted inserted replaced
18:a36789189b53 19:095bea5f582e
    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
    34     virtual gint CreateStream(const TMSCallType callType,
    42     virtual gint CreateStream(const TMSCallType callType,
    35             const TMSStreamType strmType, gint& outStrmId) = 0;
    43             const TMSStreamType strmType, gint& outStrmId) = 0;
    36     virtual gint InitStream(const TMSCallType callType,
    44     virtual gint InitStream(const TMSCallType callType,
    37             const TMSStreamType strmType, const gint strmId,
    45             const TMSStreamType strmType, const gint strmId,
    38             const TMSFormatType frmtType, const RMessage2& aMessage) = 0;
    46             const TMSFormatType frmtType, const gint retrytime,
       
    47             const RMessage2& aMessage) = 0;
    39     virtual gint StartStream(const TMSCallType callType,
    48     virtual gint StartStream(const TMSCallType callType,
    40             const TMSStreamType strmType, const gint strmId) = 0;
    49             const TMSStreamType strmType, const gint strmId,
       
    50             const gint retrytime) = 0;
    41     virtual gint PauseStream(const TMSCallType callType,
    51     virtual gint PauseStream(const TMSCallType callType,
    42             const TMSStreamType strmType, const gint strmId) = 0;
    52             const TMSStreamType strmType, const gint strmId) = 0;
    43     virtual gint StopStream(const TMSCallType callType,
    53     virtual gint StopStream(const TMSCallType callType,
    44             const TMSStreamType strmType, const gint strmId) = 0;
    54             const TMSStreamType strmType, const gint strmId) = 0;
    45     virtual gint DeinitStream(const TMSCallType callType,
    55     virtual gint DeinitStream(const TMSCallType callType,
    89     virtual gint SetOutput(const TMSAudioOutput output) = 0;
    99     virtual gint SetOutput(const TMSAudioOutput output) = 0;
    90     virtual gint GetOutput(TMSAudioOutput& output) = 0;
   100     virtual gint GetOutput(TMSAudioOutput& output) = 0;
    91     virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0;
   101     virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0;
    92     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0;
   102     virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0;
    93 
   103 
       
   104     void GetCallType(TMSCallType& callType);
       
   105     gboolean IsUplActivated();
       
   106 
    94 protected:
   107 protected:
    95     TMSCallAdpt();
   108     TMSCallAdpt();
    96     virtual gint PostConstruct() = 0;
   109     virtual gint PostConstruct() = 0;
    97 
   110 
    98 protected:
   111 protected:
    99     gint iGlobalVol;
   112     gint iGlobalVol;
   100     gint iGlobalGain;
   113     gint iGlobalGain;
       
   114     TMSStreamState iUplState;
       
   115     TMSStreamState iDnlState;
       
   116     gint iCallType;
   101     };
   117     };
   102 
   118 
   103 } //namespace TMS
   119 } //namespace TMS
   104 
   120 
   105 #endif // CALLADPT_H
   121 #endif // CALLADPT_H
   106 
   122 
   107 // End of file