| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/webbrowser.h`/ |
| 2 | |
| 3 | #ifndef WEBBROWSER_H |
| 4 | #define WEBBROWSER_Hcxx . . $ `src/librssguard/gui/webbrowser.h:4:9`! |
| 5 | |
| 6 | #include "core/message.h"cxx . . $ `<file>/src/librssguard/core/message.h`/ |
| 7 | #include "gui/tabcontent.h"cxx . . $ `<file>/src/librssguard/gui/tabcontent.h`/ |
| 8 | #include "services/abstract/rootitem.h"cxx . . $ `<file>/src/librssguard/services/abstract/rootitem.h`/ |
| 9 | |
| 10 | #include <QPointer> |
| 11 | #include <QToolBar> |
| 12 | #include <QUrl> |
| 13 | |
| 14 | class QToolButtoncxx . . $ QToolButton#; |
| 15 | class QVBoxLayoutcxx . . $ QVBoxLayout#; |
| 16 | class QHBoxLayoutcxx . . $ QHBoxLayout#; |
| 17 | class QProgressBarcxx . . $ QProgressBar#; |
| 18 | class QWidgetActioncxx . . $ QWidgetAction#; |
| 19 | class QMenucxx . . $ QMenu#; |
| 20 | class QLabelcxx . . $ QLabel#; |
| 21 | class TabWidgetcxx . . $ TabWidget#; |
| 22 | class WebViewercxx . . $ WebViewer#; |
| 23 | class LocationLineEditcxx . . $ LocationLineEdit#; |
| 24 | class SearchTextWidgetcxx . . $ SearchTextWidget#; |
| 25 | |
| 26 | class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! WebBrowsercxx . . $ WebBrowser# : public TabContentcxx . . $ TabContent# { |
| 27 | Q_OBJECTcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:133:9`! |
| 28 | |
| 29 | friend class WebEngineViewercxx . . $ WebEngineViewer#; |
| 30 | friend class TextBrowserViewercxx . . $ TextBrowserViewer#; |
| 31 | |
| 32 | public: |
| 33 | explicit WebBrowsercxx . . $ WebBrowser#WebBrowser(9bfacfdc8c8dee5d).(WebViewercxx . . $ WebViewer#* viewer = nullptr, QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 34 | virtual ~cxx . . $ WebBrowser#`~WebBrowser`(ced63f7c635d850d).WebBrowsercxx . . $ WebBrowser#(); |
| 35 | |
| 36 | virtual WebBrowsercxx . . $ WebBrowser#* webBrowsercxx . . $ WebBrowser#webBrowser(eb265423c44e6400).() const; |
| 37 | |
| 38 | WebViewercxx . . $ WebViewer#* viewercxx . . $ WebBrowser#viewer(235834988768ae4d).() const; |
| 39 | |
| 40 | void reloadFontSettingscxx . . $ WebBrowser#reloadFontSettings(49f6e7a06ebc5aa8).(); |
| 41 | |
| 42 | double verticalScrollBarPositioncxx . . $ WebBrowser#verticalScrollBarPosition(21b6c25e127938e2).() const; |
| 43 | void setVerticalScrollBarPositioncxx . . $ WebBrowser#setVerticalScrollBarPosition(ba8836b59fb42830).(double pos); |
| 44 | |
| 45 | void scrollUpcxx . . $ WebBrowser#scrollUp(49f6e7a06ebc5aa8).(); |
| 46 | void scrollDowncxx . . $ WebBrowser#scrollDown(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 49 | void clearcxx . . $ WebBrowser#clear(b45ddcbc8423892c).(bool also_hide); |
| 50 | void loadUrlcxx . . $ WebBrowser#loadUrl(3520e46b33348bf6).(const QStringcxx . . $ QString#& url); |
| 51 | void loadUrlcxx . . $ WebBrowser#loadUrl(37355d2f77053a23).(const QUrlcxx . . $ QUrl#& url); |
| 52 | void setHtmlcxx . . $ WebBrowser#setHtml(9b3514a5b076b66b).(const QStringcxx . . $ QString#& html, const QUrlcxx . . $ QUrl#& base_url =cxx . . $ QUrl#QUrl(49f6e7a06ebc5aa8). {}); |
| 53 | void loadMessagescxx . . $ WebBrowser#loadMessages(49f6da13449e8c82).(const QListcxx . . $ QList#<Messagecxx . . $ Message#>& messages, RootItemcxx . . $ RootItem#* root); |
| 54 | void setNavigationBarVisiblecxx . . $ WebBrowser#setNavigationBarVisible(b45ddcbc8423892c).(bool visible); |
| 55 | |
| 56 | protected: |
| 57 | virtual bool eventFiltercxx . . $ WebBrowser#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject#* watched, QEventcxx . . $ QEvent#* event); |
| 58 | |
| 59 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 60 | void onZoomFactorChangedcxx . . $ WebBrowser#onZoomFactorChanged(49f6e7a06ebc5aa8).(); |
| 61 | |
| 62 | #if defined(ENABLE_MEDIAPLAYERcxx . . $ `<built-in>:497:9`!) |
| 63 | void playCurrentSiteInMediaPlayercxx . . $ WebBrowser#playCurrentSiteInMediaPlayer(49f6e7a06ebc5aa8).(); |
| 64 | #endif |
| 65 | |
| 66 | void openCurrentSiteInSystemBrowsercxx . . $ WebBrowser#openCurrentSiteInSystemBrowser(49f6e7a06ebc5aa8).(); |
| 67 | void updateUrlcxx . . $ WebBrowser#updateUrl(37355d2f77053a23).(const QUrlcxx . . $ QUrl#& url); |
| 68 | void onLoadingStartedcxx . . $ WebBrowser#onLoadingStarted(49f6e7a06ebc5aa8).(); |
| 69 | void onLoadingProgresscxx . . $ WebBrowser#onLoadingProgress(d4f767463ce0a6b3).(int progress); |
| 70 | void onLoadingFinishedcxx . . $ WebBrowser#onLoadingFinished(b45ddcbc8423892c).(bool success); |
| 71 | void onTitleChangedcxx . . $ WebBrowser#onTitleChanged(3520e46b33348bf6).(const QStringcxx . . $ QString#& new_title); |
| 72 | void onIconChangedcxx . . $ WebBrowser#onIconChanged(71dcdac178620ed6).(const QIconcxx . . $ QIcon#& icon); |
| 73 | void onLinkHoveredcxx . . $ WebBrowser#onLinkHovered(37355d2f77053a23).(const QUrlcxx . . $ QUrl#& url); |
| 74 | void newWindowRequestedcxx . . $ WebBrowser#newWindowRequested(759227a73ba7c3f4).(WebViewercxx . . $ WebViewer#* viewer); |
| 75 | |
| 76 | void readabilePagecxx . . $ WebBrowser#readabilePage(49f6e7a06ebc5aa8).(); |
| 77 | void getFullArticlecxx . . $ WebBrowser#getFullArticle(49f6e7a06ebc5aa8).(); |
| 78 | |
| 79 | void setReadabledHtmlcxx . . $ WebBrowser#setReadabledHtml(4e4c9b6f049ed725).(const QObjectcxx . . $ QObject#* sndr, const QStringcxx . . $ QString#& better_html); |
| 80 | void readabilityFailedcxx . . $ WebBrowser#readabilityFailed(4e4c9b6f049ed725).(const QObjectcxx . . $ QObject#* sndr, const QStringcxx . . $ QString#& error); |
| 81 | |
| 82 | void setFullArticleHtmlcxx . . $ WebBrowser#setFullArticleHtml(ba727f494339005a).(const QObjectcxx . . $ QObject#* sndr, const QStringcxx . . $ QString#& url, const QStringcxx . . $ QString#& json_answer); |
| 83 | void fullArticleFailedcxx . . $ WebBrowser#fullArticleFailed(4e4c9b6f049ed725).(const QObjectcxx . . $ QObject#* sndr, const QStringcxx . . $ QString#& error); |
| 84 | |
| 85 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 86 | void windowCloseRequestedcxx . . $ WebBrowser#windowCloseRequested(49f6e7a06ebc5aa8).(); |
| 87 | |
| 88 | void iconChangedcxx . . $ WebBrowser#iconChanged(40a39523e9ce8b1e).(int index, const QIconcxx . . $ QIcon#& icon); |
| 89 | void titleChangedcxx . . $ WebBrowser#titleChanged(4b11a7293b4ed91c).(int index, const QStringcxx . . $ QString#& title); |
| 90 | |
| 91 | private: |
| 92 | void initializeLayoutcxx . . $ WebBrowser#initializeLayout(49f6e7a06ebc5aa8).(); |
| 93 | void bindWebViewcxx . . $ WebBrowser#bindWebView(49f6e7a06ebc5aa8).(); |
| 94 | void createConnectionscxx . . $ WebBrowser#createConnections(49f6e7a06ebc5aa8).(); |
| 95 | |
| 96 | Messagecxx . . $ Message# messageFromExtractorcxx . . $ WebBrowser#messageFromExtractor(ceaadee75159fd4d).(const QJsonDocumentcxx . . $ QJsonDocument#& extracted_data) const; |
| 97 | |
| 98 | private: |
| 99 | QVBoxLayoutcxx . . $ QVBoxLayout#* m_layoutcxx . . $ WebBrowser#m_layout.; |
| 100 | QToolBarcxx . . $ QToolBar#* m_toolBarcxx . . $ WebBrowser#m_toolBar.; |
| 101 | WebViewercxx . . $ WebViewer#* m_webViewcxx . . $ WebBrowser#m_webView.; |
| 102 | SearchTextWidgetcxx . . $ SearchTextWidget#* m_searchWidgetcxx . . $ WebBrowser#m_searchWidget.; |
| 103 | LocationLineEditcxx . . $ LocationLineEdit#* m_txtLocationcxx . . $ WebBrowser#m_txtLocation.; |
| 104 | QActioncxx . . $ QAction#* m_txtLocationActioncxx . . $ WebBrowser#m_txtLocationAction.; |
| 105 | QProgressBarcxx . . $ QProgressBar#* m_loadingProgresscxx . . $ WebBrowser#m_loadingProgress.; |
| 106 | QActioncxx . . $ QAction#* m_actionBackcxx . . $ WebBrowser#m_actionBack.; |
| 107 | QActioncxx . . $ QAction#* m_actionForwardcxx . . $ WebBrowser#m_actionForward.; |
| 108 | QActioncxx . . $ QAction#* m_actionReloadcxx . . $ WebBrowser#m_actionReload.; |
| 109 | QActioncxx . . $ QAction#* m_actionStopcxx . . $ WebBrowser#m_actionStop.; |
| 110 | QActioncxx . . $ QAction#* m_actionOpenInSystemBrowsercxx . . $ WebBrowser#m_actionOpenInSystemBrowser.; |
| 111 | |
| 112 | #if defined(ENABLE_MEDIAPLAYERcxx . . $ `<built-in>:497:9`!) |
| 113 | QActioncxx . . $ QAction#* m_actionPlayPageInMediaPlayercxx . . $ WebBrowser#m_actionPlayPageInMediaPlayer.; |
| 114 | #endif |
| 115 | |
| 116 | QActioncxx . . $ QAction#* m_actionReadabilePagecxx . . $ WebBrowser#m_actionReadabilePage.; |
| 117 | QActioncxx . . $ QAction#* m_actionGetFullArticlecxx . . $ WebBrowser#m_actionGetFullArticle.; |
| 118 | |
| 119 | QListcxx . . $ QList#<Messagecxx . . $ Message#> m_messagescxx . . $ WebBrowser#m_messages.; |
| 120 | QPointercxx . . $ QPointer#<RootItemcxx . . $ RootItem#> m_rootcxx . . $ WebBrowser#m_root.; |
| 121 | }; |
| 122 | |
| 123 | inline WebBrowsercxx . . $ WebBrowser#* WebBrowsercxx . . $ WebBrowser#::webBrowsercxx . . $ WebBrowser#webBrowser(eb265423c44e6400).() const { |
| 124 | return const_cast<WebBrowsercxx . . $ WebBrowser#*>(this); |
| 125 | } |
| 126 | |
| 127 | inline WebViewercxx . . $ WebViewer#* WebBrowsercxx . . $ WebBrowser#::viewercxx . . $ WebBrowser#viewer(235834988768ae4d).() const { |
| 128 | return m_webViewcxx . . $ WebBrowser#m_webView.; |
| 129 | } |
| 130 | |
| 131 | inline void WebBrowsercxx . . $ WebBrowser#::setNavigationBarVisiblecxx . . $ WebBrowser#setNavigationBarVisible(b45ddcbc8423892c).(bool visible) { |
| 132 | m_toolBarcxx . . $ WebBrowser#m_toolBar.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(visible); |
| 133 | } |
| 134 | |
| 135 | #endif // WEBBROWSER_H |