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

akregator

  • sources
  • kde-4.14
  • 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 
34 class KJob;
35 
36 namespace Akregator {
37 
38 class ArticleListJob;
39 
40 class SelectionController : public AbstractSelectionController
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit SelectionController( QObject* parent = 0 );
47  ~SelectionController();
48 
49  //impl
50  void setFeedSelector( QAbstractItemView* feedSelector ) ;
51 
52  //impl
53  void setArticleLister( Akregator::ArticleLister* lister );
54 
55  //impl
56  Akregator::Article currentArticle() const;
57 
58  //impl
59  QModelIndex currentArticleIndex() const;
60 
61  //impl
62  QList<Akregator::Article> selectedArticles() const;
63 
64  //impl
65  void setSingleArticleDisplay( Akregator::SingleArticleDisplay* display );
66 
67  //impl
68  Akregator::TreeNode* selectedSubscription() const;
69 
70  //impl
71  void setFeedList( const boost::shared_ptr<FeedList>& list );
72 
73  //impl
74  void setFolderExpansionHandler( Akregator::FolderExpansionHandler* handler );
75 
76 public Q_SLOTS:
77 
78  //impl
79  void setFilters( const std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >& );
80 
81  //impl
82  void forceFilterUpdate();
83 
84 private Q_SLOTS:
85 
86  void selectedSubscriptionChanged( const QModelIndex& index );
87  void articleSelectionChanged();
88  void articleIndexDoubleClicked( const QModelIndex& index );
89  void subscriptionContextMenuRequested( const QPoint& point );
90  void articleHeadersAvailable(KJob*);
91 
92 private:
93 
94  boost::shared_ptr<FeedList> m_feedList;
95  QPointer<QAbstractItemView> m_feedSelector;
96  Akregator::ArticleLister* m_articleLister;
97  Akregator::SingleArticleDisplay* m_singleDisplay;
98  Akregator::SubscriptionListModel* m_subscriptionModel;
99  Akregator::FolderExpansionHandler* m_folderExpansionHandler;
100  Akregator::ArticleModel* m_articleModel;
101  QPointer<TreeNode> m_selectedSubscription;
102  QPointer<ArticleListJob> m_listJob;
103 };
104 
105 } // namespace Akregator
106 
107 #endif // AKREGATOR_SELECTIONCONTROLLER_H
Akregator::SelectionController::SelectionController
SelectionController(QObject *parent=0)
Definition: selectioncontroller.cpp:77
QModelIndex
QAbstractItemView
Akregator::SelectionController::setFilters
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &)
Definition: selectioncontroller.cpp:303
Akregator::SingleArticleDisplay
Definition: abstractselectioncontroller.h:77
Akregator::SelectionController::forceFilterUpdate
void forceFilterUpdate()
Definition: selectioncontroller.cpp:309
Akregator::SelectionController
Definition: selectioncontroller.h:40
Akregator::SelectionController::~SelectionController
~SelectionController()
Definition: selectioncontroller.cpp:90
QPointer< QAbstractItemView >
Akregator::SelectionController::selectedSubscription
Akregator::TreeNode * selectedSubscription() const
Definition: selectioncontroller.cpp:163
Akregator::FolderExpansionHandler
Definition: subscriptionlistmodel.h:135
Akregator::SubscriptionListModel
Definition: subscriptionlistmodel.h:42
QPoint
Akregator::AbstractSelectionController
Definition: abstractselectioncontroller.h:94
Akregator::SelectionController::setFolderExpansionHandler
void setFolderExpansionHandler(Akregator::FolderExpansionHandler *handler)
Definition: selectioncontroller.cpp:191
QObject
Akregator::SelectionController::setArticleLister
void setArticleLister(Akregator::ArticleLister *lister)
Definition: selectioncontroller.cpp:122
QList< Akregator::Article >
Akregator::SelectionController::currentArticle
Akregator::Article currentArticle() const
Definition: selectioncontroller.cpp:144
Akregator::ArticleLister
Definition: abstractselectioncontroller.h:52
Akregator::SelectionController::currentArticleIndex
QModelIndex currentArticleIndex() const
Definition: selectioncontroller.cpp:151
Akregator::Article
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:63
Akregator::SelectionController::selectedArticles
QList< Akregator::Article > selectedArticles() const
Definition: selectioncontroller.cpp:156
Akregator::SelectionController::setFeedList
void setFeedList(const boost::shared_ptr< FeedList > &list)
Definition: selectioncontroller.cpp:168
Akregator::SelectionController::setSingleArticleDisplay
void setSingleArticleDisplay(Akregator::SingleArticleDisplay *display)
Definition: selectioncontroller.cpp:139
QObject::parent
QObject * parent() const
abstractselectioncontroller.h
Akregator::SelectionController::setFeedSelector
void setFeedSelector(QAbstractItemView *feedSelector)
Definition: selectioncontroller.cpp:96
Akregator::TreeNode
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:58
KJob
Akregator::ArticleModel
Definition: articlemodel.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 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
  • pimprint

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