mmserv/tms/tmsfactory/src/tmsfactory.cpp
changeset 55 e267340986c9
parent 22 128eb6a32b84
equal deleted inserted replaced
52:4ce423f34688 55:e267340986c9
    18 #include <tmsfactory.h>
    18 #include <tmsfactory.h>
    19 #include "tmsfactoryimpl.h"
    19 #include "tmsfactoryimpl.h"
    20 
    20 
    21 using namespace TMS;
    21 using namespace TMS;
    22 
    22 
    23 TMSFactory::TMSFactory()
    23 TMSFactory::TMSFactory(TMSVer& ver)
    24     {
    24     {
    25     impl = new TMSFactoryImpl();
    25     impl = new TMSFactoryImpl(ver);
    26     }
    26     }
    27 
    27 
    28 EXPORT_C TMSFactory::~TMSFactory()
    28 EXPORT_C TMSFactory::~TMSFactory()
    29     {
    29     {
    30     delete impl;
    30     delete impl;
    31     }
    31     }
    32 
    32 
    33 EXPORT_C gint TMSFactory::CreateFactory(TMSFactory*& tmsfactory,
    33 EXPORT_C gint TMSFactory::CreateFactory(TMSFactory*& tmsfactory,
    34         TMSVer& /*ver*/)
    34         TMSVer& ver)
    35     {
    35     {
    36     TMSFactory* self = new TMSFactory();
    36     TMSFactory* self = new TMSFactory(ver);
    37     tmsfactory = self;
    37     tmsfactory = self;
    38     return TMS_RESULT_SUCCESS;
    38     return TMS_RESULT_SUCCESS;
    39     }
    39     }
    40 
    40 
    41 EXPORT_C gint TMSFactory::CreateCall(TMSCallType ctype, TMSCall*& tmscall,
    41 EXPORT_C gint TMSFactory::CreateCall(TMSCallType ctype, TMSCall*& tmscall,