qtms/inc/qtmsfactoryimpl.h
changeset 51 e61a04404bdf
parent 32 edd273b3192a
child 62 b276843a15ba
equal deleted inserted replaced
44:d141fc1ad77b 51:e61a04404bdf
    20 
    20 
    21 #include <e32cmn.h>
    21 #include <e32cmn.h>
    22 #include <qtms.h>
    22 #include <qtms.h>
    23 
    23 
    24 // FORWARD DECLARATIONS
    24 // FORWARD DECLARATIONS
    25 namespace TMS {
    25 namespace TMS
       
    26 {
    26 class TMSFactory;
    27 class TMSFactory;
    27 }
    28 }
    28 
    29 
    29 namespace QTMS {
    30 namespace QTMS
       
    31 {
    30 
    32 
    31 // FORWARD DECLARATIONS
    33 // FORWARD DECLARATIONS
    32 class QTMSCall;
    34 class QTMSCall;
    33 class QTMSFormat;
    35 class QTMSFormat;
    34 class QTMSEffect;
    36 class QTMSEffect;
    41 class QTMSRingTone;
    43 class QTMSRingTone;
    42 class QTMSInbandTone;
    44 class QTMSInbandTone;
    43 
    45 
    44 // CLASS DECLARATION
    46 // CLASS DECLARATION
    45 class QTMSFactoryImpl
    47 class QTMSFactoryImpl
    46     {
    48 {
    47 public:
    49 public:
    48     QTMSFactoryImpl();
    50     QTMSFactoryImpl();
    49     virtual ~QTMSFactoryImpl();
    51     virtual ~QTMSFactoryImpl();
    50 
    52 
    51     gint CreateCall(QTMSCallType ctype, QTMSCall*& QTMScall, guint ctxid);
    53     gint CreateCall(QTMSCallType ctype, QTMSCall*& QTMScall, guint ctxid);
    52     gint DeleteCall(QTMSCall*& QTMSct);
    54     gint DeleteCall(QTMSCall*& QTMSct);
    53     gint IsCallTypeSupported(QTMSCallType ctype, gboolean& flag);
    55     gint IsCallTypeSupported(QTMSCallType ctype, gboolean& flag);
    54     gint GetSupportedFormats(const QTMSStreamType strmtype,
    56     gint GetSupportedFormats(const QTMSStreamType strmtype, FormatVector& fmtlist);
    55             FormatVector& fmtlist);
       
    56     gint CreateFormat(QTMSFormatType fmttype, QTMSFormat*& QTMSfmt);
    57     gint CreateFormat(QTMSFormatType fmttype, QTMSFormat*& QTMSfmt);
    57     gint DeleteFormat(QTMSFormat*& QTMSfmt);
    58     gint DeleteFormat(QTMSFormat*& QTMSfmt);
    58     gint CreateEffect(QTMSEffectType QTMSeffecttype,
    59     gint CreateEffect(QTMSEffectType QTMSeffecttype, QTMSEffect*& QTMSeffect);
    59             QTMSEffect*& QTMSeffect);
       
    60     gint DeleteEffect(QTMSEffect*& QTMSeffect);
    60     gint DeleteEffect(QTMSEffect*& QTMSeffect);
    61     gint CreateBuffer(QTMSBufferType buffertype, guint size,
    61     gint CreateBuffer(QTMSBufferType buffertype, guint size, QTMSBuffer*& QTMSbuffer);
    62             QTMSBuffer*& QTMSbuffer);
       
    63     gint DeleteBuffer(QTMSBuffer*& QTMSbuffer);
    62     gint DeleteBuffer(QTMSBuffer*& QTMSbuffer);
    64     gint CreateSource(QTMSSourceType srctype, QTMSSource*& QTMSsrc);
    63     gint CreateSource(QTMSSourceType srctype, QTMSSource*& QTMSsrc);
    65     gint DeleteSource(QTMSSource*& QTMSsrc);
    64     gint DeleteSource(QTMSSource*& QTMSsrc);
    66     gint CreateSink(QTMSSinkType sinktype, QTMSSink*& QTMSsink);
    65     gint CreateSink(QTMSSinkType sinktype, QTMSSink*& QTMSsink);
    67     gint DeleteSink(QTMSSink*& QTMSsink);
    66     gint DeleteSink(QTMSSink*& QTMSsink);
    74     gint CreateInbandTonePlayer(QTMSInbandTone*& inbandtone);
    73     gint CreateInbandTonePlayer(QTMSInbandTone*& inbandtone);
    75     gint DeleteInbandTonePlayer(QTMSInbandTone*& inbandtone);
    74     gint DeleteInbandTonePlayer(QTMSInbandTone*& inbandtone);
    76 
    75 
    77 private:
    76 private:
    78     TMS::TMSFactory *iFactory;
    77     TMS::TMSFactory *iFactory;
    79     };
    78 };
    80 
    79 
    81 } //namespace QTMS
    80 } //namespace QTMS
    82 
    81 
    83 #endif
    82 #endif