CHgItem Class Reference

class CHgItem : public CBase

Inherits from

Public Member Functions
~CHgItem()
IMPORT_C voidClearFlags(TInt)
IMPORT_C TIntFlags()
IMPORT_C CGulIcon *Icon()
IMPORT_C CHgItem *NewL(TInt, CGulIcon *, const TDesC &, const TDesC &)
IMPORT_C CHgItem *NewLC(TInt, CGulIcon *, const TDesC &, const TDesC &)
IMPORT_C voidSetFlags(TInt)
IMPORT_C voidSetIcon(CGulIcon *, TInt)
IMPORT_C voidSetTextL(const TDesC &)
IMPORT_C voidSetTime(TTime)
IMPORT_C voidSetTitleL(const TDesC &)
IMPORT_C const TDesC &Text()
IMPORT_C TTimeTime()
IMPORT_C const TDesC &Title()
Protected Member Functions
CHgItem(TInt, CGulIcon *)
voidConstructL(const TDesC &, const TDesC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTHgItemFlags {
EHgItemFlagsNone = 0, EHgItemFlagMarked = 0x0001, EHgItemFlagsDrmRightsValid = 0x0002, EHgItemFlagsDrmRightsExpired = 0x0004, EHgItemFlagsVideo = 0x0008, EHgItemFlagsMmc = 0x0010, EHgItemFlagsPlaybackIndicator = 0x0020, EHgItemFlagsPauseIndicator = 0x0040, EHgItemFlagsBrokenPlaylistIndicator = 0x0080, EHgItemFlagsBrokenTrackIndicator = 0x0100, EHgItemFlagsCorruptedTrackIndicator = 0x0200, EHgItemFlagsNewVideoIndicator = 0x0400, EHgItemFlagsMassStorageIndicator = 0x0800, EHgItemFlagsPhoneStorageIndicator = 0x1000, EHgItemFlagsNewPodcastIndicator = 0x2000, EHgItemFlagsPlayedPodcastIndicator = 0x4000, EHgItemFlagsCompletelyPlayedPodcastIndicator = 0x8000, EHgItemFlagsMoveUpIndicator = 0x10000, EHgItemFlagsMoveDownIndicator = 0x20000, EHgItemFlagsMoveUpDownIndicator = 0x40000, EHgItemFlagsIconOverlayIndicator = 0x80000000
}
Protected Attributes
TInt iFlags
CGulIcon *iIcon
HBufC *iText
TTime iTime
HBufC *iTitle

Constructor & Destructor Documentation

CHgItem(TInt, CGulIcon *)

CHgItem(TIntaFlags,
CGulIcon *aIcon
)[protected]

Parameters

TInt aFlags
CGulIcon * aIcon

~CHgItem()

IMPORT_C~CHgItem()[virtual]

Destructor.

Member Functions Documentation

ClearFlags(TInt)

IMPORT_C voidClearFlags(TIntaFlags)

Clears item flags.

Parameters

TInt aFlagsFlags to be cleared.

ConstructL(const TDesC &, const TDesC &)

voidConstructL(const TDesC &aTitle,
const TDesC &aText
)[protected, virtual]

Parameters

const TDesC & aTitle
const TDesC & aText

Flags()

IMPORT_C TIntFlags()

Gets flags associated with item. THgItemFlags

Icon()

IMPORT_C CGulIcon *Icon()const

Gets the Icon.

NewL(TInt, CGulIcon *, const TDesC &, const TDesC &)

IMPORT_C CHgItem *NewL(TIntaFlags = EHgItemFlagsNone,
CGulIcon *aIcon = 0,
const TDesC &aTitle =  KNullDesC ,
const TDesC &aText =  KNullDesC
)[static]

Creates new CHgItem.

Parameters

TInt aFlags = EHgItemFlagsNoneItem flags. Default is EHgItemFlagsNone
CGulIcon * aIcon = 0Item Icon. Ownership transferred.
const TDesC & aTitle =  KNullDesC Title text.
const TDesC & aText =  KNullDesC Additional Text.

NewLC(TInt, CGulIcon *, const TDesC &, const TDesC &)

IMPORT_C CHgItem *NewLC(TIntaFlags = EHgItemFlagsNone,
CGulIcon *aIcon = 0,
const TDesC &aTitle =  KNullDesC ,
const TDesC &aText =  KNullDesC
)[static]

Creates new CHgItem.

Parameters

TInt aFlags = EHgItemFlagsNoneItem flags. Default is EHgItemFlagsNone
CGulIcon * aIcon = 0Item Icon. Ownership transferred.
const TDesC & aTitle =  KNullDesC Title text.
const TDesC & aText =  KNullDesC Additional Text.

SetFlags(TInt)

IMPORT_C voidSetFlags(TIntaFlags)

Sets item flags.

Parameters

TInt aFlagsFlags to be set.

SetIcon(CGulIcon *, TInt)

IMPORT_C voidSetIcon(CGulIcon *aIcon,
TIntaFlags = EHgItemFlagsNone
)[virtual]

Sets icon.

Parameters

CGulIcon * aIconNew icon. Ownership transferred.
TInt aFlags = EHgItemFlagsNone

SetTextL(const TDesC &)

IMPORT_C voidSetTextL(const TDesC &aText)

Sets additional text.

Parameters

const TDesC & aText

SetTime(TTime)

IMPORT_C voidSetTime(TTimeaTime)

Sets item time.

Parameters

TTime aTimeTime.

SetTitleL(const TDesC &)

IMPORT_C voidSetTitleL(const TDesC &aTitle)

Sets title text.

Parameters

const TDesC & aTitleNew title text.

Text()

IMPORT_C const TDesC &Text()const

Gets the additional text.

Time()

IMPORT_C TTimeTime()const

Gets time of the item.

Title()

IMPORT_C const TDesC &Title()const

Gets the title text.

Member Enumerations Documentation

Enum THgItemFlags

Item flags.

Enumerators

EHgItemFlagsNone = 0
EHgItemFlagMarked = 0x0001
EHgItemFlagsDrmRightsValid = 0x0002
EHgItemFlagsDrmRightsExpired = 0x0004
EHgItemFlagsVideo = 0x0008
EHgItemFlagsMmc = 0x0010
EHgItemFlagsPlaybackIndicator = 0x0020
EHgItemFlagsPauseIndicator = 0x0040
EHgItemFlagsBrokenPlaylistIndicator = 0x0080
EHgItemFlagsBrokenTrackIndicator = 0x0100
EHgItemFlagsCorruptedTrackIndicator = 0x0200
EHgItemFlagsNewVideoIndicator = 0x0400
EHgItemFlagsMassStorageIndicator = 0x0800
EHgItemFlagsPhoneStorageIndicator = 0x1000
EHgItemFlagsNewPodcastIndicator = 0x2000
EHgItemFlagsPlayedPodcastIndicator = 0x4000
EHgItemFlagsCompletelyPlayedPodcastIndicator = 0x8000
EHgItemFlagsMoveUpIndicator = 0x10000
EHgItemFlagsMoveDownIndicator = 0x20000
EHgItemFlagsMoveUpDownIndicator = 0x40000
EHgItemFlagsIconOverlayIndicator = 0x80000000

Member Data Documentation

TInt iFlags

TInt iFlags[protected]

CGulIcon * iIcon

CGulIcon *iIcon[protected]

HBufC * iText

HBufC *iText[protected]

TTime iTime

TTime iTime[protected]

HBufC * iTitle

HBufC *iTitle[protected]