messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:36:19 +0300
branchRCL_3
changeset 22 1367103c24e2
parent 0 72b543305e3a
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

// 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 <btmsgtypeuid.h>   // KUidMsgTypeBt
#include <btmtmcmds.h>      // TBtMtmAsyncCmds
#include <irmsgtypeuid.h>   // KUidMsgTypeIr
#include <irmtmcmds.h>      // TIrMtmAsyncCmds
#include <msvuids.h>        // 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);
    }