ArnLib
4.0.x
Active Registry Network
|
Browsing for Arn services. More...
#include <ArnDiscover.hpp>
Public Slots | |
void | browse (bool enable=true) |
Change state of browsing. More... | |
void | stopBrowse () |
Stop browsing. More... | |
Public Member Functions | |
ArnDiscoverBrowser (QObject *parent=arnNullptr) | |
bool | isBrowsing () const |
Return the status of the browsing. More... | |
void | setFilter (ArnDiscover::Type typeFilter) |
Set service discover filter using predefined types. More... | |
void | setFilter (const QString &group) |
Set service discover filter using group name. More... | |
![]() | |
ArnDiscoverBrowserB (QObject *parent=arnNullptr) | |
~ArnDiscoverBrowserB () | |
int | serviceCount () const |
Return the number of active discover services. More... | |
const ArnDiscoverInfo & | infoByIndex (int index) |
Return the discover service info by its index. More... | |
const ArnDiscoverInfo & | infoById (int id) |
Return the discover service info by its id. More... | |
const ArnDiscoverInfo & | infoByName (const QString &serviceName) |
Return the discover service info by its name. More... | |
int | indexToId (int index) |
Return the discover service id by its index. More... | |
int | IdToIndex (int id) |
Return the discover service index by its id. More... | |
int | serviceNameToId (const QString &name) |
Return the discover service id by its name. More... | |
ArnDiscoverInfo::State | defaultStopState () const |
Return the default stop state for this service discover browser. More... | |
void | setDefaultStopState (ArnDiscoverInfo::State defaultStopState) |
Set the default stop state for this service discover browser. More... | |
bool | goTowardState (int index, ArnDiscoverInfo::State state) |
Command a service to go towards a stop state. More... | |
Additional Inherited Members | |
![]() | |
void | serviceAdded (int index, const QString &name) |
Indicate service has been added (discovered) More... | |
void | serviceRemoved (int index) |
Indicate service has been removed. More... | |
void | infoUpdated (int index, ArnDiscoverInfo::State state) |
Indicate service has been updated. More... | |
Browsing for Arn services.
For a more complete example see the project ArnBrowser in DiscoverWindow.hpp and DiscoverWindow.cpp files.
Example usage
Definition at line 477 of file ArnDiscover.hpp.
|
explicit |
Definition at line 237 of file ArnDiscover.cpp.
|
inlineslot |
Change state of browsing.
When browsing is started, services will be discovered.
[in] | enable | if true browsing is started, otherwise it is stopped |
Definition at line 516 of file ArnDiscover.hpp.
|
inline |
Return the status of the browsing.
true | if browsing is started |
Definition at line 487 of file ArnDiscover.hpp.
|
inline |
Set service discover filter using predefined types.
When filter is enabled, only services that have the same type is discovered.
[in] | typeFilter |
Definition at line 496 of file ArnDiscover.hpp.
|
inline |
Set service discover filter using group name.
If passing empy group, this is taken as subtype (filter) disabled. When subtype (filter) is enabled, only services that have the same group is discovered.
[in] | group | the filter group name, e.g. "myGroup1" |
Definition at line 506 of file ArnDiscover.hpp.
|
inlineslot |