CPosRequestor Class Reference

class CPosRequestor : public CBase

The base class for a requester in the Privacy Data Types. A requester is either a contact or a service and it is identified by a string. The string may be a phone number, URL, email address, etc.

CPosContactRequestor CPosServiceRequestor None

Inherits from

Public Member Functions
~CPosRequestor()
IMPORT_C TNetworkTypeNetworkType()
IMPORT_C TRequestTypeRequestType()
IMPORT_C TRequestorIdFormatRequestorIdFormat()
IMPORT_C TPtrCRequestorIdString()
IMPORT_C TRequestorTypeRequestorType()
IMPORT_C voidSetNetworkType(const TNetworkType)
IMPORT_C voidSetRequestType(const TRequestType)
IMPORT_C voidSetRequestorIdL(TRequestorIdFormat, const TDesC &)
Protected Member Functions
CPosRequestor(TRequestorType, TRequestorIdFormat, HBufC *, TNetworkType, TRequestType)
Private Member Functions
CPosRequestor(const CPosRequestor &)
CPosRequestor &operator=(const CPosRequestor &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTRequestorIdFormat {
EIdFormatUnknown, EIdFormatGenericName, EIdFormatPhoneNumber, EIdFormatUrl, EIdFormatEmail, EIdFormatSIPUrl, EIdFormatIMSPublicIdentity, EIdFormatMIN, EIdFormatMDN
}
enumTRequestorType { ERequestorService, ERequestorContact }
enum_TNetworkType { ENetworkTypeUnknown = 0, ENetworkGSM = 1, ENetworkSUPL = 2, ENetworkWCDMA = 3 }
enum_TRequestType { ERequestTypeUnknown = 0, ERequestSingleShot = 1, ERequestPeriodic = 2, ERequestAreaEvent = 3 }
Public Member Type Definitions
typedef TUint32 TNetworkType
typedef TUint32 TRequestType
Private Attributes
TRequestorIdFormat iIdFormat
HBufC *iIdString
TNetworkType iNetworkType
TRequestType iRequestType
TRequestorType iRequestorType

Constructor & Destructor Documentation

CPosRequestor(TRequestorType, TRequestorIdFormat, HBufC *, TNetworkType, TRequestType)

CPosRequestor(TRequestorTypeaRequestorType,
TRequestorIdFormataIdFormat,
HBufC *aIdString,
TNetworkTypeaNetworkType,
TRequestTypeaRequestType
)[protected]

Default constructor

Parameters

TRequestorType aRequestorType
TRequestorIdFormat aIdFormat
HBufC * aIdString
TNetworkType aNetworkType
TRequestType aRequestType

CPosRequestor(const CPosRequestor &)

CPosRequestor(const CPosRequestor &)[private]

Parameters

const CPosRequestor &

~CPosRequestor()

IMPORT_C~CPosRequestor()[virtual]

Default destructor

Member Functions Documentation

NetworkType()

IMPORT_C TNetworkTypeNetworkType()const

Gets the network type (GSM, SUPL or WCDMA).

RequestType()

IMPORT_C TRequestTypeRequestType()const

Gets the request type (single shot, periodic or area event). This value is not currently used. @ return The type of the request

RequestorIdFormat()

IMPORT_C TRequestorIdFormatRequestorIdFormat()const

Gets the format of the requester ID string, such as a phone number, email address, URL etc.

RequestorIdString()

IMPORT_C TPtrCRequestorIdString()const

Gets the requester ID string which identifies the contact or service making the privacy request.

RequestorType()

IMPORT_C TRequestorTypeRequestorType()const

Gets the requester type: a contact or a service.

If the requester is a contact, it can be cast to CPosContactRequestor. If the requester is a service, it can be cast to CPosServiceRequestor. CPosContactRequestor CPosServiceRequestor

SetNetworkType(const TNetworkType)

IMPORT_C voidSetNetworkType(const TNetworkTypeaNetworkType)

Sets the network type (GSM, SUPL or WCDMA).

Parameters

const TNetworkType aNetworkTypeThe network type.

SetRequestType(const TRequestType)

IMPORT_C voidSetRequestType(const TRequestTypeaRequestType)

Sets the request type (single shot, periodic or area event). This value is not currently used.

Parameters

const TRequestType aRequestTypeThe type of the request

SetRequestorIdL(TRequestorIdFormat, const TDesC &)

IMPORT_C voidSetRequestorIdL(TRequestorIdFormataIdFormat,
const TDesC &aIdString
)

Sets the requester id. The requester id is a string that identifies the person or service making the privacy request.

Parameters

TRequestorIdFormat aIdFormatThe format of the requester id string, such as a phone number, URL, email address, etc.
const TDesC & aIdStringA string that identifies the requester.

operator=(const CPosRequestor &)

CPosRequestor &operator=(const CPosRequestor &)[private]

Parameters

const CPosRequestor &

Member Enumerations Documentation

Enum TRequestorIdFormat

This enum specifies how a requestor is identified.

Enumerators

EIdFormatUnknown

The requestor ID format is unknown.

EIdFormatGenericName

The requestor is identified by name.

EIdFormatPhoneNumber

The requestor is identified by phone number.

EIdFormatUrl

The requestor is identified by URL.

EIdFormatEmail

The requestor is identified by email address.

EIdFormatSIPUrl

The requestor is identified by the URL of the SIP session.

EIdFormatIMSPublicIdentity

The requestor is identified by the IMS public identity.

EIdFormatMIN

The requestor is identified by Mobile Indentification Number.

EIdFormatMDN

The requestor is identified by Mobile Directory Number.

Enum TRequestorType

This enum specifies whether the requestor is a contact or a service.

Enumerators

ERequestorService

The requestor is a service.

ERequestorContact

The requestor is a contact.

Enum _TNetworkType

Network type Note that the TNetworkType enum may be extended in the future by adding more enumerated values. To maintain compatibility any unrecognized values must be handled as ENetworkTypeUnknown.

Enumerators

ENetworkTypeUnknown = 0

Unknown network. Should be used to initialize variables

ENetworkGSM = 1

A request received over GSM

ENetworkSUPL = 2

A request received over SUPL

ENetworkWCDMA = 3

A request received over WCDMA

Enum _TRequestType

Type of request Note that the TRequestType enum may be extended in the future by adding more enumerated values. To maintain compatibility any unrecognized values must be handled as ERequestTypeUnknown.

Enumerators

ERequestTypeUnknown = 0

Unknown. Should be used to initialize variables

ERequestSingleShot = 1

The privacy request is related to a single location request

ERequestPeriodic = 2

The privacy request is related to a periodic location request

ERequestAreaEvent = 3

The privacy request is related to an area event location request

Member Type Definitions Documentation

Typedef TNetworkType

typedef TUint32 TNetworkType

Defined type for TNetworkType

Typedef TRequestType

typedef TUint32 TRequestType

Defined type for TRequestType

Member Data Documentation

TRequestorIdFormat iIdFormat

TRequestorIdFormat iIdFormat[private]

HBufC * iIdString

HBufC *iIdString[private]

TNetworkType iNetworkType

TNetworkType iNetworkType[private]

TRequestType iRequestType

TRequestType iRequestType[private]

TRequestorType iRequestorType

TRequestorType iRequestorType[private]