#include <lbsrequestor.h>
class CRequestorBase : public CBase |
Public Member Type Definitions | |
---|---|
typedef | TInt TRequestorFormat |
typedef | TInt TRequestorType |
Protected Attributes | |
---|---|
TRequestorFormat | iFormat |
TRequestorType | iRequestorType |
Public Member Enumerations | |
---|---|
enum | _TRequestorFormat { EFormatUnknown, EFormatApplication, EFormatTelephone, EFormatUrl, EFormatMail } |
enum | _TRequestorType { ERequestorUnknown, ERequestorService, ERequestorContact } |
Public Member Functions | |
---|---|
~CRequestorBase() | |
virtual IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | GetRequestor(TRequestorType &, TRequestorFormat &, TPtrC &) |
virtual IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TDesC & | RequestorData() |
IMPORT_C TRequestorFormat | RequestorFormat() |
IMPORT_C TRequestorType | RequestorType() |
IMPORT_C void | SetRequestorL(TRequestorType, TRequestorFormat, const TDesC &) |
Protected Member Functions | |
---|---|
CRequestorBase() | |
IMPORT_C void | ConstructL(TRequestorType, TRequestorFormat, const TDesC &) |
virtual IMPORT_C TAny * | ExtendedInterface(TInt, TAny *, TAny *) |
for example, a telephone number, URL or email address.
TRequestorFormat
Enumerator | Value | Description |
---|---|---|
EFormatUnknown |
Requestor format unknown | |
EFormatApplication |
EFormatApplication | |
EFormatTelephone |
EFormatTelephone | |
EFormatUrl |
EFormatUrl | |
EFormatMail |
EFormatMail |
TRequestorType
Enumerator | Value | Description |
---|---|---|
ERequestorUnknown |
Unknown Requestor | |
ERequestorService |
Requestor of type Service | |
ERequestorContact |
Requestor of type Contact |
IMPORT_C void | ConstructL | ( | TRequestorType | aType, |
TRequestorFormat | aFormat, | |||
const TDesC & | aData | |||
) | [protected] |
Second phase constructor. Must be called by all derived classes to initialise CRequestorBase.
Parameters | |
---|---|
aType | identifies the type of requestor, a service or a contact. |
aFormat | determines the type of data held in aData |
aData | is requestor data. Can be a telephone number, a URL etc. |
IMPORT_C TAny * | ExtendedInterface | ( | TInt | aFunctionNumber, |
TAny * | aPtr1, | |||
TAny * | aPtr2 | |||
) | [protected, virtual] |
This method is used to allow polymorphic extensions to the API without breaking BC. See documentation for explanation.
Parameters | |
---|---|
aFunctionNumber | contains the Id of the function to be invoked. |
aPtr1 | a pointer to any data |
aPtr2 | a pointer to any data. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Stores this requestors member data to a stream.
Parameters | |
---|---|
aStream | the stream to which the requestors data is written. |
IMPORT_C void | GetRequestor | ( | TRequestorType & | aType, |
TRequestorFormat & | aFormat, | |||
TPtrC & | aData | |||
) | const |
Simple accessor for this requestors member data.
Parameters | |
---|---|
aType | will be set to the type of requestor. |
aFormat | will be set to the type of data held in aData. |
aData | will be set to point to this requestors data. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Restores this requestors member data from a stream.
Parameters | |
---|---|
aStream | the stream from which the requestors data is read. |
IMPORT_C TDesC & | RequestorData | ( | ) | const |
Simple accessor for this requestors member data.
IMPORT_C TRequestorFormat | RequestorFormat | ( | ) | const |
Simple accessor for this requestors member data.
IMPORT_C TRequestorType | RequestorType | ( | ) | const |
Simple accessor for this requestors member data.
IMPORT_C void | SetRequestorL | ( | TRequestorType | aType, |
TRequestorFormat | aFormat, | |||
const TDesC & | aData | |||
) |
Replaces the requestor data for this object with the specified data.
Parameters | |
---|---|
aType | identifies the type of requestor, a service or a contact. |
aFormat | determines the type of data held in aData |
aData | is requestor data. Can be a telephone number, a URL etc. |