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

akregator

  • Akregator
  • MainWidget
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
Akregator::MainWidget Class Reference

#include <mainwidget.h>

Inheritance diagram for Akregator::MainWidget:
Inheritance graph
[legend]

Public Types

enum  ViewMode { NormalView =0, WidescreenView, CombinedView }
 

Public Slots

void ensureArticleTabVisible ()
 
void slotArticleDelete ()
 
void slotArticleSelected (const Akregator::Article &)
 
void slotArticleToggleKeepFlag (bool enabled)
 
void slotCombinedView ()
 
void slotCopyLinkAddress ()
 
void slotFeedAdd ()
 
void slotFeedAddGroup ()
 
void slotFeedModify ()
 
void slotFeedRemove ()
 
void slotFeedUrlDropped (KUrl::List &urls, Akregator::TreeNode *after, Akregator::Folder *parent)
 
void slotFetchAllFeeds ()
 
void slotFetchCurrentFeed ()
 
void slotMarkAllFeedsRead ()
 
void slotMarkAllRead ()
 
void slotMouseOverInfo (const KFileItem &kifi)
 
void slotMoveCurrentNodeDown ()
 
void slotMoveCurrentNodeLeft ()
 
void slotMoveCurrentNodeRight ()
 
void slotMoveCurrentNodeUp ()
 
void slotNetworkStatusChanged (Solid::Networking::Status status)
 
void slotNextUnreadArticle ()
 
void slotNodeSelected (Akregator::TreeNode *node)
 
void slotNormalView ()
 
void slotOnShutdown ()
 
void slotOpenHomepage ()
 
void slotOpenSelectedArticles ()
 
void slotOpenSelectedArticlesInBackground ()
 
void slotOpenSelectedArticlesInBrowser ()
 
void slotPrevUnreadArticle ()
 
void slotReloadAllTabs ()
 
void slotRequestNewFrame (int &frameId)
 
void slotSendFile ()
 
void slotSendLink ()
 
void slotSetCurrentArticleReadDelayed ()
 
void slotSetSelectedArticleNew ()
 
void slotSetSelectedArticleRead ()
 
void slotSetSelectedArticleUnread ()
 
void slotSetTotalUnread ()
 
void slotTextToSpeechRequest ()
 
void slotToggleShowQuickFilter ()
 
void slotWidescreenView ()
 

Signals

void signalArticlesSelected (const QList< Akregator::Article > &)
 
void signalUnreadCountChanged (int)
 

Public Member Functions

 MainWidget (Akregator::Part *part, QWidget *parent, ActionManagerImpl *actionManager, const char *name)
 
 ~MainWidget ()
 
void addFeedToGroup (const QString &url, const QString &group)
 
boost::shared_ptr< FeedList > allFeedsList ()
 
QDomDocument feedListToOPML ()
 
void importFeedList (const QDomDocument &doc)
 
bool isNetworkAvailable ()
 
void readProperties (const KConfigGroup &config)
 
void saveProperties (KConfigGroup &config)
 
void saveSettings ()
 
void setFeedList (const boost::shared_ptr< FeedList > &feedList)
 
ViewMode viewMode () const
 

Protected Slots

void slotDeleteExpiredArticles ()
 
void slotDoIntervalFetches ()
 
void slotFetchingStarted ()
 
void slotFetchingStopped ()
 
void slotFramesChanged ()
 
void slotMouseButtonPressed (int button, const KUrl &)
 
void slotOpenArticleInBrowser (const Akregator::Article &article)
 

Protected Member Functions

void addFeed (const QString &url, TreeNode *after, Folder *parent, bool autoExec=true)
 
void sendArticle (bool attach=false)
 

Detailed Description

This is the main widget of the view, containing tree view, article list, viewer etc.

Definition at line 68 of file mainwidget.h.

Member Enumeration Documentation

enum Akregator::MainWidget::ViewMode
Enumerator
NormalView 
WidescreenView 
CombinedView 

Definition at line 119 of file mainwidget.h.

Constructor & Destructor Documentation

Akregator::MainWidget::MainWidget ( Akregator::Part *  part,
QWidget *  parent,
ActionManagerImpl *  actionManager,
const char *  name 
)

constructor

Parameters
partthe Akregator::Part which contains this widget
parentparent widget
namethe name of the widget (QWidget )

Definition at line 104 of file mainwidget.cpp.

Akregator::MainWidget::~MainWidget ( )

destructor.

