Refactoring and documentation

This commit is contained in:
Anika Raemer 2021-08-28 14:08:02 +02:00
parent 87a208d305
commit 3fb5be5a74
10 changed files with 149 additions and 75 deletions

View file

@ -4,6 +4,12 @@
#include <QObject>
#include <QUrl>
/**
* @brief Handles state of UI by providing the qml source.
*
* Provides the possibility to switch between different
* ui states such as music player or navigation.
*/
class UiStateModel : public QObject
{
Q_OBJECT
@ -14,7 +20,7 @@ signals:
void sourceChanged();
public:
UiStateModel(QObject *parent = Q_NULLPTR);
explicit UiStateModel(QObject *parent = nullptr);
QUrl getSource() const;