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

knode

  • sources
  • kde-4.14
  • kdepim
  • knode
knarticlewindow.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
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  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #ifndef KNODE_KNARTICLEWINDOW_H
16 #define KNODE_KNARTICLEWINDOW_H
17 
18 #include "knarticle.h"
19 #include "knarticlecollection.h"
20 
21 #include <kxmlguiwindow.h>
22 
23 #include <QByteArray>
24 #include <QList>
25 
26 namespace KNode {
27 
28 class ArticleWidget;
29 
31 class ArticleWindow : public KXmlGuiWindow {
32 
33  Q_OBJECT
34 
35  public:
39  explicit ArticleWindow( KNArticle::Ptr art );
41  ~ArticleWindow();
43  ArticleWidget* articleWidget() const { return mArticleWidget; }
44 
46  typedef QList<KNode::ArticleWindow*> List;
47 
53  static bool closeAllWindowsForCollection( KNArticleCollection::Ptr col, bool force = true );
59  static bool closeAllWindowsForArticle( KNArticle::Ptr art, bool force = true );
64  static bool raiseWindowForArticle( KNArticle::Ptr art );
69  static bool raiseWindowForArticle(const QByteArray &mid);
70 
71  protected:
73  ArticleWidget *mArticleWidget;
75  static List mInstances;
76 };
77 
78 }
79 
80 #endif // KNODE_KNARTICLEWINDOW_H
KNode::ArticleWindow::articleWidget
ArticleWidget * articleWidget() const
Returns the article widget of this window.
Definition: knarticlewindow.h:43
KNode::ArticleWindow::mArticleWidget
ArticleWidget * mArticleWidget
The article widget of this window.
Definition: knarticlewindow.h:73
QByteArray
KNode::ArticleWindow::~ArticleWindow
~ArticleWindow()
Destroy this article viewer window.
Definition: knarticlewindow.cpp:126
KXmlGuiWindow
KNode::ArticleWindow::List
QList< KNode::ArticleWindow * > List
List of article windows.
Definition: knarticlewindow.h:46
QList
KNode::ArticleWindow
A stand-alone article viewer window.
Definition: knarticlewindow.h:31
KNode::ArticleWindow::closeAllWindowsForArticle
static bool closeAllWindowsForArticle(KNArticle::Ptr art, bool force=true)
Clise all windows showing the given article.
Definition: knarticlewindow.cpp:48
knarticlecollection.h
KNode::ArticleWidget
Widget to display a news article.
Definition: articlewidget.h:47
KNArticle::Ptr
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:41
KNode::ArticleWindow::mInstances
static List mInstances
List of all article windows.
Definition: knarticlewindow.h:75
KNode::ArticleWindow::closeAllWindowsForCollection
static bool closeAllWindowsForCollection(KNArticleCollection::Ptr col, bool force=true)
Close all article windows showing articles from the given collection.
Definition: knarticlewindow.cpp:34
knarticle.h
KNArticleCollection::Ptr
boost::shared_ptr< KNArticleCollection > Ptr
Shared pointer to a KNArticle.
Definition: knarticlecollection.h:82
KNode::ArticleWindow::ArticleWindow
ArticleWindow(KNArticle::Ptr art)
Create a new article window.
Definition: knarticlewindow.cpp:92
KNode::ArticleWindow::raiseWindowForArticle
static bool raiseWindowForArticle(KNArticle::Ptr art)
Raise the article window for the given article.
Definition: knarticlewindow.cpp:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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