|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef __DIRECTPRINTBEARERDATA_H__ |
|
21 #define __DIRECTPRINTBEARERDATA_H__ |
|
22 |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 #include <in_sock.h> |
|
26 |
|
27 // User includes |
|
28 #include "DirectPrintDef.h" |
|
29 |
|
30 // Forward declarations |
|
31 class RReadStream; |
|
32 class RWriteStream; |
|
33 |
|
34 // Class declaration |
|
35 /** |
|
36 * Bearer data class |
|
37 * more_complete_description |
|
38 */ |
|
39 class TDirectPrintBearerData |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Internalize operation. |
|
44 * |
|
45 * @param aStream ReadStream. |
|
46 */ |
|
47 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
48 |
|
49 /** |
|
50 * Externalize operation. |
|
51 * |
|
52 * @param aStream WriteStream. |
|
53 */ |
|
54 IMPORT_C void ExternalizeL(RWriteStream& aStream)const; |
|
55 |
|
56 /** |
|
57 * Substitution operator. |
|
58 * |
|
59 * @param aData Bearer data. |
|
60 * @return Bearer data. |
|
61 */ |
|
62 IMPORT_C TDirectPrintBearerData& operator=(const TDirectPrintBearerData& aData); |
|
63 |
|
64 public: |
|
65 /** The ID of printer data. */ |
|
66 TInt iPrinterId; |
|
67 /** The ID of bearer data. */ |
|
68 TInt iBearerId; |
|
69 /** Name of bearer. */ |
|
70 TBuf<KDirectPrintNameLength> iBearerName; |
|
71 /** AccessPoint. */ |
|
72 TBuf<KDirectPrintNameLength> iAccessPoint; |
|
73 /** HostName. */ |
|
74 TBuf<KDirectPrintNameLength> iHostName; |
|
75 /** IPAddress of host. */ |
|
76 TInetAddr iHostIp; |
|
77 /** Number of port. */ |
|
78 TInt iPort; |
|
79 /** UserName. */ |
|
80 TBuf<KDirectPrintNameLength> iUserName; |
|
81 /** Name of que. */ |
|
82 TBuf<KDirectPrintNameLength> iQueName; |
|
83 }; |
|
84 |
|
85 typedef RArray<TDirectPrintBearerData> RDPBearerDataArray; |
|
86 |
|
87 #endif // __DIRECTPRINTBEARERDATA_H__ |