Commit 2a00db6b authored by Don Gagne's avatar Don Gagne

Merge pull request #3464 from NaterGator/linkfix

Obligate LinkInterfaces to implement getLinkConfiguration. …
parents b4a94ef3 ec6a9a71
......@@ -51,10 +51,10 @@ public:
void setActive(bool active) { _active = active; emit activeChanged(active); }
/**
* @brief Get link configuration (if used)
* @return A pointer to the instance of LinkConfiguration if supported. NULL otherwise.
* @brief Get link configuration
* @return A pointer to the instance of LinkConfiguration
**/
virtual LinkConfiguration* getLinkConfiguration() { return NULL; }
virtual LinkConfiguration* getLinkConfiguration() = 0;
/* Connection management */
......
......@@ -57,6 +57,8 @@ class LogReplayLink : public LinkInterface
friend class LinkManager;
public:
virtual LinkConfiguration* getLinkConfiguration() { return _config; }
/// @return true: log is currently playing, false: log playback is paused
bool isPlaying(void) { return _readTickTimer.isActive(); }
......
......@@ -121,6 +121,7 @@ class TCPLink : public LinkInterface
public:
QTcpSocket* getSocket(void) { return _socket; }
virtual LinkConfiguration* getLinkConfiguration() { return _config; }
void signalBytesWritten(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment