-
Notifications
You must be signed in to change notification settings - Fork 1
/
wmain.h
47 lines (39 loc) · 1.05 KB
/
wmain.h
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
38
39
40
41
42
43
44
45
46
47
#ifndef WMAIN_H
#define WMAIN_H
#include <QApplication>
#include <QDeclarativeItem>
#include <QDeclarativeEngine>
#include <QDeclarativeView>
#include <QDeclarativeContext>
#include <QRegExp>
#include <QtGui>
#include <QDBusInterface>
#include <QFile>
#include <QClipboard>
#include "networkdetails.h"
#include "sha256.h"
#include <stdint.h>
class QDBusMessage;
class WMain : public QObject
{
Q_OBJECT
public:
explicit WMain(QWidget *parent = 0);
signals:
public slots:
QString getHuaweiKey(QString mac);
QString getHuaweiSSID(QString mac);
QString getKey(QString mac);
//QString getAliceKey(QString mac);
void wlanScanResults(const QDBusMessage &status);
void addNetwork(QString essid, QString bssid, int channel,QString org);
void startScan();
QString getOrg(QString oui);
QString getTelseyKey(QString mac);
uint32_t telsey_hashword(const uint32_t * k,size_t length, uint32_t initval);
private:
QDeclarativeView *view;
QDeclarativeContext *rootContext;
QList<QObject*> networksList;
};
#endif // WMAIN_H