qtms/inc/qtmsfactoryimpl.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: QT Bindings for TMS
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef QTMSFACTORYIMPL_H_
       
    19 #define QTMSFACTORYIMPL_H_
       
    20 
       
    21 #include <e32cmn.h>
       
    22 #include <qtms.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 namespace TMS
       
    26 {
       
    27 class TMSFactory;
       
    28 }
       
    29 
       
    30 namespace QTMS
       
    31 {
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class QTMSCall;
       
    35 class QTMSFormat;
       
    36 class QTMSEffect;
       
    37 class QTMSBuffer;
       
    38 class QTMSSource;
       
    39 class QTMSSink;
       
    40 class QTMSGlobalRouting;
       
    41 class QTMSRTPSession;
       
    42 class QTMSDTMF;
       
    43 class QTMSRingTone;
       
    44 class QTMSInbandTone;
       
    45 
       
    46 // CLASS DECLARATION
       
    47 class QTMSFactoryImpl
       
    48 {
       
    49 public:
       
    50     QTMSFactoryImpl();
       
    51     virtual ~QTMSFactoryImpl();
       
    52 
       
    53     gint CreateCall(QTMSCallType ctype, QTMSCall*& QTMScall, guint ctxid);
       
    54     gint DeleteCall(QTMSCall*& QTMSct);
       
    55     gint IsCallTypeSupported(QTMSCallType ctype, gboolean& flag);
       
    56     gint GetSupportedFormats(const QTMSStreamType strmtype, FormatVector& fmtlist);
       
    57     gint CreateFormat(QTMSFormatType fmttype, QTMSFormat*& QTMSfmt);
       
    58     gint DeleteFormat(QTMSFormat*& QTMSfmt);
       
    59     gint CreateEffect(QTMSEffectType QTMSeffecttype, QTMSEffect*& QTMSeffect);
       
    60     gint DeleteEffect(QTMSEffect*& QTMSeffect);
       
    61     gint CreateBuffer(QTMSBufferType buffertype, guint size, QTMSBuffer*& QTMSbuffer);
       
    62     gint DeleteBuffer(QTMSBuffer*& QTMSbuffer);
       
    63     gint CreateSource(QTMSSourceType srctype, QTMSSource*& QTMSsrc);
       
    64     gint DeleteSource(QTMSSource*& QTMSsrc);
       
    65     gint CreateSink(QTMSSinkType sinktype, QTMSSink*& QTMSsink);
       
    66     gint DeleteSink(QTMSSink*& QTMSsink);
       
    67     gint CreateGlobalRouting(QTMSGlobalRouting*& globrouting);
       
    68     gint DeleteGlobalRouting(QTMSGlobalRouting*& globrouting);
       
    69     gint CreateDTMF(QTMSStreamType streamid, QTMSDTMF*& dtmf);
       
    70     gint DeleteDTMF(QTMSDTMF*& dtmf);
       
    71     gint CreateRingTonePlayer(QTMSRingTone*& rt);
       
    72     gint DeleteRingTonePlayer(QTMSRingTone*& rt);
       
    73     gint CreateInbandTonePlayer(QTMSInbandTone*& inbandtone);
       
    74     gint DeleteInbandTonePlayer(QTMSInbandTone*& inbandtone);
       
    75 
       
    76 private:
       
    77     TMS::TMSFactory *iFactory;
       
    78 };
       
    79 
       
    80 } //namespace QTMS
       
    81 
       
    82 #endif