mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-26 10:55:17 +00:00
118 lines
4.3 KiB
C
118 lines
4.3 KiB
C
|
/*
|
||
|
* Sailfin: a Jellyfin client written using Qt
|
||
|
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*/
|
||
|
/*
|
||
|
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||
|
* OVERWRITTEN AT SOME POINT!
|
||
|
*
|
||
|
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||
|
* core/openapigenerator.d.
|
||
|
*
|
||
|
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||
|
* file with a newer file if needed instead of manually updating the files.
|
||
|
*/
|
||
|
|
||
|
#ifndef JELLYFIN_DTO_PLAYREQUEST_H
|
||
|
#define JELLYFIN_DTO_PLAYREQUEST_H
|
||
|
|
||
|
#include <QJsonObject>
|
||
|
#include <QList>
|
||
|
#include <QObject>
|
||
|
#include <QString>
|
||
|
#include <QStringList>
|
||
|
|
||
|
#include "JellyfinQt/DTO/playcommand.h"
|
||
|
|
||
|
namespace Jellyfin {
|
||
|
namespace DTO {
|
||
|
|
||
|
class PlayRequest : public QObject {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit PlayRequest(QObject *parent = nullptr);
|
||
|
static PlayRequest *fromJSON(QJsonObject source, QObject *parent = nullptr);
|
||
|
void updateFromJSON(QJsonObject source);
|
||
|
QJsonObject toJSON();
|
||
|
|
||
|
/**
|
||
|
* @brief Gets or sets the item ids.
|
||
|
*/
|
||
|
Q_PROPERTY(QStringList itemIds READ itemIds WRITE setItemIds NOTIFY itemIdsChanged)
|
||
|
/**
|
||
|
* @brief Gets or sets the start position ticks that the first item should be played at.
|
||
|
*/
|
||
|
Q_PROPERTY(qint64 startPositionTicks READ startPositionTicks WRITE setStartPositionTicks NOTIFY startPositionTicksChanged)
|
||
|
Q_PROPERTY(PlayCommand playCommand READ playCommand WRITE setPlayCommand NOTIFY playCommandChanged)
|
||
|
/**
|
||
|
* @brief Gets or sets the controlling user identifier.
|
||
|
*/
|
||
|
Q_PROPERTY(QString controllingUserId READ controllingUserId WRITE setControllingUserId NOTIFY controllingUserIdChanged)
|
||
|
Q_PROPERTY(qint32 subtitleStreamIndex READ subtitleStreamIndex WRITE setSubtitleStreamIndex NOTIFY subtitleStreamIndexChanged)
|
||
|
Q_PROPERTY(qint32 audioStreamIndex READ audioStreamIndex WRITE setAudioStreamIndex NOTIFY audioStreamIndexChanged)
|
||
|
Q_PROPERTY(QString mediaSourceId READ mediaSourceId WRITE setMediaSourceId NOTIFY mediaSourceIdChanged)
|
||
|
Q_PROPERTY(qint32 startIndex READ startIndex WRITE setStartIndex NOTIFY startIndexChanged)
|
||
|
|
||
|
QStringList itemIds() const;
|
||
|
void setItemIds(QStringList newItemIds);
|
||
|
|
||
|
qint64 startPositionTicks() const;
|
||
|
void setStartPositionTicks(qint64 newStartPositionTicks);
|
||
|
|
||
|
PlayCommand playCommand() const;
|
||
|
void setPlayCommand(PlayCommand newPlayCommand);
|
||
|
|
||
|
QString controllingUserId() const;
|
||
|
void setControllingUserId(QString newControllingUserId);
|
||
|
|
||
|
qint32 subtitleStreamIndex() const;
|
||
|
void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex);
|
||
|
|
||
|
qint32 audioStreamIndex() const;
|
||
|
void setAudioStreamIndex(qint32 newAudioStreamIndex);
|
||
|
|
||
|
QString mediaSourceId() const;
|
||
|
void setMediaSourceId(QString newMediaSourceId);
|
||
|
|
||
|
qint32 startIndex() const;
|
||
|
void setStartIndex(qint32 newStartIndex);
|
||
|
|
||
|
signals:
|
||
|
void itemIdsChanged(QStringList newItemIds);
|
||
|
void startPositionTicksChanged(qint64 newStartPositionTicks);
|
||
|
void playCommandChanged(PlayCommand newPlayCommand);
|
||
|
void controllingUserIdChanged(QString newControllingUserId);
|
||
|
void subtitleStreamIndexChanged(qint32 newSubtitleStreamIndex);
|
||
|
void audioStreamIndexChanged(qint32 newAudioStreamIndex);
|
||
|
void mediaSourceIdChanged(QString newMediaSourceId);
|
||
|
void startIndexChanged(qint32 newStartIndex);
|
||
|
protected:
|
||
|
QStringList m_itemIds;
|
||
|
qint64 m_startPositionTicks;
|
||
|
PlayCommand m_playCommand;
|
||
|
QString m_controllingUserId;
|
||
|
qint32 m_subtitleStreamIndex;
|
||
|
qint32 m_audioStreamIndex;
|
||
|
QString m_mediaSourceId;
|
||
|
qint32 m_startIndex;
|
||
|
};
|
||
|
|
||
|
} // NS Jellyfin
|
||
|
} // NS DTO
|
||
|
|
||
|
#endif // JELLYFIN_DTO_PLAYREQUEST_H
|