|
1 // Copyright (c) 1999-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 /** |
|
17 @file |
|
18 @internalAll |
|
19 */ |
|
20 |
|
21 #include <ir_sock.h> |
|
22 |
|
23 EXPORT_C TIASDatabaseEntryV001::TIASDatabaseEntryV001() |
|
24 :iData() |
|
25 /** Default constructor. Sets the type of the response data to missing. */ |
|
26 { |
|
27 } |
|
28 |
|
29 EXPORT_C void TIASDatabaseEntry::SetClassName(const TDesC8& aClassName) |
|
30 /** Sets the class name in the IAS entry. |
|
31 |
|
32 @param aClassName The class name. The maximum length of this descriptor is |
|
33 the value of the constant KIASClassNameMax. */ |
|
34 { |
|
35 operator()().iClassName=aClassName; |
|
36 } |
|
37 |
|
38 EXPORT_C void TIASDatabaseEntry::SetAttributeName(const TDesC8& anAttributeName) |
|
39 /** Sets the attribute in the IAS entry. |
|
40 |
|
41 @param anAttributeName The attribute. The maximum length of this descriptor |
|
42 is the value of the constant KIASAttributeNameMax. */ |
|
43 { |
|
44 operator()().iAttributeName=anAttributeName; |
|
45 } |
|
46 |
|
47 EXPORT_C void TIASDatabaseEntry::SetToInteger(const TUint anInteger) |
|
48 /** Sets the response type corresponding to the class and attribute defined in |
|
49 this record, as an integer. |
|
50 |
|
51 @param anInteger The response integer. */ |
|
52 { |
|
53 operator()().iData.SetToInteger(anInteger); |
|
54 } |
|
55 |
|
56 EXPORT_C void TIASDatabaseEntry::SetToCharString(const TDesC8& aCharString) |
|
57 /** Sets the response type corresponding to the class and attribute defined in |
|
58 this record, as a character string. |
|
59 |
|
60 @param aCharString The response string. The length of this string can never |
|
61 be greater than (KMaxQueryStringLength - 3). */ |
|
62 { |
|
63 operator()().iData.SetToCharString(aCharString); |
|
64 } |
|
65 |
|
66 EXPORT_C void TIASDatabaseEntry::SetToOctetSeq(const TDesC8& aLumpOfBinaryData) |
|
67 /** Sets the response type corresponding to the class and attribute defined in |
|
68 this record, as an Octet sequence. |
|
69 |
|
70 @param aLumpOfBinaryData The response sequence. */ |
|
71 { |
|
72 operator()().iData.SetToOctetSeq(aLumpOfBinaryData); |
|
73 } |
|
74 |
|
75 #ifdef _UNICODE |
|
76 EXPORT_C void TIASDatabaseEntry::SetToCharString(const TDesC16& aWideString) |
|
77 /** Sets the response type corresponding to the class and attribute defined in |
|
78 this record, as a wide character string. |
|
79 |
|
80 @param aWideString The response string. */ |
|
81 { |
|
82 operator()().iData.SetToCharString(aWideString); |
|
83 } |
|
84 #endif |
|
85 |
|
86 // EOF |