WPAdapterUtil Class Reference

class WPAdapterUtil

WPAdapterUtil is a utility class for reading resource strings.

ProvisioningEngine
Since
2.0
Public Member Functions
IMPORT_C CWPCharacteristic *AccesspointL(CWPCharacteristic &)
IMPORT_C TBoolCheckIPv4(const TDesC &)
IMPORT_C TBoolCheckIPv6(const TDesC &)
IMPORT_C TBoolCheckURI(const TDesC &)
IMPORT_C TUintGetAPIDL()
IMPORT_C HBufC *ReadHBufCL(const TDesC &, const TDesC &, TInt)
IMPORT_C voidSetAPDetailsL(TUint)
Protected Member Functions
voidFindAndOpenResourceFileLC(RFs &, const TDesC &, const TDesC &, RResourceFile &)

Member Functions Documentation

AccesspointL(CWPCharacteristic &)

IMPORT_C CWPCharacteristic *AccesspointL(CWPCharacteristic &aCharacteristic)[static]

Get a pointer to the access point pointed by a logical proxy.

Parameters

CWPCharacteristic & aCharacteristicThe logical proxy

CheckIPv4(const TDesC &)

IMPORT_C TBoolCheckIPv4(const TDesC &aIP)[static]

Checks if an IPv4 address is valid.

Parameters

const TDesC & aIP

CheckIPv6(const TDesC &)

IMPORT_C TBoolCheckIPv6(const TDesC &aIP)[static]

Checks if an IPv6 address is valid.

Parameters

const TDesC & aIP

CheckURI(const TDesC &)

IMPORT_C TBoolCheckURI(const TDesC &aUrl)[static]

Checks if a URL is valid.

Parameters

const TDesC & aUrl

FindAndOpenResourceFileLC(RFs &, const TDesC &, const TDesC &, RResourceFile &)

voidFindAndOpenResourceFileLC(RFs &aFs,
const TDesC &aDllPath,
const TDesC &aAdapterName,
RResourceFile &aResFile
)[protected, static]

Searches for the resource file with the correct language extension for the language of the current locale, or failing this, the best matching file.

Parameters

RFs & aFsreference to file server.
const TDesC & aDllPathPath for the calling DLL from Dll::FileName
const TDesC & aAdapterNameName of the adapter. Resource file name is derived from this.
RResourceFile & aResFileReference to resource file.

GetAPIDL()

IMPORT_C TUintGetAPIDL()[static]

Gets the accesspoint ID from DB file or from SNAP

ReadHBufCL(const TDesC &, const TDesC &, TInt)

IMPORT_C HBufC *ReadHBufCL(const TDesC &aDllPath,
const TDesC &aAdapterName,
TIntaResourceId
)[static]

Loads a specified resource string from resource file.

Parameters

const TDesC & aDllPathPath for the calling DLL from Dll::FileName
const TDesC & aAdapterNameName of the adapter. Resource file name is derived from this.
TInt aResourceIdis of a resource string.

SetAPDetailsL(TUint)

IMPORT_C voidSetAPDetailsL(TUintaAPId)[static]

Saves accesspoint attributes of APID, BearerType and Originator to DataBase and saves the Access Point in SNAP folder

Parameters

TUint aAPIdThe AccessPoint ID