-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHostInfoView.h
More file actions
37 lines (33 loc) · 790 Bytes
/
HostInfoView.h
File metadata and controls
37 lines (33 loc) · 790 Bytes
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
35
36
37
#ifndef HOSTINFOVIEW_H
#define HOSTINFOVIEW_H
#include "PopOver.h"
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QVBoxLayout>
#include <QtGui/QHBoxLayout>
#include <QtWebKit/QWebView>
#include <QtWebKit/QWebSecurityOrigin>
#include <QtWebKit/QWebPage>
#include <QtWebKit/QWebFrame>
#include <QtNetwork/QHostInfo>
#include <QtNetwork/QHostAddress>
class HostInfoView : public PopOver {
Q_OBJECT
public:
HostInfoView(QWidget *parent = 0);
void setWebView(QWebView *view);
private:
QWebView *webView;
QLabel *headerLabel;
QLabel *hostLabel;
QLabel *portLabel;
QLabel *IPLabel;
QPushButton *closeButton;
QVBoxLayout *mainLayout;
QHBoxLayout *headerLayout;
QString host;
int port;
private slots:
void fetchLookupData(const QHostInfo &info);
};
#endif