messagingappbase/obexmtms/TObexMTM/SRC/CreateServiceEntryState.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // $Workfile: CreateServiceEntryState.cpp $
       
    15 // $Author: Simonk $
       
    16 // $Revision: 1 $
       
    17 // $Date: 23/01/02 14:54 $
       
    18 // 
       
    19 //
       
    20 
       
    21 
       
    22 #include "CreateServiceEntryState.h"
       
    23 
       
    24 //TODO:- check that all these headers are required
       
    25 
       
    26 // System includes
       
    27 #include <btmsgtypeuid.h>   // KUidMsgTypeBt
       
    28 #include <btmtmcmds.h>      // TBtMtmAsyncCmds
       
    29 #include <irmsgtypeuid.h>   // KUidMsgTypeIr
       
    30 #include <irmtmcmds.h>      // TIrMtmAsyncCmds
       
    31 #include <msvuids.h>        // KUidMsvMessageEntry
       
    32 
       
    33 // User includes
       
    34 #include "obexharness.h"
       
    35 #include "obextestutils.h"
       
    36 
       
    37 
       
    38 //
       
    39 // CCreateServiceEntryState
       
    40 //
       
    41 CCreateServiceEntryState::CCreateServiceEntryState(CObexClientTest& aClientTest) :
       
    42  iClientTest(aClientTest)
       
    43     {
       
    44     }
       
    45 
       
    46 void CCreateServiceEntryState::StartL(TRequestStatus& aStatus)
       
    47     {
       
    48      //create service entry
       
    49     TUid mtm = iClientTest.ObexTestUtils().CurrentObexMtm();
       
    50     iClientTest.ObexTestUtils().GoClientSideL();    //sets the context to the root
       
    51     iClientTest.ObexTestUtils().CreateObexServiceL(mtm);   
       
    52     
       
    53     TRequestStatus* status = &aStatus;
       
    54 	User::RequestComplete(status, KErrNone);
       
    55     }
       
    56 
       
    57