| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/network-web/googlesuggest.h`/ |
| 2 | |
| 3 | // You may use this file under the terms of the BSD license as follows: |
| 4 | // |
| 5 | // "Redistribution and use in source and binary forms, with or without |
| 6 | // modification, are permitted provided that the following conditions are |
| 7 | // met: |
| 8 | // * Redistributions of source code must retain the above copyright |
| 9 | // notice, this list of conditions and the following disclaimer. |
| 10 | // * Redistributions in binary form must reproduce the above copyright |
| 11 | // notice, this list of conditions and the following disclaimer in |
| 12 | // the documentation and/or other materials provided with the |
| 13 | // distribution. |
| 14 | // * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names |
| 15 | // of its contributors may be used to endorse or promote products derived |
| 16 | // from this software without specific prior written permission. |
| 17 | // |
| 18 | // |
| 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
| 30 | |
| 31 | #ifndef GOOGLESUGGEST_H |
| 32 | #define GOOGLESUGGEST_Hcxx . . $ `src/librssguard/network-web/googlesuggest.h:32:9`! |
| 33 | |
| 34 | #include "network-web/downloader.h"cxx . . $ `<file>/src/librssguard/network-web/downloader.h`/ |
| 35 | |
| 36 | #include <QListWidget> |
| 37 | #include <QNetworkReply> |
| 38 | #include <QObject> |
| 39 | |
| 40 | class LocationLineEditcxx . . $ LocationLineEdit#; |
| 41 | class QTimercxx . . $ QTimer#; |
| 42 | |
| 43 | class GoogleSuggestcxx . . $ GoogleSuggest# : public QObjectcxx . . $ QObject# { |
| 44 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 45 | |
| 46 | public: |
| 47 | explicit GoogleSuggestcxx . . $ GoogleSuggest#GoogleSuggest(590694cdbd0af2aa).(LocationLineEditcxx . . $ LocationLineEdit#* editor, QObjectcxx . . $ QObject#* parent = nullptr); |
| 48 | |
| 49 | virtual bool eventFiltercxx . . $ GoogleSuggest#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject#* object, QEventcxx . . $ QEvent#* event); |
| 50 | |
| 51 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 52 | void showCompletioncxx . . $ GoogleSuggest#showCompletion(4c9f0945b8b27034).(const QStringListcxx . . $ QStringList#& choices); |
| 53 | void doneCompletioncxx . . $ GoogleSuggest#doneCompletion(49f6e7a06ebc5aa8).(); |
| 54 | void preventSuggestcxx . . $ GoogleSuggest#preventSuggest(49f6e7a06ebc5aa8).(); |
| 55 | void autoSuggestcxx . . $ GoogleSuggest#autoSuggest(49f6e7a06ebc5aa8).(); |
| 56 | void handleNetworkDatacxx . . $ GoogleSuggest#handleNetworkData(377b816ef29857eb).(const QUrlcxx . . $ QUrl#& url, |
| 57 | QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError# status, |
| 58 | int http_code, |
| 59 | const QByteArraycxx . . $ QByteArray#& contents); |
| 60 | |
| 61 | private: |
| 62 | LocationLineEditcxx . . $ LocationLineEdit#* m_editorcxx . . $ GoogleSuggest#m_editor.; |
| 63 | QScopedPointercxx . . $ QScopedPointer#<Downloadercxx . . $ Downloader#> m_downloadercxx . . $ GoogleSuggest#m_downloader.; |
| 64 | QScopedPointercxx . . $ QScopedPointer#<QListWidgetcxx . . $ QListWidget#> m_popupcxx . . $ GoogleSuggest#m_popup.; |
| 65 | QTimercxx . . $ QTimer#* m_timercxx . . $ GoogleSuggest#m_timer.; |
| 66 | QStringcxx . . $ QString# m_enteredTextcxx . . $ GoogleSuggest#m_enteredText.; |
| 67 | }; |
| 68 | |
| 69 | #endif // GOOGLESUGGEST_H |