diff -r 000000000000 -r b26acd06ea60 sdkcreationmw/sdkruntimes/AsyStub/src/AsyStubMainServiceBase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sdkcreationmw/sdkruntimes/AsyStub/src/AsyStubMainServiceBase.cpp Mon Mar 08 12:09:11 2010 +0530 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 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 "ASYStubMainServiceBase.h" + +#include "AsyStubObserver.h" + + +#ifndef EKA2 +GLDEF_C TInt E32Dll( TDllReason ) + { + return KErrNone; + } +#endif + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::CASYStubMainServiceBase() +// ---------------------------------------------------------------------------------- +// +CASYStubMainServiceBase::CASYStubMainServiceBase() + { + + } + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::NewL() +// ---------------------------------------------------------------------------------- +CASYStubMainServiceBase* CASYStubMainServiceBase::NewL() + { + return new ( ELeave ) CASYStubMainServiceBase(); + } + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::~CASYStubMainServiceBase() +// ---------------------------------------------------------------------------------- +CASYStubMainServiceBase::~CASYStubMainServiceBase() + { + } + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::StartL() +// ---------------------------------------------------------------------------------- +TInt CASYStubMainServiceBase::StartL() + { + iService = new ( ELeave ) CASYStubService(); + CleanupStack::PushL( iService ); + iService->ConstructL(); + CleanupStack::Pop(); + CASYStubObserver* subscribeObserver = CASYStubObserver::NewL(*iService); + subscribeObserver->IssueRequest(); + this->Signal(); + return KErrNone; + } + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL() +// ---------------------------------------------------------------------------------- +void CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL() + { + } + + +// +// ---------------------------------------------------------------------------------- +// CASYStubMainServiceBase::GetAndRemoveCapability() +// ---------------------------------------------------------------------------------- +TTFCapability CASYStubMainServiceBase::GetAndRemoveCapability() + { + return iService->GetAndRemoveCapability(); + } + + + + +