mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Add Manual Hosts
This commit is contained in:
parent
5be510aba2
commit
37921d488c
8 changed files with 280 additions and 4 deletions
|
@ -78,7 +78,30 @@ class RegisteredHost
|
|||
static RegisteredHost LoadFromSettings(QSettings *settings);
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(RegisteredHost)
|
||||
class ManualHost
|
||||
{
|
||||
private:
|
||||
int id;
|
||||
QString host;
|
||||
bool registered;
|
||||
HostMAC registered_mac;
|
||||
|
||||
public:
|
||||
ManualHost();
|
||||
ManualHost(int id, const QString &host, bool registered, const HostMAC ®istered_mac);
|
||||
ManualHost(int id, const ManualHost &o);
|
||||
|
||||
int GetID() const { return id; }
|
||||
QString GetHost() const { return host; }
|
||||
bool GetRegistered() const { return registered; }
|
||||
HostMAC GetMAC() const { return registered_mac; }
|
||||
|
||||
void SaveToSettings(QSettings *settings) const;
|
||||
static ManualHost LoadFromSettings(QSettings *settings);
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(HostMAC)
|
||||
Q_DECLARE_METATYPE(RegisteredHost)
|
||||
Q_DECLARE_METATYPE(ManualHost)
|
||||
|
||||
#endif //CHIAKI_HOST_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue