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 voidClearData()

Clear the saved data

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CreateDatabaseL()

voidCreateDatabaseL()[private]

Create the database

DeleteData(const TDesC &)

IMPORT_C voidDeleteData(const TDesC &aUrl)

DeleteData Deletes a row from the database

Parameters

const TDesC & aUrl

DeleteOldRowsL(RDbNamedDatabase &)

voidDeleteOldRowsL(RDbNamedDatabase &aDataBase)[private]

Delete old rows

Parameters

RDbNamedDatabase & aDataBase

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

IMPORT_C TIntGetData(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 &)

voidGetDataL(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(TCharaChar,
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 voidSaveDataL(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]