mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Connect from MainWindow
This commit is contained in:
parent
862c11bc8f
commit
5be510aba2
2 changed files with 7 additions and 1 deletions
|
@ -71,6 +71,8 @@ class RegisteredHost
|
|||
|
||||
const HostMAC &GetPS4MAC() const { return ps4_mac; }
|
||||
const QString &GetPS4Nickname() const { return ps4_nickname; }
|
||||
const QByteArray GetRPRegistKey() const { return QByteArray(rp_regist_key, sizeof(rp_regist_key)); }
|
||||
const QByteArray GetRPKey() const { return QByteArray((const char *)rp_key, sizeof(rp_key)); }
|
||||
|
||||
void SaveToSettings(QSettings *settings) const;
|
||||
static RegisteredHost LoadFromSettings(QSettings *settings);
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <registdialog.h>
|
||||
#include <settingsdialog.h>
|
||||
#include <streamsession.h>
|
||||
#include <streamwindow.h>
|
||||
|
||||
#include <QTableWidget>
|
||||
#include <QVBoxLayout>
|
||||
|
@ -118,7 +119,10 @@ void MainWindow::ServerItemWidgetTriggered()
|
|||
|
||||
if(server.registered)
|
||||
{
|
||||
// TODO: connect
|
||||
QString host = server.discovery_host.host_addr; // TODO: check manual
|
||||
StreamSessionConnectInfo info(settings, host, server.registered_host.GetRPRegistKey(), server.registered_host.GetRPKey());
|
||||
auto stream_window = new StreamWindow(info);
|
||||
stream_window->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue