Make IdentityManager a singleton
This commit is contained in:
parent
6c8349787a
commit
bb95c4db78
8 changed files with 37 additions and 25 deletions
|
|
@ -35,11 +35,9 @@ void MainWindow::on_newHostBtn_clicked()
|
|||
QString hostname = popupmanager::getHostnameDialog(this);
|
||||
if (!hostname.isEmpty()) {
|
||||
|
||||
IdentityManager im = IdentityManager();
|
||||
NvPairingManager pm(hostname, im);
|
||||
NvPairingManager pm(hostname);
|
||||
|
||||
QString pin = pm.generatePinString();
|
||||
NvHTTP http(hostname, im);
|
||||
pm.pair(http.getServerInfo(), pin);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue