Warning, file /network/konqueror/src/KonqViewAdaptor.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* This file is part of the KDE project
0002     SPDX-FileCopyrightText: 2000 Simon Hausmann <hausmann@kde.org>
0003     SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "KonqViewAdaptor.h"
0009 #include "konqview.h"
0010 
0011 KonqViewAdaptor::KonqViewAdaptor(KonqView *view)
0012     : m_pView(view)
0013 {
0014 }
0015 
0016 KonqViewAdaptor::~KonqViewAdaptor()
0017 {
0018 }
0019 
0020 void KonqViewAdaptor::openUrl(const QString &url, const QString &locationBarURL, const QString &nameFilter)
0021 {
0022     m_pView->openUrl(QUrl::fromUserInput(url), locationBarURL, nameFilter);
0023 }
0024 
0025 bool KonqViewAdaptor::changeViewMode(const QString &mimeType,
0026                                      const QString &serviceName)
0027 {
0028     return m_pView->changePart(mimeType, serviceName);
0029 }
0030 
0031 void KonqViewAdaptor::lockHistory()
0032 
0033 {
0034     m_pView->lockHistory();
0035 }
0036 
0037 void KonqViewAdaptor::stop()
0038 {
0039     m_pView->stop();
0040 }
0041 
0042 QString KonqViewAdaptor::url()
0043 {
0044     return m_pView->url().url();
0045 }
0046 
0047 QString KonqViewAdaptor::locationBarURL()
0048 {
0049     return m_pView->locationBarURL();
0050 }
0051 
0052 QString KonqViewAdaptor::serviceType()
0053 {
0054     return m_pView->serviceType();
0055 }
0056 
0057 QStringList KonqViewAdaptor::serviceTypes()
0058 {
0059     return m_pView->serviceTypes();
0060 }
0061 
0062 QDBusObjectPath KonqViewAdaptor::part()
0063 {
0064     return QDBusObjectPath(m_pView->partObjectPath());
0065 }
0066 
0067 void KonqViewAdaptor::enablePopupMenu(bool b)
0068 {
0069     m_pView->enablePopupMenu(b);
0070 }
0071 
0072 uint KonqViewAdaptor::historyLength()const
0073 {
0074     return m_pView->historyLength();
0075 }
0076 
0077 void KonqViewAdaptor::goForward()
0078 {
0079     m_pView->go(-1);
0080 }
0081 
0082 void KonqViewAdaptor::goBack()
0083 {
0084     m_pView->go(+1);
0085 }
0086 
0087 bool KonqViewAdaptor::isPopupMenuEnabled() const
0088 {
0089     return m_pView->isPopupMenuEnabled();
0090 }
0091 
0092 bool KonqViewAdaptor::canGoBack()const
0093 {
0094     return m_pView->canGoBack();
0095 }
0096 
0097 bool KonqViewAdaptor::canGoForward()const
0098 {
0099     return m_pView->canGoForward();
0100 }
0101 
0102 void KonqViewAdaptor::reload()
0103 {
0104     return m_pView->mainWindow()->slotReload(m_pView);
0105 }
0106