|
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: obexgetpasswordstate.h $ |
|
15 // $Author: Stevep $ |
|
16 // $Revision: 3 $ |
|
17 // $Date: 27/03/02 14:18 $ |
|
18 // |
|
19 // |
|
20 |
|
21 #ifndef __OBEXGETPASSWORDSTATE_H__ |
|
22 #define __OBEXGETPASSWORDSTATE_H__ |
|
23 |
|
24 #include "harness.h" //MBaseTestState |
|
25 |
|
26 // forward declarations |
|
27 class CObexClientTest; |
|
28 |
|
29 class CObexGetPasswordState : public CBase, public MBaseTestState |
|
30 /** |
|
31 Test state to get the current OBEX authentication password (stored in the service entry's message store) and write |
|
32 it to the logfile. If no password has been set the state will report this without error, but a service entry |
|
33 for the current mtm MUST exist if this state is to be successful. |
|
34 */ |
|
35 { |
|
36 public: |
|
37 /** |
|
38 C++ constructor. |
|
39 |
|
40 @param aClientTest the parent CObexClientTest |
|
41 */ |
|
42 CObexGetPasswordState(CObexClientTest& aClientTest); |
|
43 |
|
44 /** |
|
45 Called by the parent to invoke the state. As this function is synchronous, the aStatus member is completed as |
|
46 the function returns. Will leave with KErrNotFound if the service entry does not exist. |
|
47 |
|
48 @param aStatus status to be completed when the function returns. |
|
49 @leave KErrXXX system wide error codes. |
|
50 @leave KErrNotFound if the service entry does not exist |
|
51 */ |
|
52 void StartL(TRequestStatus& aStatus); |
|
53 |
|
54 private: |
|
55 CObexClientTest& iClientTest; //<Reference to the parent CObexClientTest object |
|
56 }; |
|
57 |
|
58 #endif//__OBEXGETPASSWORDSTATE_H__ |