CFavouritesItemImpl Class Reference
class CFavouritesItemImpl : public CBase
|
Constructor & Destructor Documentation
CFavouritesItemImpl()
CFavouritesItemImpl
|
(
|
)
|
[protected, inline]
|
~CFavouritesItemImpl()
~CFavouritesItemImpl
|
(
|
)
|
[virtual]
|
Member Functions Documentation
BufFromStreamL(HBufC *&, RReadStream &)
BufToStreamL(const TDesC &, RWriteStream &)
ConstructL()
void
|
ConstructL
|
(
|
)
|
[protected]
|
Second-phase constructor.
ContextId()
TInt32
|
ContextId
|
(
|
)
|
const [inline]
|
Get context id associated with this item.
ExternalizeL(RWriteStream &)
ExternalizeUpdateDeltaL(RWriteStream &)
void
|
ExternalizeUpdateDeltaL
|
(
|
RWriteStream
&
|
aStream
|
)
|
const
|
Externalize
update-delta into a stream. This is a performance oprtimization to reduce data transfer between client and server. When database is updated (using an item), only the changed data is synced back to the item (name, uid, last-mod-time).
InternalizeL(RReadStream &)
InternalizeUpdateDeltaL(RReadStream &)
Internalize
update-delta from a stream. This is a performance oprtimization to reduce data transfer between client and server. When database is updated (using an item), only the changed data is synced back to the item (name, uid, last-mod-time).
IsFactoryItem()
TBool
|
IsFactoryItem
|
(
|
)
|
const [inline]
|
Check if this is a factory item.
IsFolder()
TBool
|
IsFolder
|
(
|
)
|
const [inline]
|
Check if this is a folder.
IsHidden()
TBool
|
IsHidden
|
(
|
)
|
const [inline]
|
IsItem()
TBool
|
IsItem
|
(
|
)
|
const [inline]
|
Check if this is an item (not folder).
IsReadOnly()
TBool
|
IsReadOnly
|
(
|
)
|
const [inline]
|
Check if this is a read-only in database. Note that ETrue value does not prevent modifying this
CFavouritesItemImpl
object.
IsValid()
TBool
|
IsValid
|
(
|
)
|
const [private]
|
Validate the item.
-
For all kinds: valid name required.
-
For items: URL must be present.
-
For folders: URL, Username, Password must be empty; WAP Access Point must not be specified.
IsValidName(const TDesC &)
TBool
|
IsValidName
|
(
|
const
TDesC
&
|
aName
|
)
|
[private, static]
|
Check if aName is a valid bookmark name.
MakeName(const TDesC &, TDes &)
TInt
|
MakeName
|
(
|
const
TDesC
&
|
aSource,
|
|
TDes
&
|
aTarget
|
|
)
|
[private, static]
|
Create a bookmark name from a string. Leading / trailing whitespace is removed. Note that the resulting name may be zero length (if aSource is made up from whitespace only). In this case the return value is KErrNone, though the name is not valid.
Parameters
const
TDesC
& aSource
|
The string to create name from.
|
TDes
& aTarget
|
Resulting name is placed here. Previous content is overwritten. Must be large enough to hold the result; the result's length equals to or less than aSource length (i.e. aSource.Length() is enough for aTarget).
|
Modified()
TTime
|
Modified
|
(
|
)
|
const [inline]
|
Get last modification time (of database entry), universal time. This can be zero if:
-
Last modification time is not available in database (old databases); or
-
Engine does not support this feature. Note that zero means
Modified()
.
Int64()
== 0, and not
Time::NullTTime()
.
Name()
const
TDesC
&
|
Name
|
(
|
)
|
const [inline]
|
Get the name of this item.
NewL()
Two-phased constructor. Leaves on failure.
NewLC()
Two-phased constructor. Leaves on failure.
ParentFolder()
TInt
|
ParentFolder
|
(
|
)
|
const [inline]
|
Get the uid of the parent folder of this item.
Password()
const
TDesC
&
|
Password
|
(
|
)
|
const [inline]
|
Get password associated with this item.
SetBufL(HBufC *&, const TDesC &, TInt)
void
|
SetBufL
|
(
|
HBufC
*&
|
aBuf,
|
|
const
TDesC
&
|
aDesc,
|
|
TInt
|
aMaxLength
|
|
)
|
[private]
|
Set buffer from string. Leaves for exceeding aMaxLength.
Parameters
HBufC
*& aBuf
|
Buffer.
|
const
TDesC
& aDesc
|
Descriptor to set from.
|
TInt
aMaxLength
|
Max length.
|
SetContextId(TInt32)
void
|
SetContextId
|
(
|
TInt32
|
aContextId
|
)
|
[inline]
|
Set context id of the item.
Parameters
TInt32
aContextId
|
The context id to be set.
|
SetFactoryItem(TBool)
void
|
SetFactoryItem
|
(
|
TBool
|
aFactoryItem
|
)
|
[private, inline]
|
Set factory item flag of the item.
Parameters
TBool
aFactoryItem
|
The factory item flag to be set.
|
SetHidden(TBool)
void
|
SetHidden
|
(
|
TBool
|
aHidden
|
)
|
[inline]
|
Set hidden value of the item.
Parameters
TBool
aHidden
|
The hidden value to be set.
|
SetModified(TTime)
void
|
SetModified
|
(
|
TTime
|
aModified
|
)
|
[private, inline]
|
Set last modification time of the item.
SetNameL(const TDesC &)
void
|
SetNameL
|
(
|
const
TDesC
&
|
aName
|
)
|
|
Set name of the item. Leading or trailing whitespace is trimmed. Length limit is KFavouritesMaxName (leaves with KErrOverflow).
Parameters
const
TDesC
& aName
|
The name to be set.
|
SetParentFolder(TInt)
void
|
SetParentFolder
|
(
|
TInt
|
aId
|
)
|
[inline]
|
Parameters
TInt
aId
|
The unique id of the parent folder.
|
SetPasswordL(const TDesC &)
void
|
SetPasswordL
|
(
|
const
TDesC
&
|
aPassword
|
)
|
[inline]
|
Set password. Length limit is KFavouritesMaxPassword (leaves with KErrOverflow).
Parameters
const
TDesC
& aPassword
|
The password to be set.
|
SetReadOnly(TBool)
void
|
SetReadOnly
|
(
|
TBool
|
aReadOnly
|
)
|
[private, inline]
|
Set read-only flag of the item.
Parameters
TBool
aReadOnly
|
The read-only flag to be set.
|
SetType(CFavouritesItem::TType)
Set item type (item or folder).
SetUid(TInt)
void
|
SetUid
|
(
|
TInt
|
aUid
|
)
|
[private, inline]
|
Set unique id of the item.
Parameters
TInt
aUid
|
The unique id to be set.
|
SetUrlL(const TDesC &)
void
|
SetUrlL
|
(
|
const
TDesC
&
|
aUrl
|
)
|
[inline]
|
Set URL of the item. Length limit is KFavouritesMaxURL (leaves with KErrOverflow).
Parameters
const
TDesC
& aUrl
|
The URL to be set.
|
SetUserNameL(const TDesC &)
void
|
SetUserNameL
|
(
|
const
TDesC
&
|
aUserName
|
)
|
[inline]
|
Set username of the item. Length limit is KFavouritesMaxUserName (leaves with KErrOverflow).
Parameters
const
TDesC
& aUserName
|
The username to be set.
|
SetWapAp(const TFavouritesWapAp &)
Set WAP Access Point of the item.
Type()
Get type of the item (item or folder).
Uid()
TInt
|
Uid
|
(
|
)
|
const [inline]
|
Get unique id of the item.
Url()
const
TDesC
&
|
Url
|
(
|
)
|
const [inline]
|
Get the URL of this item.
UserName()
const
TDesC
&
|
UserName
|
(
|
)
|
const [inline]
|
Get the username associated with this item.
WapAp()
Get WAP Access Point id associated with this item.
operator=(const CFavouritesItemImpl &)
Member Data Documentation
TBool
iFactoryItem
TBool
|
iFactoryItem
|
[private]
|
TTime
iModified
TTime
|
iModified
|
[private]
|
TInt
iParentFolder
TInt
|
iParentFolder
|
[private]
|
HBufC * iPassword
HBufC
*
|
iPassword
|
[private]
|
TBool
iReadOnly
TBool
|
iReadOnly
|
[private]
|
CFavouritesItem::TType
iType
HBufC * iUserName
HBufC
*
|
iUserName
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.