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

akregator

  • sources
  • kde-4.12
  • 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 KPIM
39 {
40  class StatusbarProgressWidget;
41 }
42 
43 namespace Akregator
44 {
45 
46 class Part;
47 class MainWindow;
48 
49 class BrowserInterface : public KParts::BrowserInterface
50 {
51  Q_OBJECT
52 
53 public:
54  BrowserInterface(Akregator::MainWindow *shell, const char *name );
55 
56 private:
57  Akregator::MainWindow *m_shell;
58 };
59 
60 
67 class MainWindow : public KParts::MainWindow
68 {
69  Q_OBJECT
70 public:
71  explicit MainWindow( QWidget* parent=0, Qt::WindowFlags f=KDE_DEFAULT_WINDOWFLAGS );
72  ~MainWindow();
73 
78  void setupProgressWidgets();
79 
80 
85  bool loadPart();
86 
87 public slots:
88  void slotClearStatusText();
89  void slotSetStatusBarText(const QString &c);
90 
91 protected:
96  void saveProperties(KConfigGroup &);
97 
103  void readProperties(const KConfigGroup &);
104 
108  bool queryExit();
109 
113  bool queryClose();
114 
115 
116 protected slots:
117  void slotQuit();
118 
119 private:
120 
121  KParts::BrowserExtension *browserExtension(KParts::ReadOnlyPart *p);
122 
123 private slots:
124 
125  void optionsConfigureKeys();
126  void optionsConfigureToolbars();
127  void applyNewToolbarConfig();
128 
129 private:
130  BrowserInterface *m_browserIface;
131 
132  QPointer<Akregator::Part> m_part;
133  KPIM::StatusbarProgressWidget *m_progressBar;
134  KSqueezedTextLabel *m_statusLabel;
135 };
136 
137 } // namespace Akregator
138 
139 #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:124
Akregator::MainWindow::~MainWindow
~MainWindow()
Definition: mainwindow.cpp:134
QWidget
Akregator::MainWindow::readProperties
void readProperties(const KConfigGroup &)
This method is called when this app is restored.
Definition: mainwindow.cpp:147
Akregator::MainWindow::slotSetStatusBarText
void slotSetStatusBarText(const QString &c)
Definition: mainwindow.cpp:216
Akregator::MainWindow::queryClose
bool queryClose()
Reimplemented to say if app will be running in system tray if necessary.
Definition: mainwindow.cpp:203
Akregator::MainWindow::slotClearStatusText
void slotClearStatusText()
Definition: mainwindow.cpp:211
Akregator::BrowserInterface
Definition: mainwindow.h:49
Akregator::MainWindow::loadPart
bool loadPart()
Loads the part.
Definition: mainwindow.cpp:94
Akregator::MainWindow
This is the application "Shell".
Definition: mainwindow.h:67
Akregator::MainWindow::queryExit
bool queryExit()
Reimplemented to save settings.
Definition: mainwindow.cpp:189
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:138
Akregator::BrowserInterface::BrowserInterface
BrowserInterface(Akregator::MainWindow *shell, const char *name)
Definition: mainwindow.cpp:53
Akregator::MainWindow::slotQuit
void slotQuit()
Definition: mainwindow.cpp:198
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-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