CRecentUrlStore Class Reference

class CRecentUrlStore : public CBase

CRecentUrlStore

Library: ?library

Since
?Series60_version

Inherits from

Constructor & Destructor Documentation

CRecentUrlStore()

CRecentUrlStore ( ) [private]

Default constructor

~CRecentUrlStore()

~CRecentUrlStore ( )

Destructor

Member Functions Documentation

ClearData()

IMPORT_C void ClearData ( )

Clear the saved data

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CreateDatabaseL()

void CreateDatabaseL ( ) [private]

Create the database

DeleteData(const TDesC &)

IMPORT_C void DeleteData ( const TDesC & aUrl )

DeleteData Deletes a row from the database

Parameters

const TDesC & aUrl

DeleteOldRowsL(RDbNamedDatabase &)

void DeleteOldRowsL ( RDbNamedDatabase & aDataBase ) [private]

Delete old rows

Parameters

RDbNamedDatabase & aDataBase

GetData(CDesCArray &, CDesCArray &, const TDesC &)

IMPORT_C TInt GetData ( CDesCArray & aUrls,
CDesCArray & aTitles,
const TDesC & aUrl =  KNullDesC
)

Returns url list.

Parameters

CDesCArray & aUrls
CDesCArray & aTitles
const TDesC & aUrl =  KNullDesC

GetDataL(RDbNamedDatabase &, CDesCArray &, CDesCArray &, const TDesC &)

void GetDataL ( RDbNamedDatabase & aDataBase,
CDesCArray & aUrls,
CDesCArray & aTitles,
const TDesC & aUrl
) [private]

Returns url list.

Parameters

RDbNamedDatabase & aDataBase
CDesCArray & aUrls
CDesCArray & aTitles
const TDesC & aUrl

InsertEscapeSequence(TChar, TUint16 *, const TDesC &)

TInt InsertEscapeSequence ( TChar aChar,
TUint16 * aDestPtr,
const TDesC & aString
) [private]

Insert the Escape Sequence

Parameters

TChar aChar
TUint16 * aDestPtr
const TDesC & aString

NewL()

IMPORT_C CRecentUrlStore * NewL ( ) [static]

Two-phased constructor.

OpenDatabase(RDbNamedDatabase &)

TInt OpenDatabase ( RDbNamedDatabase & aDataBase ) [private]

Open the database

Parameters

RDbNamedDatabase & aDataBase

SaveDataL(const TDesC &, const TDesC &)

IMPORT_C void SaveDataL ( const TDesC & aUrl,
const TDesC & aTitle
)

Save the url and title in store.

Parameters

const TDesC & aUrl
const TDesC & aTitle

Member Data Documentation

RFs iDbSession

RFs iDbSession [private]

TBool iFirstTimeOpened

TBool iFirstTimeOpened [private]

HBufC * iRecentUrlDBFile

HBufC * iRecentUrlDBFile [private]

TBuf< KMaxSQLLength > iSQLStatement

TBuf < KMaxSQLLength > iSQLStatement [private]