• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.12
  • kdepim
  • akregator
  • src
selectioncontroller.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2007 Frank Osterfeld <osterfeld@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 #ifndef AKREGATOR_SELECTIONCONTROLLER_H
25 #define AKREGATOR_SELECTIONCONTROLLER_H
26 
27 #include "abstractselectioncontroller.h"
28 
29 #include <QPointer>
30 
31 class QModelIndex;
32 class QPoint;
33 class QTimer;
34 
35 class KJob;
36 
37 namespace Akregator {
38 
39 class ArticleListJob;
40 
41 class SelectionController : public AbstractSelectionController
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit SelectionController( QObject* parent = 0 );
48  ~SelectionController();
49 
50  //impl
51  void setFeedSelector( QAbstractItemView* feedSelector ) ;
52 
53  //impl
54  void setArticleLister( Akregator::ArticleLister* lister );
55 
56  //impl
57  Akregator::Article currentArticle() const;
58 
59  //impl
60  QModelIndex currentArticleIndex() const;
61 
62  //impl
63  QList<Akregator::Article> selectedArticles() const;
64 
65  //impl
66  void setSingleArticleDisplay( Akregator::SingleArticleDisplay* display );
67 
68  //impl
69  Akregator::TreeNode* selectedSubscription() const;
70 
71  //impl
72  void setFeedList( const boost::shared_ptr<FeedList>& list );
73 
74  //impl
75  void setFolderExpansionHandler( Akregator::FolderExpansionHandler* handler );
76 
77 public Q_SLOTS:
78 
79  //impl
80  void setFilters( const std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >& );
81 
82  //impl
83  void forceFilterUpdate();
84 
85 private Q_SLOTS:
86 
87  void selectedSubscriptionChanged( const QModelIndex& index );
88  void articleSelectionChanged();
89  void articleIndexDoubleClicked( const QModelIndex& index );
90  void subscriptionContextMenuRequested( const QPoint& point );
91  void articleHeadersAvailable(KJob*);
92 
93 private:
94 
95  boost::shared_ptr<FeedList> m_feedList;
96  QPointer<QAbstractItemView> m_feedSelector;
97  Akregator::ArticleLister* m_articleLister;
98  Akregator::SingleArticleDisplay* m_singleDisplay;
99  Akregator::SubscriptionListModel* m_subscriptionModel;
100  Akregator::FolderExpansionHandler* m_folderExpansionHandler;
101  Akregator::ArticleModel* m_articleModel;
102  QPointer<TreeNode> m_selectedSubscription;
103  QPointer<ArticleListJob> m_listJob;
104 };
105 
106 } // namespace Akregator
107 
108 #endif // AKREGATOR_SELECTIONCONTROLLER_H
Akregator::SelectionController::SelectionController
SelectionController(QObject *parent=0)
Definition: selectioncontroller.cpp:79
Akregator::SelectionController::setFilters
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &)
Definition: selectioncontroller.cpp:303
Akregator::SingleArticleDisplay
Definition: abstractselectioncontroller.h:75
Akregator::SelectionController::forceFilterUpdate
void forceFilterUpdate()
Definition: selectioncontroller.cpp:309
Akregator::SelectionController
Definition: selectioncontroller.h:41
Akregator::SelectionController::~SelectionController
~SelectionController()
Definition: selectioncontroller.cpp:92
Akregator::SelectionController::selectedSubscription
Akregator::TreeNode * selectedSubscription() const
Definition: selectioncontroller.cpp:165
Akregator::FolderExpansionHandler
Definition: subscriptionlistmodel.h:134
Akregator::SubscriptionListModel
Definition: subscriptionlistmodel.h:40
QObject
Akregator::AbstractSelectionController
Definition: abstractselectioncontroller.h:92
Akregator::SelectionController::setFolderExpansionHandler
void setFolderExpansionHandler(Akregator::FolderExpansionHandler *handler)
Definition: selectioncontroller.cpp:193
Akregator::SelectionController::setArticleLister
void setArticleLister(Akregator::ArticleLister *lister)
Definition: selectioncontroller.cpp:124
Akregator::SelectionController::currentArticle
Akregator::Article currentArticle() const
Definition: selectioncontroller.cpp:146
Akregator::ArticleLister
Definition: abstractselectioncontroller.h:50
Akregator::SelectionController::currentArticleIndex
QModelIndex currentArticleIndex() const
Definition: selectioncontroller.cpp:153
Akregator::Article
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:61
Akregator::SelectionController::selectedArticles
QList< Akregator::Article > selectedArticles() const
Definition: selectioncontroller.cpp:158
Akregator::SelectionController::setFeedList
void setFeedList(const boost::shared_ptr< FeedList > &list)
Definition: selectioncontroller.cpp:170
Akregator::SelectionController::setSingleArticleDisplay
void setSingleArticleDisplay(Akregator::SingleArticleDisplay *display)
Definition: selectioncontroller.cpp:141
abstractselectioncontroller.h
Akregator::SelectionController::setFeedSelector
void setFeedSelector(QAbstractItemView *feedSelector)
Definition: selectioncontroller.cpp:98
Akregator::TreeNode
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
KJob
Akregator::ArticleModel
Definition: articlemodel.h:44
QList< Akregator::Article >
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal