File indexing completed on 2024-04-21 05:10:36
0001 /* 0002 This file is part of Akregator. 0003 0004 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0007 */ 0008 0009 #include "openurlrequest.h" 0010 #include "akregatorconfig.h" 0011 0012 using namespace Akregator; 0013 0014 OpenUrlRequest::OpenUrlRequest(const QUrl &url) 0015 : m_url(url) 0016 , m_options(None) 0017 { 0018 } 0019 0020 int OpenUrlRequest::frameId() const 0021 { 0022 return m_frameId; 0023 } 0024 0025 void OpenUrlRequest::setFrameId(int frameId) 0026 { 0027 m_frameId = frameId; 0028 } 0029 0030 QUrl OpenUrlRequest::url() const 0031 { 0032 return m_url; 0033 } 0034 0035 void OpenUrlRequest::setUrl(const QUrl &url) 0036 { 0037 m_url = url; 0038 } 0039 0040 bool OpenUrlRequest::openInBackground() const 0041 { 0042 return m_inBackground; 0043 } 0044 0045 void OpenUrlRequest::setOpenInBackground(bool background) 0046 { 0047 m_inBackground = background; 0048 } 0049 0050 OpenUrlRequest::Options OpenUrlRequest::options() const 0051 { 0052 return m_options; 0053 } 0054 0055 void OpenUrlRequest::setOptions(OpenUrlRequest::Options options) 0056 { 0057 m_options = options; 0058 } 0059 0060 QString OpenUrlRequest::debugInfo() const 0061 { 0062 return QStringLiteral("url=%1 options=%2") 0063 .arg(m_url.url()) 0064 0065 .arg(m_options); 0066 } 0067 0068 bool OpenUrlRequest::wasHandled() const 0069 { 0070 return m_wasHandled; 0071 } 0072 0073 void OpenUrlRequest::setWasHandled(bool handled) 0074 { 0075 m_wasHandled = handled; 0076 }