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

akregator

Akregator::MainWidget

Akregator::MainWidget Class Reference

#include <mainwidget.h>

Inheritance diagram for Akregator::MainWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

Definition at line 64 of file mainwidget.h.


Public Slots

void slotArticleDelete ()
void slotArticleSelected (const Akregator::Article &)
void slotArticleToggleKeepFlag (bool enabled)
void slotCombinedView ()
void slotCopyLinkAddress ()
void slotFeedAdd ()
void slotFeedAddGroup ()
void slotFeedFetched (Akregator::Feed *)
void slotFeedModify ()
void slotFeedRemove ()
void slotFeedTreeContextMenu (K3ListView *, Akregator::TreeNode *, const QPoint &)
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 slotNextUnreadArticle ()
void slotNodeSelected (Akregator::TreeNode *node)
void slotNormalView ()
void slotOnShutdown ()
void slotOpenCurrentArticle ()
void slotOpenCurrentArticleInBrowser ()
void slotOpenHomepage ()
void slotPrevUnreadArticle ()
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 signalUnreadCountChanged (int)

Public Member Functions

void addFeedToGroup (const QString &url, const QString &group)
QDomDocument feedListToOPML ()
bool importFeeds (const QDomDocument &doc)
bool loadFeeds (const QDomDocument &doc, Folder *parent=0)
 MainWidget (Akregator::Part *part, QWidget *parent, ActionManagerImpl *actionManager, const char *name)
void readProperties (const KConfigGroup &config)
void saveProperties (KConfigGroup &config)
void saveSettings ()
 ~MainWidget ()

Protected Slots

void slotDeleteExpiredArticles ()
void slotDoIntervalFetches ()
void slotFetchingStarted ()
void slotFetchingStopped ()
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)

Constructor & Destructor Documentation

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

constructor

Parameters:
part the Akregator::Part which contains this widget
parent parent widget
name the name of the widget (QWidget )

Definition at line 100 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 91 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 671 of file mainwidget.cpp.

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

Add a feed to a group.

Parameters:
url The URL of the feed to add.
group The 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 470 of file mainwidget.cpp.

QDomDocument Akregator::MainWidget::feedListToOPML (  ) 

Returns:
the displayed Feed List in OPML format

Definition at line 465 of file mainwidget.cpp.

bool Akregator::MainWidget::importFeeds ( const QDomDocument &  doc  ) 

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

Parameters:
doc the DOM tree (OPML) of the feeds to import

Definition at line 382 of file mainwidget.cpp.

bool Akregator::MainWidget::loadFeeds ( const QDomDocument &  doc,
Folder *  parent = 0 
)

Parse OPML presentation of feeds and read in articles archive, if present.

If parent is NULL, the current feed list is replaced by the parsed one

Parameters:
doc QDomDocument generated from OPML
parent The parent group the new nodes

Definition at line 435 of file mainwidget.cpp.

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

session management

Definition at line 1124 of file mainwidget.cpp.

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

Definition at line 1131 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 316 of file mainwidget.cpp.

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

Definition at line 336 of file mainwidget.cpp.

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 971 of file mainwidget.cpp.

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

the article selection has changed

Definition at line 816 of file mainwidget.cpp.

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

toggles the keep flag of the currently selected article

Definition at line 1019 of file mainwidget.cpp.

void Akregator::MainWidget::slotCombinedView (  )  [slot]

switches view mode to combined view

Definition at line 539 of file mainwidget.cpp.

void Akregator::MainWidget::slotCopyLinkAddress (  )  [slot]

copies the link of current article to clipboard

Definition at line 930 of file mainwidget.cpp.

void Akregator::MainWidget::slotDeleteExpiredArticles (  )  [protected, slot]

Definition at line 454 of file mainwidget.cpp.

void Akregator::MainWidget::slotDoIntervalFetches (  )  [protected, slot]

Definition at line 760 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedAdd (  )  [slot]

adds a new feed to the feed tree

Definition at line 652 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedAddGroup (  )  [slot]

adds a feed group to the feed tree

Definition at line 683 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedFetched ( Akregator::Feed *  feed  )  [slot]

Feed has been fetched, populate article view if needed and update counters.

Definition at line 796 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedModify (  )  [slot]

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

Definition at line 707 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedRemove (  )  [slot]

