Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2a00db6b
Commit
2a00db6b
authored
Jun 04, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3464 from NaterGator/linkfix
Obligate LinkInterfaces to implement getLinkConfiguration. …
parents
b4a94ef3
ec6a9a71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
LinkInterface.h
src/comm/LinkInterface.h
+3
-3
LogReplayLink.h
src/comm/LogReplayLink.h
+2
-0
TCPLink.h
src/comm/TCPLink.h
+1
-0
No files found.
src/comm/LinkInterface.h
View file @
2a00db6b
...
...
@@ -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 */
...
...
src/comm/LogReplayLink.h
View file @
2a00db6b
...
...
@@ -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
();
}
...
...
src/comm/TCPLink.h
View file @
2a00db6b
...
...
@@ -121,6 +121,7 @@ class TCPLink : public LinkInterface
public:
QTcpSocket
*
getSocket
(
void
)
{
return
_socket
;
}
virtual
LinkConfiguration
*
getLinkConfiguration
()
{
return
_config
;
}
void
signalBytesWritten
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment