2
This file is part of Akregator.
4
Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net>
5
2005 Frank Osterfeld <osterfeld@kde.org>
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
As a special exception, permission is given to link this program
22
with any edition of Qt, and distribute the resulting executable,
23
without including the source code for Qt in the source distribution.
26
#ifndef AKREGATOR_PAGEVIEWER_H
27
#define AKREGATOR_PAGEVIEWER_H
37
// the back/forward navigation was taken from KDevelop. Kudos to the KDevelop team!
38
class PageViewer : public Viewer
42
explicit PageViewer(QWidget* parent, const char* name=0);
43
virtual ~PageViewer();
44
virtual bool openURL(const KUrl &url);
46
/** used by the BrowserRun object */
47
virtual void openPage(const KUrl& url);
52
void addHistoryEntry(const KUrl& url);
53
void restoreHistoryEntry(const QList<HistoryEntry>::Iterator& entry);
54
void updateHistoryEntry();
58
void slotSetCaption(const QString& cap);
61
void slotBackAboutToShow();
62
void slotForwardAboutToShow();
66
virtual void slotPaletteOrFontChanged();
68
void slotStarted(KIO::Job *);
70
void slotCancelled(const QString &errMsg);
72
void slotPopupActivated( int id );
73
virtual void slotPopupMenu(const QPoint&, const KUrl&, mode_t, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags);
75
void slotGlobalBookmarkArticle();
77
virtual void slotOpenUrlRequest(const KUrl& url, const KParts::URLArgs& args);
78
virtual void urlSelected(const QString &url, int button, int state, const QString &_target, KParts::URLArgs args);
81
void setTabIcon(const QPixmap&);
84
class PageViewerPrivate;
88
} // namespace Akregator
90
#endif // AKREGATOR_PAGEVIEWER_H