diff -r 000000000000 -r 72b543305e3a messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp Thu Dec 17 08:44:11 2009 +0200 @@ -0,0 +1,57 @@ +// Copyright (c) 2002-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: +// $Workfile: CreateServiceEntryState.cpp $ +// $Author: Simonk $ +// $Revision: 1 $ +// $Date: 23/01/02 14:54 $ +// +// + + +#include "CreateServiceEntryState.h" + +//TODO:- check that all these headers are required + +// System includes +#include // KUidMsgTypeBt +#include // TBtMtmAsyncCmds +#include // KUidMsgTypeIr +#include // TIrMtmAsyncCmds +#include // KUidMsvMessageEntry + +// User includes +#include "obexharness.h" +#include "obextestutils.h" + + +// +// CCreateServiceEntryState +// +CCreateServiceEntryState::CCreateServiceEntryState(CObexClientTest& aClientTest) : + iClientTest(aClientTest) + { + } + +void CCreateServiceEntryState::StartL(TRequestStatus& aStatus) + { + //create service entry + TUid mtm = iClientTest.ObexTestUtils().CurrentObexMtm(); + iClientTest.ObexTestUtils().GoClientSideL(); //sets the context to the root + iClientTest.ObexTestUtils().CreateObexServiceL(mtm); + + TRequestStatus* status = &aStatus; + User::RequestComplete(status, KErrNone); + } + +