equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 // |
|
15 |
|
16 #ifndef SRPSCOMMAND_H |
|
17 #define SRPSCOMMAND_H |
|
18 |
|
19 #include "ABSTRACT.H" |
|
20 #include <e32base.h> |
|
21 |
|
22 class Global; |
|
23 |
|
24 /* |
|
25 * Name: SRPSCommand |
|
26 * |
|
27 * Description: Data Confirmed command |
|
28 * |
|
29 */ |
|
30 |
|
31 NONSHARABLE_CLASS(SRPSCommand) : public AbstractCommand |
|
32 { |
|
33 private: |
|
34 SRPSCommand(); |
|
35 // Buffer to hold this packet |
|
36 TBuf8<255> m_oData; |
|
37 // Primary Machine ID |
|
38 TBufC8<8> m_PMID; |
|
39 // Secondary Machine ID |
|
40 TBufC8<8> m_SMID; |
|
41 // Type of the PDU |
|
42 TUint8 m_PduType; |
|
43 // Pointer to the userdata we get |
|
44 TPtrC8 m_userDataPtr; |
|
45 // Id of the command |
|
46 TUint16 m_CmdId; |
|
47 // Source Process ID |
|
48 TUint16 m_SPID; |
|
49 // Destination Process ID |
|
50 TUint16 m_DPID; |
|
51 |
|
52 public: |
|
53 SRPSCommand(CComReadWrite* aComReadWrite); |
|
54 ~SRPSCommand(); |
|
55 void DoIt(); |
|
56 void GetReply(); |
|
57 TDesC8& GetData(); |
|
58 |
|
59 void SetPMID(TPtr8); |
|
60 void SetSMID(TPtr8); |
|
61 void SetPDUType(TUint8); |
|
62 void SetCmdId(TUint16 a_CmdId); |
|
63 void SetDPID(TUint16 a_DPID); |
|
64 void SetSPID(TUint16 a_SPID); |
|
65 void SetUserData(TDes8& a_userDataPtr); |
|
66 |
|
67 void Create(); |
|
68 }; |
|
69 |
|
70 #endif // SRPSCOMMAND_H |