Skip to content

Commit 2cc44a3

Browse files
committed
Adds RemoteGetActiveBackends() call to remoteutil.cpp
Adds a call to use the new backend protocol method to retrieve a list of all currently available backends. Inserts values into a QStringList.
1 parent 5e5a024 commit 2cc44a3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

mythtv/libs/libmyth/remoteutil.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,4 +571,19 @@ vector<ProgramInfo *> *RemoteGetCurrentlyRecordingList(void)
571571
return reclist;
572572
}
573573

574+
/**
575+
* \brief return list of backends currently connected to the master
576+
*/
577+
bool RemoteGetActiveBackends(QStringList *list)
578+
{
579+
list->clear();
580+
*list << "QUERY_ACTIVE_BACKENDS";
581+
582+
if (!gCoreContext->SendReceiveStringList(*list))
583+
return false;
584+
585+
list->removeFirst();
586+
return true;
587+
}
588+
574589
/* vim: set expandtab tabstop=4 shiftwidth=4: */

mythtv/libs/libmyth/remoteutil.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ MPUBLIC vector<ProgramInfo *> *RemoteGetCurrentlyRecordingList(void);
4848

4949
MPUBLIC bool RemoteGetFileList(QString host, QString path, QStringList* list,
5050
QString sgroup, bool fileNamesOnly = false);
51+
MPUBLIC bool RemoteGetActiveBackends(QStringList *list);
5152

5253
#endif
5354

0 commit comments

Comments
 (0)