Discovers nearby Jellyfin servers and puts them in this list.
More...
#include <serverdiscoverymodel.h>
|
void | refresh () |
| Refreshes the model and searches for new servers.
|
|
|
| ServerDiscoveryModel (QObject *parent=nullptr) |
|
QHash< int, QByteArray > | roleNames () const override |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
Discovers nearby Jellyfin servers and puts them in this list.
◆ Roles
Enumerator |
---|
ROLE_NAME | |
ROLE_ADDRESS | |
ROLE_ID | |
◆ ServerDiscoveryModel()
Jellyfin::ServerDiscoveryModel::ServerDiscoveryModel |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ data()
QVariant Jellyfin::ServerDiscoveryModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ refresh
void Jellyfin::ServerDiscoveryModel::refresh |
( |
| ) |
|
|
slot |
Refreshes the model and searches for new servers.
◆ roleNames()
QHash< int, QByteArray > Jellyfin::ServerDiscoveryModel::roleNames |
( |
| ) |
const |
|
inlineoverride |
◆ rowCount()
int Jellyfin::ServerDiscoveryModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
inlineoverride |
The documentation for this class was generated from the following files: