CHgItem Class Reference

class CHgItem : public CBase

Inherits from

Public Member Functions
~CHgItem ()
IMPORT_C void ClearFlags ( TInt )
IMPORT_C TInt Flags ()
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 void SetFlags ( TInt )
IMPORT_C void SetIcon ( CGulIcon *, TInt )
IMPORT_C void SetTextL (const TDesC &)
IMPORT_C void SetTime ( TTime )
IMPORT_C void SetTitleL (const TDesC &)
IMPORT_C const TDesC & Text ()
IMPORT_C TTime Time ()
IMPORT_C const TDesC & Title ()
Protected Member Functions
CHgItem ( TInt , CGulIcon *)
void ConstructL (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
enum THgItemFlags {
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 ( TInt aFlags,
CGulIcon * aIcon
) [protected]

Parameters

TInt aFlags
CGulIcon * aIcon

~CHgItem()

IMPORT_C ~CHgItem ( ) [virtual]

Destructor.

Member Functions Documentation

ClearFlags(TInt)

IMPORT_C void ClearFlags ( TInt aFlags )

Clears item flags.

Parameters

TInt aFlags Flags to be cleared.

ConstructL(const TDesC &, const TDesC &)

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

Parameters

const TDesC & aTitle
const TDesC & aText

Flags()

IMPORT_C TInt Flags ( )

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 ( TInt aFlags = EHgItemFlagsNone,
CGulIcon * aIcon = 0,
const TDesC & aTitle =  KNullDesC ,
const TDesC & aText =  KNullDesC
) [static]

Creates new CHgItem .

Parameters

TInt aFlags = EHgItemFlagsNone Item flags. Default is EHgItemFlagsNone
CGulIcon * aIcon = 0 Item 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 ( TInt aFlags = EHgItemFlagsNone,
CGulIcon * aIcon = 0,
const TDesC & aTitle =  KNullDesC ,
const TDesC & aText =  KNullDesC
) [static]

Creates new CHgItem .

Parameters

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

SetFlags(TInt)

IMPORT_C void SetFlags ( TInt aFlags )

Sets item flags.

Parameters

TInt aFlags Flags to be set.

SetIcon(CGulIcon *, TInt)

IMPORT_C void SetIcon ( CGulIcon * aIcon,
TInt aFlags = EHgItemFlagsNone
) [virtual]

Sets icon.

Parameters

CGulIcon * aIcon New icon. Ownership transferred.
TInt aFlags = EHgItemFlagsNone

SetTextL(const TDesC &)

IMPORT_C void SetTextL ( const TDesC & aText )

Sets additional text.

Parameters

const TDesC & aText

SetTime(TTime)

IMPORT_C void SetTime ( TTime aTime )

Sets item time.

Parameters

TTime aTime Time.

SetTitleL(const TDesC &)

IMPORT_C void SetTitleL ( const TDesC & aTitle )

Sets title text.

Parameters

const TDesC & aTitle New title text.

Text()

IMPORT_C const TDesC & Text ( ) const

Gets the additional text.

Time()

IMPORT_C TTime Time ( ) 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]