mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
ee751edf54
Among lots of stuff: - Generate a random password on first load - Add `ConnectInfo` dialog including QR code display - Add `Generate Password` button to generate a new random password - Delete `Copy Password to Clipboard` button - Delete `GetConnectString` or whatever from WebSocketServer (reimplemented the functionality directly into ConnectInfo) - Added `GeneratePassword()` to Utils Todo: Show warning when users specify their own passwords
28 lines
415 B
C++
28 lines
415 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <util/config-file.h>
|
|
|
|
class Config {
|
|
public:
|
|
Config();
|
|
void Load();
|
|
void Save();
|
|
void SetDefaultsToGlobalStore();
|
|
config_t* GetConfigStore();
|
|
|
|
bool PortOverridden;
|
|
bool PasswordOverridden;
|
|
|
|
bool FirstLoad;
|
|
bool ServerEnabled;
|
|
uint16_t ServerPort;
|
|
bool DebugEnabled;
|
|
bool AlertsEnabled;
|
|
bool AuthRequired;
|
|
QString ServerPassword;
|
|
|
|
private:
|
|
|
|
};
|