• 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
framemanager.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2005 Frank Osterfeld <osterfeld@kde.org>
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_FRAMEMANAGER_H
26 #define AKREGATOR_FRAMEMANAGER_H
27 
28 #include <QHash>
29 #include <QObject>
30 #include <QPointer>
31 
32 #include "akregator_export.h"
33 
34 class QIcon;
35 class QString;
36 class KConfigGroup;
37 
38 namespace Akregator {
39 
40 class Frame;
41 class OpenUrlRequest;
42 
43 class AKREGATOR_EXPORT FrameManager : public QObject
44 {
45  Q_OBJECT
46 
47  public:
48 
49  explicit FrameManager(QWidget* mainWin=0, QObject* parent=0);
50  ~FrameManager();
51 
52  Frame* currentFrame() const;
53 
54  Frame* findFrameById(int id) const;
55 
56  void setMainWindow(QWidget* mainWin);
57 
59  void saveProperties(KConfigGroup & config);
60 
61  public slots:
62 
63  void slotAddFrame(Frame* frame);
64  void slotRemoveFrame(int frameId);
65 
66  void slotChangeFrame(int frameId);
67  void slotOpenUrlRequest(Akregator::OpenUrlRequest& request,bool useOpenInBackgroundSetting = true );
68 
69  void slotBrowserBack();
70  void slotBrowserForward();
71  void slotBrowserReload();
72  void slotBrowserStop();
73  void slotBrowserBackAboutToShow();
74  void slotBrowserForwardAboutToShow();
75 
76  signals:
77 
78  void signalFrameAdded(Akregator::Frame*);
79  void signalFrameRemoved(int id);
80 
81  void signalRequestNewFrame(int& id);
82 
83  void signalSelectFrame(int id);
89  void signalCurrentFrameChanged(Akregator::Frame* deactivated, Akregator::Frame* activated);
90 
91  void signalStarted();
92  void signalCanceled(const QString&);
93  void signalCompleted();
94  void signalCaptionChanged(const QString&);
95  void signalTitleChanged(const QString&);
96  void signalIconChanged(const QIcon&);
97  void signalLoadingProgress(int);
98  void signalStatusText(const QString&);
99 
100  private:
101 
102 
103  void openInExternalBrowser(const OpenUrlRequest& request);
104 
105  private slots:
106  void openUrl(Akregator::OpenUrlRequest& request);
107  void slotSetStarted(Akregator::Frame* frame);
108  void slotSetCanceled(Akregator::Frame* frame, const QString& reason);
109  void slotSetCompleted(Akregator::Frame* frame);
110  void slotSetProgress(Akregator::Frame* frame, int progress);
111  void slotSetCaption(Akregator::Frame* frame, const QString& caption);
112  void slotSetTitle(Akregator::Frame* frame, const QString& title);
113  void slotSetStatusText(Akregator::Frame* frame, const QString& statusText);
114  void slotSetIconChanged( Akregator::Frame* frame, const QIcon& icon);
115  void slotCanGoBackToggled(Akregator::Frame*, bool);
116  void slotCanGoForwardToggled(Akregator::Frame*, bool);
117  void slotIsReloadableToggled(Akregator::Frame*, bool);
118  void slotIsLoadingToggled(Akregator::Frame*, bool);
119 
120  private:
121 
122  QWidget* m_mainWin;
123  QPointer<Frame> m_currentFrame;
124  QHash<int, Frame*> m_frames;
125 };
126 
127 } // namespace Akregator
128 
129 #endif // AKREGATOR_FRAMEMANAGER_H
Akregator::Frame
Definition: frame.h:53
QWidget
Akregator::OpenUrlRequest
Definition: openurlrequest.h:42
AKREGATOR_EXPORT
#define AKREGATOR_EXPORT
Definition: akregator_export.h:35
QPointer
QHash
Definition: feedlist.h:41
QObject
QString
Akregator::FrameManager
Definition: framemanager.h:43
akregator_export.h
QIcon
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