class TIASResponse : public TBuf8< KMaxQueryStringLength > |
Response from an Information Access Service (IAS) query to another device's IAS server. TIASQuery
Public Member Functions | |
---|---|
TIASResponse() | |
IMPORT_C TInt | GetCharString(TDes8 &, TInt) |
IMPORT_C TInt | GetCharString(TDes16 &, TInt) |
IMPORT_C const TPtrC16 | GetCharString16(TInt) |
IMPORT_C const TPtrC8 | GetCharString8(TInt) |
IMPORT_C TInt | GetInteger(TInt &, TInt) |
IMPORT_C TInt | GetOctetSeq(TDes8 &, TInt) |
IMPORT_C TBool | IsList() |
IMPORT_C TInt | NumItems() |
void | SetToCharString(const TDesC8 &) |
void | SetToCharString(const TDesC16 &) |
void | SetToInteger(TUint) |
void | SetToOctetSeq(const TDesC8 &) |
IMPORT_C TIASDataType | Type() |
Private Attributes | |
---|---|
TUint32 | iPadding1 |
TUint32 | iPadding2 |
Inherited Attributes | |
---|---|
TBuf8< KMaxQueryStringLength >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
IMPORT_C TInt | GetCharString | ( | TDes16 & | aResult, |
TInt | anIndex = 0 | |||
) | const |
Gets the response string.
This is called if the response type indicates a string.
If successful, one of the TIASCharSet enumerator values defining the character set encoding of the response string. KErrNotSupported, if a non-zero value has been specified for anIndex. KErrCorrupt, if the response type is not a string.
TDes16 & aResult | On return, an 8 bit modifiable descriptor containing the response string. The length of the response string can never be greater than the value of (KMaxQueryStringLength - 3). |
TInt anIndex = 0 | Reserved for future use. This argument must be allowed to default to 0 and must not be overriden. |
IMPORT_C const TPtrC16 | GetCharString16 | ( | TInt | anIndex = 0 | ) | const |
TInt anIndex = 0 |
IMPORT_C const TPtrC8 | GetCharString8 | ( | TInt | anIndex = 0 | ) | const |
TInt anIndex = 0 |
void | SetToCharString | ( | const TDesC8 & | aCharString | ) |
const TDesC8 & aCharString |
void | SetToCharString | ( | const TDesC16 & | aWideString | ) |
const TDesC16 & aWideString |
IMPORT_C TIASDataType | Type | ( | ) | const |
Returns the type of the response.
An enumeration identifying the type of response.