~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to akregator/src/pageviewer.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of Akregator.
3
 
 
4
 
    Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net>
5
 
                  2005 Frank Osterfeld <osterfeld@kde.org>
6
 
 
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.
11
 
 
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.
16
 
 
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.
20
 
 
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.
24
 
*/
25
 
 
26
 
#ifndef AKREGATOR_PAGEVIEWER_H
27
 
#define AKREGATOR_PAGEVIEWER_H
28
 
 
29
 
#include "viewer.h"
30
 
 
31
 
#include <QList>
32
 
 
33
 
class QString;
34
 
 
35
 
namespace Akregator {
36
 
 
37
 
// the back/forward navigation was taken from KDevelop. Kudos to the KDevelop team!
38
 
class PageViewer : public Viewer
39
 
{
40
 
    Q_OBJECT
41
 
    public:
42
 
        explicit PageViewer(QWidget* parent, const char* name=0);
43
 
        virtual ~PageViewer();
44
 
        virtual bool openURL(const KUrl &url);
45
 
 
46
 
        /** used by the BrowserRun object */
47
 
        virtual void openPage(const KUrl& url);
48
 
 
49
 
    protected:
50
 
 
51
 
        class HistoryEntry;
52
 
        void addHistoryEntry(const KUrl& url);
53
 
        void restoreHistoryEntry(const QList<HistoryEntry>::Iterator& entry);
54
 
        void updateHistoryEntry();
55
 
 
56
 
    protected slots:
57
 
 
58
 
        void slotSetCaption(const QString& cap);
59
 
        void slotBack();
60
 
        void slotForward();
61
 
        void slotBackAboutToShow();
62
 
        void slotForwardAboutToShow();
63
 
        void slotReload();
64
 
        void slotStop();
65
 
 
66
 
        virtual void slotPaletteOrFontChanged();
67
 
 
68
 
        void slotStarted(KIO::Job *);
69
 
        void slotCompleted();
70
 
        void slotCancelled(const QString &errMsg);
71
 
        
72
 
        void slotPopupActivated( int id );
73
 
        virtual void slotPopupMenu(const QPoint&, const KUrl&, mode_t, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags);
74
 
        
75
 
        void slotGlobalBookmarkArticle();
76
 
        
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);
79
 
        
80
 
    signals:
81
 
        void setTabIcon(const QPixmap&);
82
 
 
83
 
    private:
84
 
        class PageViewerPrivate;
85
 
        PageViewerPrivate* d;
86
 
};
87
 
 
88
 
} // namespace Akregator
89
 
 
90
 
#endif // AKREGATOR_PAGEVIEWER_H