|
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: obexsetpasswordstate.cpp $ |
|
15 // $Author: Stevep $ |
|
16 // $Revision: 2 $ |
|
17 // $Date: 26/03/02 9:46 $ |
|
18 // |
|
19 // |
|
20 |
|
21 #include "obexsetpasswordstate.h" |
|
22 |
|
23 #include "obexharness.h" |
|
24 #include "obextestutils.h" // CObexTestUtils |
|
25 |
|
26 CObexSetPasswordState::CObexSetPasswordState(CObexClientTest& aClientTest) : |
|
27 iClientTest(aClientTest) |
|
28 { |
|
29 } |
|
30 |
|
31 CObexSetPasswordState* CObexSetPasswordState::NewL(CObexClientTest& aClientTest, const TDesC& aPassword) |
|
32 { |
|
33 CObexSetPasswordState* self = new (ELeave) CObexSetPasswordState(aClientTest); |
|
34 CleanupStack::PushL(self); |
|
35 self->ConstructL(aPassword); |
|
36 CleanupStack::Pop(self); |
|
37 return self; |
|
38 } |
|
39 |
|
40 void CObexSetPasswordState::ConstructL(const TDesC& aPassword) |
|
41 { |
|
42 iPassword = aPassword.AllocL(); |
|
43 } |
|
44 |
|
45 CObexSetPasswordState::~CObexSetPasswordState() |
|
46 { |
|
47 delete iPassword; |
|
48 } |
|
49 |
|
50 void CObexSetPasswordState::StartL(TRequestStatus& aStatus) |
|
51 { |
|
52 iClientTest.ObexTestUtils().SetCurrentObexMtmPasswordL(*iPassword); |
|
53 |
|
54 TRequestStatus* status = &aStatus; |
|
55 User::RequestComplete(status, KErrNone); |
|
56 } |