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 TBool CheckIPv4 (const TDesC &)
IMPORT_C TBool CheckIPv6 (const TDesC &)
IMPORT_C TBool CheckURI (const TDesC &)
IMPORT_C TUint GetAPIDL ()
IMPORT_C HBufC * ReadHBufCL (const TDesC &, const TDesC &, TInt )
IMPORT_C void SetAPDetailsL ( TUint )
Protected Member Functions
void FindAndOpenResourceFileLC ( 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 & aCharacteristic The logical proxy

CheckIPv4(const TDesC &)

IMPORT_C TBool CheckIPv4 ( const TDesC & aIP ) [static]

Checks if an IPv4 address is valid.

Parameters

const TDesC & aIP

CheckIPv6(const TDesC &)

IMPORT_C TBool CheckIPv6 ( const TDesC & aIP ) [static]

Checks if an IPv6 address is valid.

Parameters

const TDesC & aIP

CheckURI(const TDesC &)

IMPORT_C TBool CheckURI ( const TDesC & aUrl ) [static]

Checks if a URL is valid.

Parameters

const TDesC & aUrl

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

void FindAndOpenResourceFileLC ( 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 & aFs reference to file server.
const TDesC & aDllPath Path for the calling DLL from Dll::FileName
const TDesC & aAdapterName Name of the adapter. Resource file name is derived from this.
RResourceFile & aResFile Reference to resource file.

GetAPIDL()

IMPORT_C TUint GetAPIDL ( ) [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,
TInt aResourceId
) [static]

Loads a specified resource string from resource file.

Parameters

const TDesC & aDllPath Path for the calling DLL from Dll::FileName
const TDesC & aAdapterName Name of the adapter. Resource file name is derived from this.
TInt aResourceId is of a resource string.

SetAPDetailsL(TUint)

IMPORT_C void SetAPDetailsL ( TUint aAPId ) [static]

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

Parameters

TUint aAPId The AccessPoint ID