Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::ServerDiscoveryModel Class Reference

Discovers nearby Jellyfin servers and puts them in this list. More...

#include <serverdiscoverymodel.h>

Inheritance diagram for Jellyfin::ServerDiscoveryModel:

Public Types

enum  Roles { ROLE_NAME = Qt::UserRole + 1 , ROLE_ADDRESS , ROLE_ID }
 

Public Slots

void refresh ()
 Refreshes the model and searches for new servers.
 

Public Member Functions

 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
 

Detailed Description

Discovers nearby Jellyfin servers and puts them in this list.

Member Enumeration Documentation

◆ Roles

Enumerator
ROLE_NAME 
ROLE_ADDRESS 
ROLE_ID 

Constructor & Destructor Documentation

◆ ServerDiscoveryModel()

Jellyfin::ServerDiscoveryModel::ServerDiscoveryModel ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ 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: