diff -r 2981cb3aa489 -r 8b14b30db193 messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp Wed Nov 03 22:55:44 2010 +0530 @@ -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); + } + +