|
|
@ -50,32 +50,32 @@ class RssFolder: public QObject, public RssFile { |
|
|
|
public: |
|
|
|
public: |
|
|
|
RssFolder(RssFolder *parent = 0, const QString &name = QString()); |
|
|
|
RssFolder(RssFolder *parent = 0, const QString &name = QString()); |
|
|
|
virtual ~RssFolder(); |
|
|
|
virtual ~RssFolder(); |
|
|
|
inline RssFolder* parent() const { return m_parent; } |
|
|
|
virtual RssFolder* parent() const { return m_parent; } |
|
|
|
void setParent(RssFolder* parent) { m_parent = parent; } |
|
|
|
virtual void setParent(RssFolder* parent) { m_parent = parent; } |
|
|
|
unsigned int unreadCount() const; |
|
|
|
virtual unsigned int unreadCount() const; |
|
|
|
RssFeedPtr addStream(RssManager* manager, const QString &url); |
|
|
|
RssFeedPtr addStream(RssManager* manager, const QString &url); |
|
|
|
RssFolderPtr addFolder(const QString &name); |
|
|
|
RssFolderPtr addFolder(const QString &name); |
|
|
|
unsigned int getNbFeeds() const; |
|
|
|
unsigned int getNbFeeds() const; |
|
|
|
RssFileList getContent() const; |
|
|
|
RssFileList getContent() const; |
|
|
|
RssFeedList getAllFeeds() const; |
|
|
|
RssFeedList getAllFeeds() const; |
|
|
|
QHash<QString, RssFeedPtr> getAllFeedsAsHash() const; |
|
|
|
QHash<QString, RssFeedPtr> getAllFeedsAsHash() const; |
|
|
|
QString displayName() const; |
|
|
|
virtual QString displayName() const; |
|
|
|
QString id() const; |
|
|
|
virtual QString id() const; |
|
|
|
bool hasChild(const QString &childId); |
|
|
|
bool hasChild(const QString &childId); |
|
|
|
const RssArticleList articleList() const; |
|
|
|
virtual RssArticleList articleList() const; |
|
|
|
const RssArticleList unreadArticleList() const; |
|
|
|
virtual RssArticleList unreadArticleList() const; |
|
|
|
void removeAllSettings(); |
|
|
|
virtual void removeAllSettings(); |
|
|
|
virtual void saveItemsToDisk(); |
|
|
|
virtual void saveItemsToDisk(); |
|
|
|
void removeAllItems(); |
|
|
|
void removeAllItems(); |
|
|
|
void renameChildFolder(const QString &old_name, const QString &new_name); |
|
|
|
void renameChildFolder(const QString &old_name, const QString &new_name); |
|
|
|
RssFilePtr takeChild(const QString &childId); |
|
|
|
RssFilePtr takeChild(const QString &childId); |
|
|
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
public slots: |
|
|
|
void refresh(); |
|
|
|
virtual void refresh(); |
|
|
|
void addFile(const RssFilePtr& item); |
|
|
|
void addFile(const RssFilePtr& item); |
|
|
|
void removeChild(const QString &childId); |
|
|
|
void removeChild(const QString &childId); |
|
|
|
void rename(const QString &new_name); |
|
|
|
virtual void rename(const QString &new_name); |
|
|
|
void markAsRead(); |
|
|
|
virtual void markAsRead(); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
RssFolder *m_parent; |
|
|
|
RssFolder *m_parent; |
|
|
|