pairing stuff
This commit is contained in:
parent
3ee554cd91
commit
a38bef6bc4
7 changed files with 259 additions and 10 deletions
27
nvpairingmanager.h
Normal file
27
nvpairingmanager.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <nvhttp.h>
|
||||
|
||||
class NvPairingManager
|
||||
{
|
||||
public:
|
||||
enum PairState
|
||||
{
|
||||
NOT_PAIRED,
|
||||
PAIRED,
|
||||
PIN_WRONG,
|
||||
FAILED,
|
||||
ALREADY_IN_PROGRESS
|
||||
};
|
||||
|
||||
NvPairingManager(QString address);
|
||||
|
||||
QString
|
||||
generatePinString();
|
||||
|
||||
PairState
|
||||
pair(QString serverInfo, QString pin);
|
||||
|
||||
private:
|
||||
NvHTTP m_Http;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue