telephonyserverplugins/simatktsy/src/csattsyfactory.cpp
changeset 0 3553901f7fa8
child 19 630d2f34d719
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "csattsyfactory.h"
       
    17 #include "csattsy.h"
       
    18 
       
    19 //EXPORT_C
       
    20 
       
    21  CSatTsyFactory* CSatTsyFactory::NewL()
       
    22 	{
       
    23 	CSatTsyFactory* self = new (ELeave) CSatTsyFactory;
       
    24 	return self;	
       
    25 	}
       
    26 
       
    27  EXPORT_C CSatTsyFactory* CSatTsyFactory::NewLC()
       
    28 	{
       
    29 	CSatTsyFactory* self = new (ELeave) CSatTsyFactory;
       
    30 	CleanupStack::PushL(self);
       
    31 	return self;	
       
    32 	}
       
    33 
       
    34 CSatTsyFactory::CSatTsyFactory()
       
    35 	{
       
    36 	}
       
    37 	
       
    38 CSatTsyFactory::~CSatTsyFactory()
       
    39 	{
       
    40 
       
    41 	}
       
    42 
       
    43 CSatTsyFactory::TSatTsyPtrContainer CSatTsyFactory::CreateSatTsyL(MMessageRouter& aMmMessageRouter, MCtsySatService& aSatService)
       
    44 	{
       
    45 	//create STK CTSY - non owned as reference counted and will be destroyed after last client closed
       
    46 	TSatTsyPtrContainer ptrcontainer;
       
    47 	CSatTsy* sattsy = CSatTsy::NewL( aMmMessageRouter, aSatService);
       
    48 	ptrcontainer.iSatTsy = sattsy;	
       
    49 	ptrcontainer.iSatTsyMessageManagerCallback = sattsy->GetMessageManagerCallback();	
       
    50 	return ptrcontainer;
       
    51 	}
       
    52