summaryrefslogtreecommitdiffstats
path: root/qtsoap/examples/google/google.h
blob: 731b1ee6c4da83fa6fcdafaed989ac30fbc5328a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GOOGLE_H_INCLUDED
#define GOOGLE_H_INCLUDED
#include <QWidget>
#include <qtsoap.h>

class QLineEdit;
class QTextBrowser;
class QPushButton;

class Google : public QWidget
{
    Q_OBJECT
public:
    Google(QWidget *parent = 0);

private slots:
    void submitRequest();
    void getResponse();

private:
    QtSoapHttpTransport http;

    QLineEdit *searchString;
    QLineEdit *googleKey;
    QTextBrowser *resultView;
    QPushButton *quitButton;
    QPushButton *searchButton;
    QString key;
};

#endif