TMenuItem Class Reference

class TMenuItem
Menu item header. Partial data from a menu item (the administrative part). mcsmenu.lib
Since
S60 v5.0
Public Member Functions
TMenuItem()
voidExternalizeL(RWriteStream &)
TUint32 Flags()
TInt Id()
voidInternalizeL(RReadStream &)
TInt Parent()
voidSetFlags(TUint32)
voidSetId(TInt)
voidSetParent(TInt)
voidSetType(const TDesC &)
TPtrC Type()
Public Member Enumerations
enumTFlags {
ENoFlag = 0x0, ELockDelete = 0x1, ELockName = 0x2, ELockIcon = 0x4, ELockMoveInto = 0x8, ELockItem = 0x10, EHidden = 0x20, EMissing = 0x40
}
Private Attributes
TUint32 iFlags
TInt iId
TInt iParent
TBuf< KMenuMaxTypeLen >iType

Constructor & Destructor Documentation

TMenuItem()

TMenuItem()[inline]
Constructor.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Member Functions Documentation

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const
Externalize object.
capability
None.
Exceptions
System-wide

error codes if an error occurs.

panic
None.

Parameters

RWriteStream & aStreamStream to externalize into.

Flags()

TUint32 Flags()const [inline]
Get flags.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Id()

TInt Id()const [inline]
Get item ID.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)
Internalize object.
capability
None.
Exceptions
System-wide

error codes if an error occurs.

panic
None.

Parameters

RReadStream & aStreamStream to externalize from.

Parent()

TInt Parent()const [inline]
Get parent folder ID.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

SetFlags(TUint32)

voidSetFlags(TUint32aFlags)[inline]
Set flags.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Parameters

TUint32 aFlagsFlags.

SetId(TInt)

voidSetId(TIntaId)[inline]
Set item ID.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Parameters

TInt aIdItem ID.

SetParent(TInt)

voidSetParent(TIntaParent)[inline]
Set parent folder ID.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Parameters

TInt aParentParent folder ID.

SetType(const TDesC &)

voidSetType(const TDesC &aType)[inline]
Set type.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Parameters

const TDesC & aTypeType. Maximum length is KMenuMaxTypeLen.

Type()

TPtrC Type()const [inline]
Get type.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Member Enumerations Documentation

Enum TFlags

Enumerators

ENoFlag = 0x0
ELockDelete = 0x1
ELockName = 0x2
ELockIcon = 0x4
ELockMoveInto = 0x8
ELockItem = 0x10
EHidden = 0x20
EMissing = 0x40

Member Data Documentation

TUint32 iFlags

TUint32 iFlags[private]

TInt iId

TInt iId[private]

TInt iParent

TInt iParent[private]

TBuf< KMenuMaxTypeLen > iType

TBuf< KMenuMaxTypeLen >iType[private]