mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 00:53:57 -07:00
Move abstract/noop interfaces to libcockatrice_interfaces so they can be linked against independently.
Took 52 minutes
This commit is contained in:
parent
45ee5d8abc
commit
837804f336
21 changed files with 45 additions and 25 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "remote_client.h"
|
||||
|
||||
#include "../../../../cockatrice/src/main.h"
|
||||
#include "../../interfaces/INetworkSettingsProvider.h"
|
||||
#include "version_string.h"
|
||||
|
||||
#include <QCryptographicHash>
|
||||
|
|
@ -12,6 +11,7 @@
|
|||
#include <QThread>
|
||||
#include <QTimer>
|
||||
#include <QWebSocket>
|
||||
#include <libcockatrice/interfaces/interface_network_settings_provider.h>
|
||||
#include <libcockatrice/protocol/debug_pb_message.h>
|
||||
#include <libcockatrice/protocol/pb/event_server_identification.pb.h>
|
||||
#include <libcockatrice/protocol/pb/response_activate.pb.h>
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@
|
|||
#ifndef REMOTECLIENT_H
|
||||
#define REMOTECLIENT_H
|
||||
|
||||
#include "../../interfaces/INetworkSettingsProvider.h"
|
||||
#include "../abstract/abstract_client.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QTcpSocket>
|
||||
#include <QWebSocket>
|
||||
#include <libcockatrice/interfaces/interface_network_settings_provider.h>
|
||||
#include <libcockatrice/protocol/pb/commands.pb.h>
|
||||
|
||||
inline Q_LOGGING_CATEGORY(RemoteClientLog, "remote_client");
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
#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