|
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: SendAsStates.h $ |
|
15 // $Author: Simonk $ |
|
16 // $Revision: 1 $ |
|
17 // $Date: 28/01/02 17:02 $ |
|
18 // |
|
19 // |
|
20 |
|
21 #ifndef __OBEXSETOBEXRECIPIENTSTATES_H__ |
|
22 #define __OBEXSETOBEXRECIPIENTSTATES_H__ |
|
23 |
|
24 #include "harness.h" //MBaseTestState |
|
25 |
|
26 //forward declarations |
|
27 |
|
28 class CObexClientTest; |
|
29 |
|
30 class CSetObexMessageRecipientState : public CBase, public MBaseTestState |
|
31 /* |
|
32 * A state class, to be added to a harness, that encapsulates the addition of a recipient |
|
33 * to a message through the message server |
|
34 */ |
|
35 { |
|
36 public: |
|
37 CSetObexMessageRecipientState(const TDesC& aRecipient, CObexClientTest& aClientTest); |
|
38 void StartL(TRequestStatus& aStatus); |
|
39 private: |
|
40 CObexClientTest& iClientTest; |
|
41 TBuf<256> iRecipient; //TODO:-Change this attribute to a HBufC or find out what the max size of this attrib is |
|
42 }; |
|
43 |
|
44 class CSetObexMessageBTRecipientState : public CBase, public MBaseTestState |
|
45 /* |
|
46 * A state class, to be added to a harness, that encapsulates the addition of a recipient |
|
47 * to a message through the message server |
|
48 */ |
|
49 { |
|
50 public: |
|
51 CSetObexMessageBTRecipientState(const TDesC& aRecipient, CObexClientTest& aClientTest); |
|
52 void StartL(TRequestStatus& aStatus); |
|
53 private: |
|
54 CObexClientTest& iClientTest; |
|
55 TBuf<3> iRecipient; // A Bluetooth address is 6 bytes, 3 unicode chars. |
|
56 }; |
|
57 |
|
58 |
|
59 #endif //__OBEXSENDASSTATES_H__ |