equal
deleted
inserted
replaced
|
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: ObexFileDebugReceiveState.cpp $ |
|
15 // $Author: Simonk $ |
|
16 // $Revision: 1 $ |
|
17 // $Date: 24/01/02 16:29 $ |
|
18 // |
|
19 // |
|
20 |
|
21 #include "ObexFileDebugReceiveState.h" //CObexFileDebugReceiveState |
|
22 |
|
23 // User includes |
|
24 #include "obexharness.h" |
|
25 #include "obextestutils.h" // CObexTestUtils |
|
26 |
|
27 CObexFileDebugReceiveState::CObexFileDebugReceiveState(const TDesC& aSource, const TDesC& aDestination, CObexClientTest& aClientTest) : |
|
28 iClientTest(aClientTest), |
|
29 iSource(aSource), |
|
30 iDestination(aDestination) |
|
31 { |
|
32 } |
|
33 |
|
34 void CObexFileDebugReceiveState::StartL(TRequestStatus& aStatus) |
|
35 { |
|
36 CFileMan* fileMan = CFileMan::NewL(iClientTest.ObexTestUtils().iMsvSession->FileSession()); |
|
37 CleanupStack::PushL(fileMan); // PUSH |
|
38 User::LeaveIfError(fileMan->Copy(iSource, iDestination)); |
|
39 CleanupStack::PopAndDestroy(); // fileMan // POP(1) |
|
40 |
|
41 TRequestStatus* status = &aStatus; |
|
42 User::RequestComplete(status, KErrNone); |
|
43 } |