mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Dependency Injection for SettingsCache
* Turn SettingsCache into a QSharedPointer. * Implement interfaces for settings that need it Took 2 hours 38 minutes
This commit is contained in:
parent
b773909dfd
commit
35d18b5fa9
127 changed files with 1012 additions and 803 deletions
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef COCKATRICE_INETWORKSETTINGSPROVIDER_H
|
||||
#define COCKATRICE_INETWORKSETTINGSPROVIDER_H
|
||||
#include <QString>
|
||||
|
||||
class INetworkSettingsProvider
|
||||
{
|
||||
public:
|
||||
virtual ~INetworkSettingsProvider() = default;
|
||||
|
||||
virtual QString getClientID() = 0;
|
||||
|
||||
virtual int getTimeOut() const = 0;
|
||||
virtual int getKeepAlive() const = 0;
|
||||
virtual bool getNotifyAboutUpdates() const = 0;
|
||||
|
||||
virtual void setKnownMissingFeatures(const QString &_knownMissingFeatures) = 0;
|
||||
virtual QString getKnownMissingFeatures() = 0;
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_INETWORKSETTINGSPROVIDER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue