1 /* This file is part of the KDE project
2 Copyright 2000 Simon Hausmann <hausmann@kde.org>
3 Copyright 2000, 2006 David Faure <faure@kde.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #include "KonqViewAdaptor.h"
24 KonqViewAdaptor::KonqViewAdaptor( KonqView
* view
)
29 KonqViewAdaptor::~KonqViewAdaptor()
33 void KonqViewAdaptor::openUrl( const QString
& url
, const QString
& locationBarURL
, const QString
& nameFilter
)
35 m_pView
->openUrl( KUrl(url
), locationBarURL
, nameFilter
);
38 bool KonqViewAdaptor::changeViewMode( const QString
&mimeType
,
39 const QString
&serviceName
)
41 return m_pView
->changePart( mimeType
, serviceName
);
44 void KonqViewAdaptor::lockHistory()
47 m_pView
->lockHistory();
50 void KonqViewAdaptor::stop()
55 QString
KonqViewAdaptor::url()
57 return m_pView
->url().url();
60 QString
KonqViewAdaptor::locationBarURL()
62 return m_pView
->locationBarURL();
65 QString
KonqViewAdaptor::serviceType()
67 return m_pView
->serviceType();
70 QStringList
KonqViewAdaptor::serviceTypes()
72 return m_pView
->serviceTypes();
75 QDBusObjectPath
KonqViewAdaptor::part()
77 return QDBusObjectPath( m_pView
->partObjectPath() );
80 void KonqViewAdaptor::enablePopupMenu( bool b
)
82 m_pView
->enablePopupMenu( b
);
85 uint
KonqViewAdaptor::historyLength()const
87 return m_pView
->historyLength();
90 bool KonqViewAdaptor::allowHTML() const
92 return m_pView
->allowHTML();
95 void KonqViewAdaptor::goForward()
100 void KonqViewAdaptor::goBack()
105 bool KonqViewAdaptor::isPopupMenuEnabled() const
107 return m_pView
->isPopupMenuEnabled();
110 bool KonqViewAdaptor::canGoBack()const
112 return m_pView
->canGoBack();
115 bool KonqViewAdaptor::canGoForward()const
117 return m_pView
->canGoForward();
120 void KonqViewAdaptor::reload()
122 return m_pView
->mainWindow()->slotReload( m_pView
);
125 #include "KonqViewAdaptor.moc"