git-svn-id: svn://db.shs.com.ru/pip@26 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -142,12 +142,14 @@ void Daemon::timerEvent(void * _d, int delim) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PIStringList Daemon::availableDaemons() const {
|
PIStringList Daemon::availableDaemons() {
|
||||||
available_daemons.clear();
|
available_daemons.clear();
|
||||||
|
lock();
|
||||||
piForeachC (PIPeer::PeerInfo & p, allPeers()) {
|
piForeachC (PIPeer::PeerInfo & p, allPeers()) {
|
||||||
if (!p.name.startsWith("_pisd_")) continue;
|
if (!p.name.startsWith("_pisd_")) continue;
|
||||||
available_daemons << p.name.mid(6);
|
available_daemons << p.name.mid(6);
|
||||||
}
|
}
|
||||||
|
unlock();
|
||||||
return available_daemons;
|
return available_daemons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public:
|
|||||||
void showMainList() {showTile(list_daemons, "Select daemon");}
|
void showMainList() {showTile(list_daemons, "Select daemon");}
|
||||||
void showActionList() {showTile(list_actions, "Select action");}
|
void showActionList() {showTile(list_actions, "Select action");}
|
||||||
|
|
||||||
PIStringList availableDaemons() const;
|
PIStringList availableDaemons();
|
||||||
void connectToDaemon(const PIString & dn);
|
void connectToDaemon(const PIString & dn);
|
||||||
void disconnect();
|
void disconnect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user