Note that cleanups should be done in slotOnShutdown(), so we don't risk accessing self-deleting objects after deletion.

Definition at line 95 of file mainwidget.cpp.

Member Function Documentation

void Akregator::MainWidget::addFeed ( const QString &  url,
TreeNode *  after,
Folder *  parent,
bool  autoExec = true 
)
protected

Definition at line 669 of file mainwidget.cpp.

void Akregator::MainWidget::addFeedToGroup ( const QString &  url,
const QString &  group 
)

Add a feed to a group.

Parameters
urlThe URL of the feed to add.
groupThe name of the folder into which the feed is added. If the group does not exist, it is created. The feed is added as the last member of the group.

Definition at line 473 of file mainwidget.cpp.

boost::shared_ptr<FeedList> Akregator::MainWidget::allFeedsList ( )
inline

Definition at line 107 of file mainwidget.h.

void Akregator::MainWidget::ensureArticleTabVisible ( )
slot

Definition at line 1172 of file mainwidget.cpp.

QDomDocument Akregator::MainWidget::feedListToOPML ( )
Returns
the displayed Feed List in OPML format

Definition at line 464 of file mainwidget.cpp.

void MainWidget::importFeedList ( const QDomDocument &  doc)

Adds the feeds in doc to the "Imported Folder".

Parameters
docthe DOM tree (OPML) of the feeds to import

Definition at line 414 of file mainwidget.cpp.

bool MainWidget::isNetworkAvailable ( )

Definition at line 1183 of file mainwidget.cpp.

void Akregator::MainWidget::readProperties ( const KConfigGroup &  config)

session management

Definition at line 1138 of file mainwidget.cpp.

void Akregator::MainWidget::saveProperties ( KConfigGroup &  config)

Definition at line 1163 of file mainwidget.cpp.

void Akregator::MainWidget::saveSettings ( )

saves settings.

Make sure that the Settings singleton is not destroyed yet when saveSettings is called

Definition at line 342 of file mainwidget.cpp.

void Akregator::MainWidget::sendArticle ( bool  attach = false)
protected

Definition at line 368 of file mainwidget.cpp.

void Akregator::MainWidget::setFeedList ( const boost::shared_ptr< FeedList > &  feedList)

Definition at line 423 of file mainwidget.cpp.

void Akregator::MainWidget::signalArticlesSelected ( const QList< Akregator::Article > &  )
signal

emitted when the articles selected changed

void Akregator::MainWidget::signalUnreadCountChanged ( int  )
signal

emitted when the unread count of "All Feeds" was changed

void Akregator::MainWidget::slotArticleDelete ( )
slot

deletes the currently selected article

Definition at line 982 of file mainwidget.cpp.

void Akregator::MainWidget::slotArticleSelected ( const Akregator::Article &  article)
slot

the article selection has changed

Definition at line 814 of file mainwidget.cpp.

void Akregator::MainWidget::slotArticleToggleKeepFlag ( bool  enabled)
slot

toggles the keep flag of the currently selected article

Definition at line 1036 of file mainwidget.cpp.

void Akregator::MainWidget::slotCombinedView ( )
slot

switches view mode to combined view

Definition at line 542 of file mainwidget.cpp.

void Akregator::MainWidget::slotCopyLinkAddress ( )
slot

copies the link of current article to clipboard

Definition at line 941 of file mainwidget.cpp.

void Akregator::MainWidget::slotDeleteExpiredArticles ( )
protectedslot

Definition at line 459 of file mainwidget.cpp.

void Akregator::MainWidget::slotDoIntervalFetches ( )
protectedslot

Definition at line 768 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedAdd ( )
slot

adds a new feed to the feed tree

Definition at line 650 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedAddGroup ( )
slot

adds a feed group to the feed tree

Definition at line 681 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedModify ( )
slot

calls the properties dialog for feeds, starts renaming for feed groups

Definition at line 705 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedRemove ( )
slot

removes the currently selected feed (ask for confirmation)

Definition at line 691 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedUrlDropped ( KUrl::List &  urls,
Akregator::TreeNode *  after,
Akregator::Folder *  parent 
)
slot

called when URLs are dropped into the tree view

Definition at line 959 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchAllFeeds ( )
slot

starts fetching of all feeds in the tree

Definition at line 792 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchCurrentFeed ( )
slot

fetches the currently selected feed

Definition at line 782 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchingStarted ( )
protectedslot

Definition at line 800 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchingStopped ( )
protectedslot

