sysstatemgmt/systemstarter/src/initapparcserver2.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:29:05 +0300
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201033 Kit: 201035

// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#include "initapparcserver2.h"
#include "startuputilprovider.h"


//
// Standard Symbian factory functions/destructor
//

CInitAppArcServer* CInitAppArcServer::NewL(CStartupUtilProvider& aProvider)
	{
	CInitAppArcServer* self = NewLC(aProvider);
	CleanupStack::Pop(self);
	return self;
	}

CInitAppArcServer* CInitAppArcServer::NewLC(CStartupUtilProvider& aProvider)
	{
	CInitAppArcServer* self = new (ELeave) CInitAppArcServer(aProvider);	
	CleanupStack::PushL(self);
	return self;
	}

CInitAppArcServer::CInitAppArcServer(CStartupUtilProvider& aProvider)
:iProvider(aProvider) 
	{
	}

//
// Public member functions
//


/** Implementation of MStartupCommand interface.

@see MStartupCommand.
*/
void CInitAppArcServer::Execute(TRequestStatus& aStatus)
	{
	iProvider.StartSafe().InitAppArcServer(aStatus);
	}

void CInitAppArcServer::Release() 
	{
	delete this;
	}