CFolderItem Class Reference
class CFolderItem : public CBase |
FolderItem either contains a list of FolderItems or contains information about a feed.
Library: FeedsEngine.lib
Private Member Functions |
---|
| CFolderItem(TInt, CFeedsEntity *) |
| CFolderItem(TInt) |
void | AddItemL(CFolderItem *) |
void | AddMiniItem(CItemMini *) |
void | ConstructL() |
void | ConstructL(const CFeedsEntity &) |
TInt
| GetFolderUnreadCount(const CFolderItem *, TCountType) |
CFolderItem * | NewFeedL(TInt, const TDesC &, const TDesC &, TInt, TInt, const TTime &, TInt, const TInt &) |
CFolderItem * | NewFolderL(TInt, const TDesC &, TInt, TInt) |
CFolderItem * | NewL(TInt, CFeedsEntity *) |
Constructor & Destructor Documentation
CFolderItem(TInt, CFeedsEntity *)
CFolderItem | ( | TInt | aFolderListId, |
| CFeedsEntity * | aFeedsEntity |
| ) | [private] |
C++ default constructor. aPackedFolder is adopted by this method.
Parameters
TInt aFolderListId | |
CFeedsEntity * aFeedsEntity | |
CFolderItem(TInt)
CFolderItem | ( | TInt | aFolderListId | ) | [private] |
~CFolderItem()
IMPORT_C | ~CFolderItem | ( | ) | [virtual] |
Member Functions Documentation
AddItemL(CFolderItem *)
Adds aItem as a child of this FolderItem. aItem is adopted by this method.
AddMiniItem(CItemMini *)
void | AddMiniItem | ( | CItemMini * | aMiniItem | ) | [private] |
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
ConstructL(const CFeedsEntity &)
void | ConstructL | ( | const CFeedsEntity & | aFeedsEntity | ) | [private] |
By default Symbian 2nd phase constructor is private.
Parameters
const CFeedsEntity & aFeedsEntity | |
FeedId(void)
IMPORT_C TInt | FeedId | ( | void | | ) | const |
Returns the associated feed id for this folder-item. The method panics if the folder-item is a folder (rather than a feed).
FolderItemAt(TInt)
Returns the folder-item at the given index
Parameters
TInt aIndex | The index of the item. |
FolderItemCount(void)
IMPORT_C TInt | FolderItemCount | ( | void | | ) | const |
Returns the number of items.
FolderListId(void)
IMPORT_C TInt | FolderListId | ( | void | | ) | const |
Returns the folder-list-id associated with this item.
GetFolderUnreadCount(const CFolderItem *, TCountType)
Id(void)
IMPORT_C TInt | Id | ( | void | | ) | const |
Returns the unique id for this folder-item.
Index(const CFolderItem &)
Returns the index of the given folder-item.
IsFolder(void)
IMPORT_C TBool | IsFolder | ( | void | | ) | const |
Returns true if this is a folder.
MiniItemsCount(void)
IMPORT_C TInt | MiniItemsCount | ( | void | | ) | const |
Returns the number of mini items.
Name(void)
IMPORT_C const TDesC & | Name | ( | void | | ) | const |
Returns the name of the item.
NewFeedL(TInt, const TDesC &, const TDesC &, TInt, TInt, const TTime &, TInt, const TInt &)
NewFolderL(TInt, const TDesC &, TInt, TInt)
NewL(TInt, CFeedsEntity *)
CFolderItem * | NewL | ( | TInt | aFolderListId, |
| CFeedsEntity * | aFeedsEntity |
| ) | [private, static] |
Two-phased constructor. Only called from RFolderItem. aPackedFolder is adopted by this method.
Parameters
TInt aFolderListId | |
CFeedsEntity * aFeedsEntity | |
Parent(void)
Returns the parent folder or NULL if this is the root folder.
Search(const TDesC &)
Searches for a FolderItem with the given name. If "this" isn't a folder it only checks whether or not it matches the given name. If "this" is a folder it also checks all embedded items.
Parameters
const TDesC & aName | The name to search for. |
Search(TInt)
Searches for a FolderItem with the given id. If "this" isn't a folder it only checks whether or not it matches the given id. If "this" is a folder it also checks all embedded items.
Parameters
TInt aFolderItemId | The id to search for. |
SetUnreadCount(TInt)
IMPORT_C void | SetUnreadCount | ( | TInt | aUnreadCount | ) | |
Sets the number of unread topics for this folder-item.
- Since
- 3.1 Sets The number of unread topics for this folder-item.
SourceUrl(void)
IMPORT_C const TDesC & | SourceUrl | ( | void | | ) | const |
Returns the source url of the item.
Status()
IMPORT_C TInt | Status | ( | ) | const |
Sets the number of unread topics for this folder-item.
- Since
- 5.0 Returns the Status of Folder item
Timestamp(void)
IMPORT_C const TTime & | Timestamp | ( | void | | ) | const |
Returns the timestamp of the last update.
UnreadCount(void)
IMPORT_C TInt | UnreadCount | ( | void | | ) | const |
Returns the number of unread topics for this folder-item.
UnreadFeedCountRecursive(void)
IMPORT_C TInt | UnreadFeedCountRecursive | ( | void | | ) | const |
Returns the number of unread feeds for this folder-item.
UnreadTopicCountRecursive(void)
IMPORT_C TInt | UnreadTopicCountRecursive | ( | void | | ) | const |
Returns the number of unread topics for this folder-item.
Member Enumerations Documentation
Enum TCountType
A private function and associated enum (to be used as a flag for this function) that will be called recursively to gather the count of feeds
Enumerators
ECountUnreadFeeds | |
ECountUnreadTopics | |
Member Data Documentation
CFeedsEntity * iFeedsEntity
CFeedsEntity * | iFeedsEntity | [private] |
RPointerArray< CFolderItem > iFolderItems
TInt
iFolderListId
TInt
| iFolderListId | [private] |
TLeakTracker iLeakTracker
TLeakTracker | iLeakTracker | [private] |
RPointerArray< CItemMini > iMiniItems
CPackedFolder * iPackedFolder
const CFolderItem * iParent
TPtrC
iSourceUrl
TPtrC
| iSourceUrl | [private] |
TInt
iStatusCode
TInt
| iStatusCode | [private] |
TTime
iTimestamp
TTime
| iTimestamp | [private] |
TInt
iUnreadCount
TInt
| iUnreadCount | [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.