Definition at line 807 of file mainwidget.cpp.

void Akregator::MainWidget::slotFramesChanged ( )
protectedslot

Definition at line 1030 of file mainwidget.cpp.

void Akregator::MainWidget::slotMarkAllFeedsRead ( )
slot

marks all articles in all feeds in the tree as read

Definition at line 747 of file mainwidget.cpp.

void Akregator::MainWidget::slotMarkAllRead ( )
slot

marks all articles in the currently selected feed as read

Definition at line 754 of file mainwidget.cpp.

void Akregator::MainWidget::slotMouseButtonPressed ( int  button,
const KUrl &  url 
)
protectedslot

special behaviour in article list view (TODO: move code there?)

Definition at line 856 of file mainwidget.cpp.

void Akregator::MainWidget::slotMouseOverInfo ( const KFileItem &  kifi)
slot

displays a URL in the status bar when the user moves the mouse over a link

Definition at line 1133 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeDown ( )
slot

Definition at line 570 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeLeft ( )
slot

Definition at line 586 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeRight ( )
slot

Definition at line 600 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeUp ( )
slot

Definition at line 554 of file mainwidget.cpp.

void MainWidget::slotNetworkStatusChanged ( Solid::Networking::Status  status)
slot

Definition at line 1188 of file mainwidget.cpp.

void Akregator::MainWidget::slotNextUnreadArticle ( )
slot

selects the next unread article in the article list

Definition at line 717 of file mainwidget.cpp.

void Akregator::MainWidget::slotNodeSelected ( Akregator::TreeNode *  node)
slot

selected tree node has changed

Definition at line 616 of file mainwidget.cpp.

void Akregator::MainWidget::slotNormalView ( )
slot

switches view mode to normal view

Definition at line 496 of file mainwidget.cpp.

void Akregator::MainWidget::slotOnShutdown ( )
slot

Definition at line 317 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenArticleInBrowser ( const Akregator::Article &  article)
protectedslot

opens the link of an article in the external browser

Definition at line 908 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenHomepage ( )
slot

opens the homepage of the currently selected feed

Definition at line 883 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenSelectedArticles ( )
slot

opens current article in new tab, background/foreground depends on settings TODO: use selected instead of current?

Definition at line 1203 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenSelectedArticlesInBackground ( )
slot

Definition at line 1209 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenSelectedArticlesInBrowser ( )
slot

opens the current article (currentItem) in external browser TODO: use selected instead of current?

Definition at line 900 of file mainwidget.cpp.

void Akregator::MainWidget::slotPrevUnreadArticle ( )
slot

selects the previous unread article in the article list

Definition at line 732 of file mainwidget.cpp.

void MainWidget::slotReloadAllTabs ( )
slot

reloads all open tabs

Definition at line 1177 of file mainwidget.cpp.

void Akregator::MainWidget::slotRequestNewFrame ( int &  frameId)
slot

Definition at line 355 of file mainwidget.cpp.

void Akregator::MainWidget::slotSendFile ( )
inlineslot

Definition at line 226 of file mainwidget.h.

void Akregator::MainWidget::slotSendLink ( )
inlineslot

Definition at line 225 of file mainwidget.h.

void Akregator::MainWidget::slotSetCurrentArticleReadDelayed ( )
slot

marks the currenctly selected article as read after a user-set delay

Definition at line 1120 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleNew ( )
slot

marks the currently selected article as new

Definition at line 1115 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleRead ( )
slot

marks the currently selected article as read

Definition at line 1080 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleUnread ( )
slot

marks the currently selected article as unread

Definition at line 1110 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetTotalUnread ( )
slot

emits signalUnreadCountChanged(int)

Definition at line 763 of file mainwidget.cpp.

void Akregator::MainWidget::slotTextToSpeechRequest ( )
slot

reads the currently selected articles using KTTSD

Definition at line 1085 of file mainwidget.cpp.

void Akregator::MainWidget::slotToggleShowQuickFilter ( )
slot

toggles the visibility of the filter bar

Definition at line 965 of file mainwidget.cpp.

void Akregator::MainWidget::slotWidescreenView ( )
slot

switches view mode to widescreen view

Definition at line 519 of file mainwidget.cpp.

ViewMode Akregator::MainWidget::viewMode ( ) const
inline

Definition at line 123 of file mainwidget.h.


The documentation for this class was generated from the following files:
  • mainwidget.h
  • mainwidget.cpp
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