• 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
mainwindow.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2004 Stanislav Karchebny <Stanislav.Karchebny@kdemail.net>
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 
25 #ifndef AKREGATOR_MAINWINDOW_H
26 #define AKREGATOR_MAINWINDOW_H
27 
28 #include <kapplication.h>
29 #include <kparts/mainwindow.h>
30 #include <kparts/browserinterface.h>
31 #include <kparts/browserextension.h>
32 #include <kio/job.h>
33 
34 #include <QPointer>
35 
36 class KSqueezedTextLabel;
37 
38 namespace Akregator
39 {
40 
41 class Part;
42 class MainWindow;
43 
44 class BrowserInterface : public KParts::BrowserInterface
45 {
46  Q_OBJECT
47 
48 public:
49  BrowserInterface(Akregator::MainWindow *shell, const char *name );
50 
51 private:
52  Akregator::MainWindow *m_shell;
53 };
54 
55 
62 class MainWindow : public KParts::MainWindow
63 {
64  Q_OBJECT
65 public:
66  explicit MainWindow( QWidget* parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS );
67  ~MainWindow();
68 
73  void setupProgressWidgets();
74 
75 
80  bool loadPart();
81 
82 public slots:
83  void slotClearStatusText();
84  void slotSetStatusBarText(const QString &c);
85 
86 protected:
91  void saveProperties(KConfigGroup &);
92 
98  void readProperties(const KConfigGroup &);
99 
103  bool queryClose();
104 
105 
106 protected slots:
107  void slotQuit();
108 
109 private:
110 
111  KParts::BrowserExtension *browserExtension(KParts::ReadOnlyPart *p);
112 
113 private slots:
114 
115  void optionsConfigureKeys();
116  void optionsConfigureToolbars();
117  void applyNewToolbarConfig();
118  void slotOnShutdown();
119 
120 private:
121  BrowserInterface *m_browserIface;
122 
123  QPointer<Akregator::Part> m_part;
124  KSqueezedTextLabel *m_statusLabel;
125 };
126 
127 } // namespace Akregator
128 
129 #endif // AKREGATOR_MAINWINDOW_H
Akregator::MainWindow::setupProgressWidgets
void setupProgressWidgets()
Creates the progress widget in the status bar and the ProgressDialog and connects them...
Definition: mainwindow.cpp:125
Akregator::MainWindow::~MainWindow
~MainWindow()
Definition: mainwindow.cpp:131
QWidget
QPointer
Akregator::MainWindow::readProperties
void readProperties(const KConfigGroup &)
This method is called when this app is restored.
Definition: mainwindow.cpp:144
Akregator::MainWindow::slotSetStatusBarText
void slotSetStatusBarText(const QString &c)
Definition: mainwindow.cpp:215
Akregator::MainWindow::queryClose
bool queryClose()
Reimplemented to say if app will be running in system tray if necessary.
Definition: mainwindow.cpp:196
Akregator::MainWindow::slotClearStatusText
void slotClearStatusText()
Definition: mainwindow.cpp:210
Akregator::BrowserInterface
Definition: mainwindow.h:44
QString
Akregator::MainWindow::loadPart
bool loadPart()
Loads the part.
Definition: mainwindow.cpp:95
Akregator::MainWindow
This is the application "Shell".
Definition: mainwindow.h:62
Akregator::MainWindow::saveProperties
void saveProperties(KConfigGroup &)
This method is called when it is time for the app to save its properties for session management purpo...
Definition: mainwindow.cpp:135
Akregator::BrowserInterface::BrowserInterface
BrowserInterface(Akregator::MainWindow *shell, const char *name)
Definition: mainwindow.cpp:53
Akregator::MainWindow::slotQuit
void slotQuit()
Definition: mainwindow.cpp:186
Qt::WindowFlags
typedef WindowFlags
Akregator::MainWindow::MainWindow
MainWindow(QWidget *parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS)
Definition: mainwindow.cpp:60
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