4
0
mirror of https://github.com/QuasarApp/SoundBand.git synced 2025-05-09 05:29:34 +00:00

first commit of models

This commit is contained in:
Andrei Yankovich 2018-02-28 15:49:04 +03:00
parent f02e1a0e8e
commit 8f6e61e8ed
7 changed files with 77 additions and 2 deletions

@ -27,7 +27,10 @@ SOURCES += main.cpp \
../sync/song.cpp \
../sync/sync.cpp \
../sync/Log.cpp\
../sync/exaptions.cpp
../sync/exaptions.cpp \
playlistmodel.cpp \
serverlistmodel.cpp \
playlistsmodel.cpp
RESOURCES += qml.qrc
@ -57,5 +60,8 @@ HEADERS += \
../sync/player.h \
../sync/song.h \
../sync/sync.h \
../sync/Log.h
../sync/Log.h \
playlistmodel.h \
serverlistmodel.h \
playlistsmodel.h

@ -0,0 +1,6 @@
#include "playlistmodel.h"
PlayListModel::PlayListModel(QObject *parent) : QObject(parent)
{
}

17
SoundBand/playlistmodel.h Normal file

@ -0,0 +1,17 @@
#ifndef PLAYLISTMODEL_H
#define PLAYLISTMODEL_H
#include <QObject>
class PlayListModel : public QObject
{
Q_OBJECT
public:
explicit PlayListModel(QObject *parent = nullptr);
signals:
public slots:
};
#endif // PLAYLISTMODEL_H

@ -0,0 +1,6 @@
#include "playlistsmodel.h"
PlayListsModel::PlayListsModel(QObject *parent) : QObject(parent)
{
}

@ -0,0 +1,17 @@
#ifndef PLAYLISTSMODEL_H
#define PLAYLISTSMODEL_H
#include <QObject>
class PlayListsModel : public QObject
{
Q_OBJECT
public:
explicit PlayListsModel(QObject *parent = nullptr);
signals:
public slots:
};
#endif // PLAYLISTSMODEL_H

@ -0,0 +1,6 @@
#include "serverlistmodel.h"
ServerListModel::ServerListModel(QObject *parent) : QObject(parent)
{
}

@ -0,0 +1,17 @@
#ifndef SERVERLISTMODEL_H
#define SERVERLISTMODEL_H
#include <QObject>
class ServerListModel : public QObject
{
Q_OBJECT
public:
explicit ServerListModel(QObject *parent = nullptr);
signals:
public slots:
};
#endif // SERVERLISTMODEL_H