removes the currently selected feed (ask for confirmation)

Definition at line 693 of file mainwidget.cpp.

void Akregator::MainWidget::slotFeedTreeContextMenu ( K3ListView *  ,
Akregator::TreeNode *  ,
const QPoint &   
) [slot]

Shows requested popup menu for feed tree.

Definition at line 551 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 948 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchAllFeeds (  )  [slot]

starts fetching of all feeds in the tree

Definition at line 777 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchCurrentFeed (  )  [slot]

fetches the currently selected feed

Definition at line 770 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchingStarted (  )  [protected, slot]

Definition at line 782 of file mainwidget.cpp.

void Akregator::MainWidget::slotFetchingStopped (  )  [protected, slot]

Definition at line 789 of file mainwidget.cpp.

void Akregator::MainWidget::slotMarkAllFeedsRead (  )  [slot]

marks all articles in all feeds in the tree as read

Definition at line 743 of file mainwidget.cpp.

void Akregator::MainWidget::slotMarkAllRead (  )  [slot]

marks all articles in the currently selected feed as read

Definition at line 748 of file mainwidget.cpp.

void Akregator::MainWidget::slotMouseButtonPressed ( int  button,
const KUrl &  url 
) [protected, slot]

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

Definition at line 852 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 1119 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeDown (  )  [slot]

Definition at line 572 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeLeft (  )  [slot]

Definition at line 588 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeRight (  )  [slot]

Definition at line 602 of file mainwidget.cpp.

void Akregator::MainWidget::slotMoveCurrentNodeUp (  )  [slot]

Definition at line 556 of file mainwidget.cpp.

void Akregator::MainWidget::slotNextUnreadArticle (  )  [slot]

selects the next unread article in the article list

Definition at line 719 of file mainwidget.cpp.

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

selected tree node has changed

Definition at line 618 of file mainwidget.cpp.

void Akregator::MainWidget::slotNormalView (  )  [slot]

switches view mode to normal view

Definition at line 493 of file mainwidget.cpp.

void Akregator::MainWidget::slotOnShutdown (  )  [slot]

Definition at line 292 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenArticleInBrowser ( const Akregator::Article &  article  )  [protected, slot]

opens the link of an article in the external browser

Definition at line 901 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenCurrentArticle (  )  [slot]

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

Definition at line 912 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenCurrentArticleInBrowser (  )  [slot]

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

Definition at line 896 of file mainwidget.cpp.

void Akregator::MainWidget::slotOpenHomepage (  )  [slot]

opens the homepage of the currently selected feed

Definition at line 879 of file mainwidget.cpp.

void Akregator::MainWidget::slotPrevUnreadArticle (  )  [slot]

selects the previous unread article in the article list

Definition at line 731 of file mainwidget.cpp.

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

Definition at line 325 of file mainwidget.cpp.

void Akregator::MainWidget::slotSendFile (  )  [inline, slot]

Definition at line 208 of file mainwidget.h.

void Akregator::MainWidget::slotSendLink (  )  [inline, slot]

Definition at line 207 of file mainwidget.h.

void Akregator::MainWidget::slotSetCurrentArticleReadDelayed (  )  [slot]

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

Definition at line 1106 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleNew (  )  [slot]

marks the currently selected article as new

Definition at line 1101 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleRead (  )  [slot]

marks the currently selected article as read

Definition at line 1063 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetSelectedArticleUnread (  )  [slot]

marks the currently selected article as unread

Definition at line 1096 of file mainwidget.cpp.

void Akregator::MainWidget::slotSetTotalUnread (  )  [slot]

emits signalUnreadCountChanged(int)

Definition at line 755 of file mainwidget.cpp.

void Akregator::MainWidget::slotTextToSpeechRequest (  )  [slot]

reads the currently selected articles using KTTSD

Definition at line 1068 of file mainwidget.cpp.

void Akregator::MainWidget::slotToggleShowQuickFilter (  )  [slot]

toggles the visibility of the filter bar

Definition at line 954 of file mainwidget.cpp.

void Akregator::MainWidget::slotWidescreenView (  )  [slot]

switches view mode to widescreen view

Definition at line 516 of file mainwidget.cpp.


The documentation for this class was generated from the following files:
  • mainwidget.h
  • mainwidget.cpp

akregator

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal