mmappfw_plat/qt_telephony_multimedia_service_api/inc/qtmsfactory.h
changeset 51 e61a04404bdf
parent 27 cbb1bfb7ebfb
child 62 b276843a15ba
equal deleted inserted replaced
44:d141fc1ad77b 51:e61a04404bdf
    21 #include <qtms.h>
    21 #include <qtms.h>
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QtCore/qglobal.h>
    23 #include <QtCore/qglobal.h>
    24 #include "qtmswrapperexport.h"
    24 #include "qtmswrapperexport.h"
    25 
    25 
    26 namespace QTMS {
    26 namespace QTMS
       
    27 {
    27 
    28 
    28 // FORWARD DECLARATIONS
    29 // FORWARD DECLARATIONS
    29 class QTMSCall;
    30 class QTMSCall;
    30 class QTMSFormat;
    31 class QTMSFormat;
    31 class QTMSEffect;
    32 class QTMSEffect;
    59  *
    60  *
    60  * @lib QTMSapi.lib
    61  * @lib QTMSapi.lib
    61  *
    62  *
    62  */
    63  */
    63 class QTMS_WRAPPER_DLL_EXPORT QTMSFactory : public QObject
    64 class QTMS_WRAPPER_DLL_EXPORT QTMSFactory : public QObject
    64     {
    65 {
    65     Q_OBJECT
    66     Q_OBJECT
    66 public:
    67 public:
    67     /**
    68     /**
    68      * Returns pointer reference to created QTMS Factory object. The specified
    69      * Returns pointer reference to created QTMS Factory object. The specified
    69      * API version will allow using different QTMS API variants.
    70      * API version will allow using different QTMS API variants.
   117      *      QTMS_RESULT_INVALID_ARGUMENT if the context id is not valid.
   118      *      QTMS_RESULT_INVALID_ARGUMENT if the context id is not valid.
   118      *      QTMS_RESULT_FATAL_ERROR if there is any other error.
   119      *      QTMS_RESULT_FATAL_ERROR if there is any other error.
   119      *
   120      *
   120      */
   121      */
   121     gint CreateCall(QTMSCallType ctype, QTMSCall*& QTMScall,
   122     gint CreateCall(QTMSCallType ctype, QTMSCall*& QTMScall,
   122             guint ctxid = DEFAULT_CALL_CONTEXT);
   123         guint ctxid = DEFAULT_CALL_CONTEXT);
   123 
   124 
   124     /**
   125     /**
   125      * Deletes QTMS Call.
   126      * Deletes QTMS Call.
   126      *
   127      *
   127      * @param  QTMSct
   128      * @param  QTMSct
   163      *      QTMS_RESULT_SUCCESS if operation was successful.
   164      *      QTMS_RESULT_SUCCESS if operation was successful.
   164      *      QTMS_RESULT_FATAL_ERROR if operation failed.
   165      *      QTMS_RESULT_FATAL_ERROR if operation failed.
   165      *
   166      *
   166      */
   167      */
   167     gint GetSupportedFormats(const QTMSStreamType strmtype,
   168     gint GetSupportedFormats(const QTMSStreamType strmtype,
   168             FormatVector& fmtlist);
   169         FormatVector& fmtlist);
   169 
   170 
   170     /**
   171     /**
   171      * Creates Format object of the given format type.
   172      * Creates Format object of the given format type.
   172      *
   173      *
   173      * @param  fmttype
   174      * @param  fmttype
   215      *      QTMS_RESULT_EFFECT_TYPE_NOT_SUPPORTED if the effect type is not
   216      *      QTMS_RESULT_EFFECT_TYPE_NOT_SUPPORTED if the effect type is not
   216      *      supported.
   217      *      supported.
   217      *
   218      *
   218      */
   219      */
   219     gint CreateEffect(QTMSEffectType QTMSeffecttype,
   220     gint CreateEffect(QTMSEffectType QTMSeffecttype,
   220             QTMSEffect*& qtmseffect);
   221         QTMSEffect*& qtmseffect);
   221 
   222 
   222     /**
   223     /**
   223      * Deletes Effect object.
   224      * Deletes Effect object.
   224      *
   225      *
   225      * @param  QTMSeffect
   226      * @param  QTMSeffect
   251      *      QTMS_RESULT_BUFFER_TYPE_NOT_SUPPORTED if the buffer type is not
   252      *      QTMS_RESULT_BUFFER_TYPE_NOT_SUPPORTED if the buffer type is not
   252      *      supported.
   253      *      supported.
   253      *
   254      *
   254      */
   255      */
   255     gint CreateBuffer(QTMSBufferType buffertype, guint size,
   256     gint CreateBuffer(QTMSBufferType buffertype, guint size,
   256             QTMSBuffer*& qtmsbuffer);
   257         QTMSBuffer*& qtmsbuffer);
   257 
   258 
   258     /**
   259     /**
   259      * Deletes the Buffer object.
   260      * Deletes the Buffer object.
   260      *
   261      *
   261      * @param  QTMSbuffer
   262      * @param  QTMSbuffer
   449      */
   450      */
   450     QTMSFactory();
   451     QTMSFactory();
   451 
   452 
   452 private:
   453 private:
   453     QTMSFactoryImpl* impl;
   454     QTMSFactoryImpl* impl;
   454     };
   455 };
   455 
   456 
   456 } //namespace QTMS
   457 } //namespace QTMS
   457 
   458 
   458 #endif //QTMS_FACTORY_H
   459 #endif //QTMS_FACTORY_H