qtms/src/qtmsfactory.cpp
changeset 62 b276843a15ba
parent 50 762d760dcfdf
equal deleted inserted replaced
58:c76ea6caa649 62:b276843a15ba
    21 #include "qtmswrapperexport.h"
    21 #include "qtmswrapperexport.h"
    22 #include "qtmsfactoryimpl.h"
    22 #include "qtmsfactoryimpl.h"
    23 
    23 
    24 using namespace QTMS;
    24 using namespace QTMS;
    25 
    25 
    26 QTMSFactory::QTMSFactory()
    26 QTMSFactory::QTMSFactory(QTMSVer& ver)
    27 {
    27 {
    28     impl = new QTMSFactoryImpl();
    28     impl = new QTMSFactoryImpl(ver);
    29 }
    29 }
    30 
    30 
    31 QTMSFactory::~QTMSFactory()
    31 QTMSFactory::~QTMSFactory()
    32 {
    32 {
    33     delete impl;
    33     delete impl;
    34 }
    34 }
    35 
    35 
    36 gint QTMSFactory::CreateFactory(QTMSFactory*& tmsfactory, QTMSVer& /*ver*/)
    36 gint QTMSFactory::CreateFactory(QTMSFactory*& tmsfactory, QTMSVer& ver)
    37 {
    37 {
    38     QTMSFactory* self = new QTMSFactory();
    38     QTMSFactory* self = new QTMSFactory(ver);
    39     tmsfactory = self;
    39     tmsfactory = self;
    40     return QTMS_RESULT_SUCCESS;
    40     return QTMS_RESULT_SUCCESS;
    41 }
    41 }
    42 
    42 
    43 gint QTMSFactory::CreateCall(QTMSCallType ctype, QTMSCall*& tmscall, guint ctxid)
    43 gint QTMSFactory::CreateCall(QTMSCallType ctype, QTMSCall*& tmscall, guint ctxid)