Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <LbsRequestor.h>
Link against: lbs.lib
Link against: lbsselflocate.lib

Class CRequestor

class CRequestor : public CRequestorBase;

Description

CRequestor class for LBS clients

Derivation

Members

Defined in CRequestor:

Inherited from CBase:

Inherited from CRequestorBase:

See also:


Construction and destruction


NewL(TRequestorType,TRequestorFormat,const TDesC &)

IMPORT_C static CRequestor* NewL(TRequestorType aType, TRequestorFormat aFormat, const TDesC &aData);

Description

Allocates and constructs a CRequestor object. The function leaves if there is insufficient memory.

Parameters

CRequestorBase::TRequestorType aType

identifies the type of requestor, a service or a contact.

CRequestorBase::TRequestorFormat aFormat

determines the type of data held in aData

const TDesC16 &aData

is requestor data. Can be a telephone number, a URL etc.

Return value

CRequestor *

a newly created CRequestor object.


NewLC(TRequestorType,TRequestorFormat,const TDesC &)

IMPORT_C static CRequestor* NewLC(TRequestorType aType, TRequestorFormat aFormat, const TDesC &aData);

Description

Allocates and constructs a CRequestor object, and leaves the object on the cleanup stack.

The function leaves if there is insufficient memory.

Parameters

CRequestorBase::TRequestorType aType

identifies the type of requestor, a service or a contact.

CRequestorBase::TRequestorFormat aFormat

determines the type of data held in aData

const TDesC16 &aData

is requestor data. Can be a telephone number, a URL etc.

Return value

CRequestor *

a newly created CRequestor object.


NewL(RReadStream &)

IMPORT_C static CRequestor* NewL(RReadStream &aStream);

Description

Allocates and constructs a CRequestor object, and initialises its member variables by reading the internalizing the object from the specified stream.

The function leaves if there is insufficient memory.

Parameters

RReadStream &aStream

is a stream that a CRequestor object was previously externalised to.

Return value

CRequestor *

a newly created CRequestor object.

[Top]


Member functions


New(TRequestorType,TRequestorFormat,const TDesC &)

IMPORT_C static CRequestor* New(TRequestorType aType, TRequestorFormat aFormat, const TDesC &aData);

Description

Allocates and constructs a CRequestor object. The function returns NULL if there is insufficient memory. Slightly unusual construction is to ensure that iData can never be NULL even if someone inherits from this class.

Parameters

CRequestorBase::TRequestorType aType

identifies the type of requestor, a service or a contact.

CRequestorBase::TRequestorFormat aFormat

determines the type of data held in aData

const TDesC16 &aData

is requestor data. Can be a telephone number, a URL etc.

Return value

CRequestor *

a newly created CRequestor object, or NULL.