mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-11 10:18:38 -04:00
RigCtrl plugin: Removed QMainWindow dependency in plugin interface. Get API URI from MainWindow. Cosmetic changes
This commit is contained in:
@@ -32,6 +32,7 @@ public:
|
||||
~RigCtrl();
|
||||
void getSettings(RigCtrlSettings *settings);
|
||||
void setSettings(RigCtrlSettings *settings);
|
||||
void setAPIBaseURI(const QString& apiBaseURI) { m_APIBaseURI = apiBaseURI; }
|
||||
QByteArray serialize() const;
|
||||
bool deserialize(const QByteArray& data);
|
||||
|
||||
@@ -40,7 +41,7 @@ private slots:
|
||||
void getCommand();
|
||||
void processAPIResponse(QNetworkReply *reply);
|
||||
|
||||
protected:
|
||||
private:
|
||||
QTcpServer *m_tcpServer;
|
||||
QTcpSocket *m_clientConnection;
|
||||
QNetworkAccessManager *m_netman;
|
||||
@@ -60,8 +61,14 @@ protected:
|
||||
double m_targetOffset;
|
||||
const char *m_targetModem;
|
||||
int m_targetBW;
|
||||
QString m_APIBaseURI; //!< Base URI of own API
|
||||
|
||||
RigCtrlSettings m_settings;
|
||||
|
||||
static const unsigned int m_CmdLength;
|
||||
static const unsigned int m_UrlLength;
|
||||
static const unsigned int m_ResponseLength;
|
||||
static const unsigned int m_DataLength;
|
||||
};
|
||||
|
||||
#endif // INCLUDE_RIGCTRL_H
|
||||
|
||||
Reference in New Issue
Block a user