mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-15 22:15:18 +00:00
Compare commits
No commits in common. "master" and "v0.4.0-1" have entirely different histories.
13
.github/FUNDING.yml
vendored
13
.github/FUNDING.yml
vendored
|
@ -1,13 +0,0 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: heartfin # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
40
.github/workflows/doxygen.yaml
vendored
40
.github/workflows/doxygen.yaml
vendored
|
@ -1,40 +0,0 @@
|
|||
name: doxygen
|
||||
run-name: Generate and deploy Doxygen documentation
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
workflow_dispatch: {}
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Configure pages
|
||||
uses: actions/configure-pages@v3
|
||||
- name: Install the doxyqml filter
|
||||
run: pip install doxyqml
|
||||
- name: Doxygen
|
||||
uses: mattnotmitt/doxygen-action@edge
|
||||
- name: Upload GitHub pages artifact
|
||||
uses: "actions/upload-pages-artifact@v2"
|
||||
with:
|
||||
path: "doxygen/html/"
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: "actions/deploy-pages@v2"
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,9 +5,7 @@ rpm/*.spec
|
|||
build/
|
||||
build-*/
|
||||
.dub/
|
||||
doxygen/
|
||||
|
||||
# IDE files
|
||||
*.user
|
||||
CMakeLists.txt.user.*
|
||||
compile_commands.json
|
||||
|
|
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,6 +0,0 @@
|
|||
[submodule "core/doc/doxygen-awesome-css"]
|
||||
path = core/doc/doxygen-awesome-css
|
||||
url = https://github.com/jothepro/doxygen-awesome-css.git
|
||||
[submodule "3rdparty/doxygen-awesome-css"]
|
||||
path = 3rdparty/doxygen-awesome-css
|
||||
url = https://github.com/jothepro/doxygen-awesome-css.git
|
1
3rdparty/doxygen-awesome-css
vendored
1
3rdparty/doxygen-awesome-css
vendored
|
@ -1 +0,0 @@
|
|||
Subproject commit 5b27b3a747ca1e559fa54149762cca0bad6036fb
|
|
@ -4,6 +4,7 @@ set (CMAKE_CXX_STANDARD 17)
|
|||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Options
|
||||
option(PLATFORM_SAILFISHOS "Build SailfishOS version of application" OFF)
|
||||
|
|
45
README.md
45
README.md
|
@ -1,51 +1,8 @@
|
|||
# Sailfin
|
||||
[!["Chat via Matrix"](https://img.shields.io/matrix/sailfin:netsoj.nl?label=Chat%20via%20Matrix&logo=matrix&server_fqdn=meetriks.netsoj.nl&style=for-the-badge)](https://matrix.to/#/#sailfin:netsoj.nl)
|
||||
Sailfin is a [Sailfish OS](https://sailfishos.org) client for [Jellyfin](https://jellyfin.org), a media server, written in C++ and qml.
|
||||
|
||||
## Download
|
||||
This application can be found on [OpenRepos.net](https://openrepos.net/content/ahappyhuman/sailfin)
|
||||
|
||||
## Screenshots (running on Sailfish OS)
|
||||
<img alt="Screenshot showing the library root" src="graphics/screenshot-sailfish-1.png" width="33%" /> <img alt="Screenshot showing TV show page" src="graphics/screenshot-sailfish-2.png" width="33%" />
|
||||
|
||||
## Contributing
|
||||
Please [see this page for how the Jellyfin Qt library works](https://heartfin.github.io/harbour-sailfin/guides.html).
|
||||
and [see this page for contribution guidelines](https://heartfin.github.io/harbour-sailfin/contributing.html).
|
||||
|
||||
## Code layout
|
||||
```
|
||||
├── 3rdparty 3rd-party libraries
|
||||
├── cmake Additional CMake modules
|
||||
│
|
||||
├── core The core Qt library named Jellyfin-Qt
|
||||
│ ├── codegen Template files for code generation based on the OpenAPI spec
|
||||
│ ├── dbus DBus interface description files
|
||||
│ ├── doc Extra documentation files for the generated documentation
|
||||
│ ├── include Publically includable files
|
||||
│ ├── qrc Resources for the library
|
||||
│ └── src C++ source code
|
||||
│
|
||||
├── graphics Source graphics files, meant to be edited
|
||||
│ └── qtquick-theme Custom graphics for the QtQuick theme
|
||||
│
|
||||
├── qtquick QtQuick application for testing, based on the core library
|
||||
│ ├── assets Custom assets
|
||||
│ ├── qml QML UI files
|
||||
│ ├── SailfinStyle QtQuick theme files
|
||||
│ └── src C++ code
|
||||
│
|
||||
├── rpm Files for packaging the application
|
||||
│
|
||||
└── sailfish The Sailfish OS app based on the core library
|
||||
├── icons Launcher icons
|
||||
├── qml QML UI files
|
||||
│ ├── components Reusable QML components
|
||||
│ ├── cover Cover pages
|
||||
│ ├── licenses Licence texts for libraries
|
||||
│ └── pages Application pages
|
||||
├── src C++ source code
|
||||
└── translations UI translation files
|
||||
```
|
||||
<img alt="Screenshot showing the library root" src="graphics/screenshot-sailfish-1.png" width="33%" /> <img alt="Screenshot showing TV show page" src="graphics/screenshot-sailfish-2.png" width="33%" /> <img alt="Screenshot showing the video player" src="graphics/screenshot-sailfish-3.png" width="33%" />
|
||||
|
||||
## License
|
||||
This application is licensed under the LGPLv2.1 license, although you may opt to choose a newer version of the LGPL if you want so.
|
||||
|
|
|
@ -13,14 +13,9 @@ include(GNUInstallDirs)
|
|||
include(GeneratedSources.cmake)
|
||||
|
||||
set(JellyfinQt_SOURCES
|
||||
src/model/controllablesession.cpp
|
||||
src/model/deviceprofile.cpp
|
||||
src/model/item.cpp
|
||||
src/model/player.cpp
|
||||
src/model/playbackmanager.cpp
|
||||
src/model/playbackreporter.cpp
|
||||
src/model/playlist.cpp
|
||||
src/model/remotejellyfinplayback.cpp
|
||||
src/model/shuffle.cpp
|
||||
src/model/user.cpp
|
||||
|
||||
|
@ -34,7 +29,6 @@ set(JellyfinQt_SOURCES
|
|||
src/viewmodel/modelstatus.cpp
|
||||
src/viewmodel/playbackmanager.cpp
|
||||
src/viewmodel/playlist.cpp
|
||||
src/viewmodel/remotedevice.cpp
|
||||
src/viewmodel/settings.cpp
|
||||
src/viewmodel/userdata.cpp
|
||||
src/viewmodel/usermodel.cpp
|
||||
|
@ -52,44 +46,37 @@ set(JellyfinQt_SOURCES
|
|||
list(APPEND JellyfinQt_SOURCES ${openapi_SOURCES})
|
||||
|
||||
set(JellyfinQt_HEADERS
|
||||
include/JellyfinQt/model/controllablesession.h
|
||||
include/JellyfinQt/model/deviceprofile.h
|
||||
include/JellyfinQt/model/item.h
|
||||
include/JellyfinQt/model/player.h
|
||||
include/JellyfinQt/model/playbackmanager.h
|
||||
include/JellyfinQt/model/playbackreporter.h
|
||||
include/JellyfinQt/model/playlist.h
|
||||
include/JellyfinQt/model/remotejellyfinplayback.h
|
||||
include/JellyfinQt/model/shuffle.h
|
||||
include/JellyfinQt/model/user.h
|
||||
include/JellyfinQt/support/jsonconv.h
|
||||
include/JellyfinQt/support/jsonconvimpl.h
|
||||
include/JellyfinQt/support/loader.h
|
||||
include/JellyfinQt/support/parseexception.h
|
||||
include/JellyfinQt/viewmodel/item.h
|
||||
include/JellyfinQt/viewmodel/itemmodel.h
|
||||
include/JellyfinQt/viewmodel/loader.h
|
||||
include/JellyfinQt/viewmodel/mediastream.h
|
||||
include/JellyfinQt/viewmodel/modelstatus.h
|
||||
include/JellyfinQt/viewmodel/propertyhelper.h
|
||||
include/JellyfinQt/viewmodel/playbackmanager.h
|
||||
include/JellyfinQt/viewmodel/platformmediacontrol.h
|
||||
include/JellyfinQt/viewmodel/playlist.h
|
||||
include/JellyfinQt/viewmodel/remotedevice.h
|
||||
include/JellyfinQt/viewmodel/settings.h
|
||||
include/JellyfinQt/viewmodel/userdata.h
|
||||
include/JellyfinQt/viewmodel/usermodel.h
|
||||
include/JellyfinQt/viewmodel/user.h
|
||||
include/JellyfinQt/viewmodel/utils.h
|
||||
include/JellyfinQt/apiclient.h
|
||||
include/JellyfinQt/apimodel.h
|
||||
include/JellyfinQt/credentialmanager.h
|
||||
include/JellyfinQt/eventbus.h
|
||||
include/JellyfinQt/jellyfin.h
|
||||
include/JellyfinQt/jsonhelper.h
|
||||
include/JellyfinQt/qobjectsettingswrapper.h
|
||||
include/JellyfinQt/serverdiscoverymodel.h
|
||||
include/JellyfinQt/websocket.h)
|
||||
include/JellyfinQt/model/deviceprofile.h
|
||||
include/JellyfinQt/model/item.h
|
||||
include/JellyfinQt/model/playlist.h
|
||||
include/JellyfinQt/model/shuffle.h
|
||||
include/JellyfinQt/model/user.h
|
||||
include/JellyfinQt/support/jsonconv.h
|
||||
include/JellyfinQt/support/jsonconvimpl.h
|
||||
include/JellyfinQt/support/loader.h
|
||||
include/JellyfinQt/support/parseexception.h
|
||||
include/JellyfinQt/viewmodel/item.h
|
||||
include/JellyfinQt/viewmodel/itemmodel.h
|
||||
include/JellyfinQt/viewmodel/loader.h
|
||||
include/JellyfinQt/viewmodel/mediastream.h
|
||||
include/JellyfinQt/viewmodel/modelstatus.h
|
||||
include/JellyfinQt/viewmodel/propertyhelper.h
|
||||
include/JellyfinQt/viewmodel/playbackmanager.h
|
||||
include/JellyfinQt/viewmodel/platformmediacontrol.h
|
||||
include/JellyfinQt/viewmodel/playlist.h
|
||||
include/JellyfinQt/viewmodel/settings.h
|
||||
include/JellyfinQt/viewmodel/userdata.h
|
||||
include/JellyfinQt/viewmodel/usermodel.h
|
||||
include/JellyfinQt/viewmodel/user.h
|
||||
include/JellyfinQt/apiclient.h
|
||||
include/JellyfinQt/apimodel.h
|
||||
include/JellyfinQt/credentialmanager.h
|
||||
include/JellyfinQt/eventbus.h
|
||||
include/JellyfinQt/jellyfin.h
|
||||
include/JellyfinQt/jsonhelper.h
|
||||
include/JellyfinQt/qobjectsettingswrapper.h
|
||||
include/JellyfinQt/serverdiscoverymodel.h
|
||||
include/JellyfinQt/websocket.h)
|
||||
|
||||
if (FREEDESKTOP_INTEGRATION)
|
||||
list(APPEND JellyfinQt_SOURCES
|
||||
|
|
|
@ -7,22 +7,9 @@ class {{className}};
|
|||
|
||||
class {{className}} {
|
||||
public:
|
||||
{{#if hasRequiredProperties}}
|
||||
|
||||
{{className}}(
|
||||
{{#each properties as |p|}}
|
||||
{{#if p.isNotNullable}}
|
||||
|
||||
{{p.typeNameWithQualifiers}} {{p.name}}{{#if p.isLastNonNullable}}{{else}},{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
);
|
||||
|
||||
{{else}}
|
||||
|
||||
{{className}}();
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{className}}(const {{className}} &other);
|
||||
|
||||
/**
|
||||
|
@ -73,18 +60,8 @@ protected:
|
|||
{{/if}}
|
||||
|
||||
{{/each}}
|
||||
|
||||
|
||||
{{#if hasRequiredProperties}}
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing {{className}}::fromJson();
|
||||
|
||||
{{className}}();
|
||||
{{/if}}
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -1,32 +1,5 @@
|
|||
{{className}}::{{className}}() {}
|
||||
|
||||
{{#if hasRequiredProperties}}
|
||||
{{className}}::{{className}} (
|
||||
|
||||
{{#each properties as |property|}}
|
||||
{{#if property.isNotNullable}}
|
||||
|
||||
{{property.typeNameWithQualifiers}} {{property.name}}{{#if property.isLastNonNullable}} {{else}}, {{/if}}
|
||||
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
) :
|
||||
|
||||
{{#each properties as |property|}}
|
||||
{{#if property.isNotNullable}}
|
||||
{{property.memberName}}({{property.name}})
|
||||
{{#if property.isLastNonNullable}}
|
||||
{ }
|
||||
{{else}}
|
||||
,
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{className}}::{{className}}(const {{className}} &other) :
|
||||
|
||||
|
|
|
@ -1,77 +0,0 @@
|
|||
\page contributing Contributing
|
||||
\brief All resources for (potential) contributors
|
||||
|
||||
This page should contain all resources for people who'd like to contribute to the project.
|
||||
If that happens to be you, thank you for considering to contribute to this project!
|
||||
This page will describe how the process goes, what code style this project uses and more useful information.
|
||||
|
||||
# Development process
|
||||
Development happens at [GitHub](https://github.com/heartfin/harbour-sailfin).
|
||||
Currently, both the library Jellyfin-Qt and the [Sailfish OS](https://sailfishos.org) app named Sailfin are developed in the same repository.
|
||||
|
||||
## Create or find an issue to work on
|
||||
If you want to contribute code, please check if an issue exists.
|
||||
Otherwise, create an issue describing what feature you'd like to develop before creating a merge request.
|
||||
|
||||
## Start working on your code
|
||||
Clone the git repo and create a new branch.
|
||||
If you have commit access to the repository, please create a branch in the form of `<issue-number>-<issue-title>`.
|
||||
For example, `36-control-remote-jellyfin-sessions`.
|
||||
|
||||
Now you can start writing your code and create commits.
|
||||
Please create focussed commits, that is, do not commit anything not related to the issue you are working on.
|
||||
Also state what you're changing in the commit message and add an entry in the file `rpm/harbour-sailfin.changes`.
|
||||
|
||||
If this is your first time contributing to the project, don't be shy and feel free to add your name to the contributors list in `sailfish/qml/pages/AboutPage.qml`!
|
||||
|
||||
## Submit a merge request
|
||||
Now that you have finalised your commit, you can create a merge request on the repository.
|
||||
Make sure that you have followed the contribution guidelines on this page.
|
||||
Someone will review it and if all is good, they will merge it in.
|
||||
|
||||
Congratulations on your contribution!
|
||||
|
||||
# Code style guidelines
|
||||
The code should follow the [Sailfish OS Code Conventions](https://docs.sailfishos.org/Develop/Apps/Coding_Conventions/) with the following exceptions:
|
||||
|
||||
## Exceptions for C++
|
||||
- Put curly braces on the same line as the declaration, example:
|
||||
```cpp
|
||||
int foo() {
|
||||
// implementation
|
||||
}
|
||||
```
|
||||
instead of
|
||||
```cpp
|
||||
int foo()
|
||||
{
|
||||
// implementation
|
||||
}
|
||||
```
|
||||
Rationale: I hate pressing enter and am used to the former. Moreover, it is already all over the place. Bad rationale, I know.
|
||||
|
||||
- Close namespace brackets with a comment in the form `// NS Jellyfin`, example:
|
||||
```cpp
|
||||
namespace Jellyfin {
|
||||
namespace Nested {
|
||||
// Content
|
||||
} // NS Nested
|
||||
} // NS Jellyfin
|
||||
```
|
||||
Rationale: Easy to know what namespace the bracket closes, since namespaces tend to span over large portions of a file.
|
||||
|
||||
- Use include guards in the form of `NAMESPACE_CLASSNAME_H`. Example:
|
||||
```cpp
|
||||
#ifndef JELLYFIN_MODEL_USER_H
|
||||
#define JELLYFIN_MODEL_USER_H
|
||||
namespace Jellyfin {
|
||||
namespace Model {
|
||||
|
||||
class User {
|
||||
// Methods etc
|
||||
};
|
||||
|
||||
} // NS Model
|
||||
} // NS Jellyfin
|
||||
```
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
html {
|
||||
--primary-color: #be48d6;
|
||||
--primary-dark-color: #7a2e89;
|
||||
--primary-light-color #e256ff;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html:not(.light-mode) {
|
||||
--primary-color: #be48d6;
|
||||
--primary-dark-color: #7a2e89;
|
||||
--primary-light-color #e256ff;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
\page guide-apimodel-loader ApiModel and Loaders
|
||||
\brief This will give an overview of how the ApiModel and Loaders interact.
|
||||
|
||||
\todo
|
||||
This guide should still be written
|
|
@ -1,73 +0,0 @@
|
|||
\page guide-getting-started Getting Started
|
||||
\brief Installation procedure and first application using this library
|
||||
|
||||
This is a tutorial on how to use Jellyfin Qt library.
|
||||
|
||||
## Project setup
|
||||
|
||||
The library works as [a QML plugin](https://doc.qt.io/archives/qt-5.6/qqmlextensionplugin.html).
|
||||
Compile the library, install it in the QML plugin path and add a qmldir file like this:
|
||||
|
||||
```
|
||||
module nl.netsoj.chris.Jellyfin
|
||||
plugin JellyfinQt
|
||||
```
|
||||
|
||||
You should then be able to import it in your QML files.
|
||||
|
||||
|
||||
```qml
|
||||
import nl.netsoj.chris.Jellyfin
|
||||
```
|
||||
|
||||
\note
|
||||
In the documentation, the URI nl.netsoj.chris.Jellyfin will be used.
|
||||
If you deviate from this, make sure to put the plugin in the correct location,
|
||||
as well as using the correct import statements in QML.
|
||||
|
||||
## Hello Jellyfin!
|
||||
|
||||
The first step for interacting with the library is setting up an \ref Jellyfin::ApiClient.
|
||||
This object handles authentication.
|
||||
|
||||
|
||||
|
||||
\warning
|
||||
The way authentication works using ApiClient will change before the next major release to support multiple accounts! See \issue{4}
|
||||
|
||||
Lets create an instance of ApiClient that is reachable from everywhere, by putting it in the ApplicationWindow:
|
||||
|
||||
```qml
|
||||
import nl.netsoj.chris.Jellyfin as JF
|
||||
import QtQuick 2.0 as QQ
|
||||
|
||||
QQ.ApplicationWindow {
|
||||
readonly property JF.ApiClient apiClient: _apiClient
|
||||
|
||||
JF.ApiClient {
|
||||
id: _apiClient
|
||||
appName: "The name of your client"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
\note
|
||||
As an alternative, you could create a QML file only containing the ApiClient and [declaring it as a Singleton](https://doc.qt.io/archives/qt-5.6/qtqml-modules-qmldir.html#contents-of-a-module-definition-qmldir-file)
|
||||
|
||||
## Authentication
|
||||
If the user already has logged in and the credentials are stored, this is quite easy:
|
||||
the \ref Jellyfin::ApiClient::authenticated "authenticated" property will change to true and the corresponding signal will fire.
|
||||
You don't have to do anything else!
|
||||
|
||||
When the user never has logged in, the signal \ref Jellyfin::ApiClient::setupRequired "setupRequired()" will be fired.
|
||||
When this happens, you should let the user enter a server URL and set it as the \ref Jellyfin::ApiClient::baseUrl "baseUrl" property.
|
||||
You can get a list model of servers in the local network using the \ref Jellyfin::ServerDiscoveryModel.
|
||||
|
||||
After the \ref Jellyfin::ApiClient::baseUrl "baseUrl" property has been set, the slot \ref Jellyfin::ApiClient::authenticate "authenticate" should be called with an username and password.
|
||||
When authentication was successful, the property \ref Jellyfin::ApiClient::authenticated "authenticated" will be changed to true.
|
||||
Otherwise, the signal \ref Jellyfin::ApiClient::authenticationError "authenticationError" will be fired.
|
||||
|
||||
\note
|
||||
To show a list of available users, one can use the \ref Jellyfin::ViewModel::UserModel "UserModel" and \ref Jellyfin::ViewModel::PublicUsersLoader "PublicUsersLoader".
|
||||
However, this requires knowledge of the Loader and Model system, which will be explained in the next chapter \ref guide-apimodel-loader
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
\page guides Usage guides
|
||||
|
||||
\brief All guides intended for developers working with this library.
|
||||
|
||||
All guides assume familiarity with QML. If you aren't, [the free online QML book](https://www.qt.io/product/qt6/qml-book) is a great place to start.
|
||||
Note that this book is written for Qt 6 QML, while this project is using Qt 5 QML.
|
||||
The differences between those versions are not large, so it still is a valuable resource.
|
||||
|
||||
* \subpage guide-getting-started
|
||||
* \subpage guide-apimodel-loader
|
|
@ -1,11 +0,0 @@
|
|||
\mainpage
|
||||
|
||||
\note
|
||||
This page is aimed at developers. If you are interested in using a Jellyfin application, please visit the [main website](https://heartfin.github.io/).
|
||||
|
||||
This is the documentation page for the Jellyfin Qt library, a library for the [Qt framework](https://qt.io/) for interacting with the [Jellyfin media server](https://jellyfin.org).
|
||||
This project is not affiliated with the Jellyfin project.
|
||||
|
||||
If you are planning on using this projects, see \ref guides for usage instructions and the reference documentation in the sidebar.
|
||||
|
||||
If you'd like to contribute code, see \ref contributing for the process and style guidelines.
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* \namespace Jellyfin::DTO
|
||||
* \brief Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API
|
||||
*/
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* \namespace Jellyfin::ViewModel
|
||||
* \brief Contains all types exposed to QML
|
||||
*/
|
|
@ -41,7 +41,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include "dto/generalcommandtype.h"
|
||||
#include "credentialmanager.h"
|
||||
#include "model/controllablesession.h"
|
||||
#include "model/deviceprofile.h"
|
||||
#include "eventbus.h"
|
||||
|
||||
|
@ -97,8 +96,6 @@ public:
|
|||
explicit ApiClient(QObject *parent = nullptr);
|
||||
virtual ~ApiClient();
|
||||
Q_PROPERTY(QString baseUrl READ baseUrl WRITE setBaseUrl NOTIFY baseUrlChanged)
|
||||
Q_PROPERTY(QString appName READ appName WRITE setAppName NOTIFY appNameChanged)
|
||||
Q_PROPERTY(Jellyfin::Model::DeviceTypeClass::Value deviceType READ deviceType WRITE setDeviceType NOTIFY deviceTypeChanged)
|
||||
Q_PROPERTY(bool authenticated READ authenticated WRITE setAuthenticated NOTIFY authenticatedChanged)
|
||||
Q_PROPERTY(QString userId READ userId NOTIFY userIdChanged)
|
||||
Q_PROPERTY(QJsonObject deviceProfile READ deviceProfileJson NOTIFY deviceProfileChanged)
|
||||
|
@ -117,9 +114,6 @@ public:
|
|||
|
||||
bool authenticated() const;
|
||||
void setBaseUrl(const QString &url);
|
||||
void setAppName(const QString &appName);
|
||||
void setDeviceType(Model::DeviceType deviceType);
|
||||
|
||||
QNetworkReply *get(const QString &path, const QUrlQuery ¶ms = QUrlQuery());
|
||||
QNetworkReply *post(const QString &path, const QJsonDocument &data, const QUrlQuery ¶ms = QUrlQuery());
|
||||
QNetworkReply *post(const QString &path, const QByteArray &data = QByteArray(), const QUrlQuery ¶ms = QUrlQuery());
|
||||
|
@ -133,10 +127,8 @@ public:
|
|||
Q_ENUM(ApiError)
|
||||
|
||||
const QString &baseUrl() const;
|
||||
const QString &appName() const;
|
||||
const QString &userId() const;
|
||||
const QString &deviceId() const;
|
||||
Model::DeviceType deviceType() const;
|
||||
/**
|
||||
* @brief QML applications can set this type to indicate which commands they support.
|
||||
*
|
||||
|
@ -193,7 +185,6 @@ signals:
|
|||
|
||||
void authenticatedChanged(bool authenticated);
|
||||
void baseUrlChanged(const QString &baseUrl);
|
||||
void appNameChanged(const QString &newAppName);
|
||||
void settingsChanged();
|
||||
|
||||
/**
|
||||
|
@ -205,18 +196,9 @@ signals:
|
|||
void userIdChanged(QString userId);
|
||||
|
||||
void deviceProfileChanged();
|
||||
void deviceTypeChanged();
|
||||
|
||||
void supportedCommandsChanged();
|
||||
void onlineChanged();
|
||||
/**
|
||||
* @brief Emitted after submitQuickConnectCode succeeded
|
||||
*/
|
||||
void quickConnectAccepted();
|
||||
/**
|
||||
* @brief Emitted after submitQuickConnectCode failed
|
||||
*/
|
||||
void quickConnectRejected();
|
||||
|
||||
/**
|
||||
* @brief onUserDataChanged Emitted when the user data of an item is changed on the server.
|
||||
|
@ -241,7 +223,6 @@ public slots:
|
|||
*/
|
||||
void setupConnection();
|
||||
void authenticate(QString username, QString password, bool storeCredentials = false);
|
||||
void submitQuickConnectCode(const QString &code);
|
||||
|
||||
/**
|
||||
* @brief Logs the user out and clears the session.
|
||||
|
|
|
@ -239,33 +239,17 @@ bool setRequestStartIndex(P ¶meters, int startIndex) {
|
|||
#ifndef JELLYFIN_APIMODEL_CPP
|
||||
extern template bool setRequestStartIndex(Loader::GetUserViewsParams ¶ms, int startIndex);
|
||||
extern template void setRequestLimit(Loader::GetUserViewsParams ¶ms, int limit);
|
||||
|
||||
extern template QList<DTO::BaseItemDto> extractRecords(const DTO::BaseItemDtoQueryResult &result);
|
||||
extern template int extractTotalRecordCount(const DTO::BaseItemDtoQueryResult &result);
|
||||
extern template QList<DTO::BaseItemDto> extractRecords(const QList<DTO::BaseItemDto> &result);
|
||||
extern template int extractTotalRecordCount(const QList<DTO::BaseItemDto> &result);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetLatestMediaParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetLatestMediaParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetItemsByUserIdParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetItemsByUserIdParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetResumeItemsParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetResumeItemsParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetPublicUsersParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetPublicUsersParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetNextUpParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetNextUpParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetAlbumArtistsParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetAlbumArtistsParams ¶ms, int offset);
|
||||
|
||||
extern template void setRequestLimit(Loader::GetLiveTvChannelsParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetLiveTvChannelsParams ¶ms, int offset);
|
||||
|
||||
extern template QList<DTO::UserDto> extractRecords(const QList<DTO::UserDto> &result);
|
||||
extern template int extractTotalRecordCount(const QList<DTO::UserDto> &result);
|
||||
#endif
|
||||
|
@ -499,10 +483,6 @@ public:
|
|||
this->endResetModel();
|
||||
}
|
||||
|
||||
const QList<QSharedPointer<T>> &toList() {
|
||||
return m_array;
|
||||
}
|
||||
|
||||
// From AbstractListModel, gets implemented in ApiModel<T>
|
||||
//virtual QHash<int, QByteArray> roleNames() const override = 0;
|
||||
/*virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override = 0;*/
|
||||
|
@ -529,7 +509,6 @@ public:
|
|||
BaseApiModel::setLoader(newLoader);
|
||||
BaseApiModel::disconnectOldLoader(m_loader);
|
||||
m_loader = castedLoader;
|
||||
reload();
|
||||
} else {
|
||||
qWarning() << "Somehow set a BaseModelLoader on ApiModel instead of a ModelLoader<T>";
|
||||
}
|
||||
|
|
|
@ -48,14 +48,7 @@ namespace DTO {
|
|||
|
||||
class AccessSchedule {
|
||||
public:
|
||||
AccessSchedule(
|
||||
qint32 jellyfinId,
|
||||
QString userId,
|
||||
DynamicDayOfWeek dayOfWeek,
|
||||
double startHour,
|
||||
double endHour
|
||||
);
|
||||
|
||||
AccessSchedule();
|
||||
AccessSchedule(const AccessSchedule &other);
|
||||
|
||||
/**
|
||||
|
@ -116,13 +109,8 @@ protected:
|
|||
DynamicDayOfWeek m_dayOfWeek;
|
||||
double m_startHour;
|
||||
double m_endHour;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AccessSchedule::fromJson();
|
||||
AccessSchedule();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,13 +49,7 @@ namespace DTO {
|
|||
|
||||
class ActivityLogEntry {
|
||||
public:
|
||||
ActivityLogEntry(
|
||||
qint64 jellyfinId,
|
||||
QDateTime date,
|
||||
QString userId,
|
||||
LogLevel severity
|
||||
);
|
||||
|
||||
ActivityLogEntry();
|
||||
ActivityLogEntry(const ActivityLogEntry &other);
|
||||
|
||||
/**
|
||||
|
@ -178,13 +172,8 @@ protected:
|
|||
QString m_userId;
|
||||
QString m_userPrimaryImageTag;
|
||||
LogLevel m_severity;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ActivityLogEntry::fromJson();
|
||||
ActivityLogEntry();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,11 +49,7 @@ namespace DTO {
|
|||
|
||||
class ActivityLogEntryQueryResult {
|
||||
public:
|
||||
ActivityLogEntryQueryResult(
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
);
|
||||
|
||||
ActivityLogEntryQueryResult();
|
||||
ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other);
|
||||
|
||||
/**
|
||||
|
@ -100,13 +96,8 @@ protected:
|
|||
QList<ActivityLogEntry> m_items;
|
||||
qint32 m_totalRecordCount;
|
||||
qint32 m_startIndex;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ActivityLogEntryQueryResult::fromJson();
|
||||
ActivityLogEntryQueryResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class AddVirtualFolderDto {
|
||||
public:
|
||||
AddVirtualFolderDto(
|
||||
QSharedPointer<LibraryOptions> libraryOptions
|
||||
);
|
||||
|
||||
AddVirtualFolderDto();
|
||||
AddVirtualFolderDto(const AddVirtualFolderDto &other);
|
||||
|
||||
/**
|
||||
|
@ -72,13 +69,8 @@ public:
|
|||
|
||||
protected:
|
||||
QSharedPointer<LibraryOptions> m_libraryOptions = QSharedPointer<LibraryOptions>();
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AddVirtualFolderDto::fromJson();
|
||||
AddVirtualFolderDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,10 +51,7 @@ namespace DTO {
|
|||
|
||||
class AlbumInfo {
|
||||
public:
|
||||
AlbumInfo(
|
||||
bool isAutomated
|
||||
);
|
||||
|
||||
AlbumInfo();
|
||||
AlbumInfo(const AlbumInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -203,13 +200,8 @@ protected:
|
|||
QStringList m_albumArtists;
|
||||
QJsonObject m_artistProviderIds;
|
||||
QList<SongInfo> m_songInfos;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AlbumInfo::fromJson();
|
||||
AlbumInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,12 +49,7 @@ namespace DTO {
|
|||
|
||||
class AlbumInfoRemoteSearchQuery {
|
||||
public:
|
||||
AlbumInfoRemoteSearchQuery(
|
||||
QSharedPointer<AlbumInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
);
|
||||
|
||||
AlbumInfoRemoteSearchQuery();
|
||||
AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other);
|
||||
|
||||
/**
|
||||
|
@ -103,13 +98,8 @@ protected:
|
|||
QString m_itemId;
|
||||
QString m_searchProviderName;
|
||||
bool m_includeDisabledProviders;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AlbumInfoRemoteSearchQuery::fromJson();
|
||||
AlbumInfoRemoteSearchQuery();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,12 +48,7 @@ namespace DTO {
|
|||
|
||||
class AllThemeMediaResult {
|
||||
public:
|
||||
AllThemeMediaResult(
|
||||
QSharedPointer<ThemeMediaResult> themeVideosResult,
|
||||
QSharedPointer<ThemeMediaResult> themeSongsResult,
|
||||
QSharedPointer<ThemeMediaResult> soundtrackSongsResult
|
||||
);
|
||||
|
||||
AllThemeMediaResult();
|
||||
AllThemeMediaResult(const AllThemeMediaResult &other);
|
||||
|
||||
/**
|
||||
|
@ -86,13 +81,8 @@ protected:
|
|||
QSharedPointer<ThemeMediaResult> m_themeVideosResult = QSharedPointer<ThemeMediaResult>();
|
||||
QSharedPointer<ThemeMediaResult> m_themeSongsResult = QSharedPointer<ThemeMediaResult>();
|
||||
QSharedPointer<ThemeMediaResult> m_soundtrackSongsResult = QSharedPointer<ThemeMediaResult>();
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AllThemeMediaResult::fromJson();
|
||||
AllThemeMediaResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,10 +51,7 @@ namespace DTO {
|
|||
|
||||
class ArtistInfo {
|
||||
public:
|
||||
ArtistInfo(
|
||||
bool isAutomated
|
||||
);
|
||||
|
||||
ArtistInfo();
|
||||
ArtistInfo(const ArtistInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -179,13 +176,8 @@ protected:
|
|||
QDateTime m_premiereDate;
|
||||
bool m_isAutomated;
|
||||
QList<SongInfo> m_songInfos;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ArtistInfo::fromJson();
|
||||
ArtistInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,12 +49,7 @@ namespace DTO {
|
|||
|
||||
class ArtistInfoRemoteSearchQuery {
|
||||
public:
|
||||
ArtistInfoRemoteSearchQuery(
|
||||
QSharedPointer<ArtistInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
);
|
||||
|
||||
ArtistInfoRemoteSearchQuery();
|
||||
ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other);
|
||||
|
||||
/**
|
||||
|
@ -103,13 +98,8 @@ protected:
|
|||
QString m_itemId;
|
||||
QString m_searchProviderName;
|
||||
bool m_includeDisabledProviders;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ArtistInfoRemoteSearchQuery::fromJson();
|
||||
ArtistInfoRemoteSearchQuery();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class AuthenticateUserByName {
|
||||
public: AuthenticateUserByName();
|
||||
public:
|
||||
AuthenticateUserByName();
|
||||
AuthenticateUserByName(const AuthenticateUserByName &other);
|
||||
|
||||
/**
|
||||
|
@ -97,11 +98,8 @@ protected:
|
|||
QString m_username;
|
||||
QString m_pw;
|
||||
QString m_password;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,14 +48,7 @@ namespace DTO {
|
|||
|
||||
class AuthenticationInfo {
|
||||
public:
|
||||
AuthenticationInfo(
|
||||
qint64 jellyfinId,
|
||||
QString userId,
|
||||
bool isActive,
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateLastActivity
|
||||
);
|
||||
|
||||
AuthenticationInfo();
|
||||
AuthenticationInfo(const AuthenticationInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -196,13 +189,8 @@ protected:
|
|||
QDateTime m_dateRevoked;
|
||||
QDateTime m_dateLastActivity;
|
||||
QString m_userName;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AuthenticationInfo::fromJson();
|
||||
AuthenticationInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,11 +49,7 @@ namespace DTO {
|
|||
|
||||
class AuthenticationInfoQueryResult {
|
||||
public:
|
||||
AuthenticationInfoQueryResult(
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
);
|
||||
|
||||
AuthenticationInfoQueryResult();
|
||||
AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other);
|
||||
|
||||
/**
|
||||
|
@ -100,13 +96,8 @@ protected:
|
|||
QList<AuthenticationInfo> m_items;
|
||||
qint32 m_totalRecordCount;
|
||||
qint32 m_startIndex;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AuthenticationInfoQueryResult::fromJson();
|
||||
AuthenticationInfoQueryResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -50,11 +50,7 @@ namespace DTO {
|
|||
|
||||
class AuthenticationResult {
|
||||
public:
|
||||
AuthenticationResult(
|
||||
QSharedPointer<UserDto> user,
|
||||
QSharedPointer<SessionInfo> sessionInfo
|
||||
);
|
||||
|
||||
AuthenticationResult();
|
||||
AuthenticationResult(const AuthenticationResult &other);
|
||||
|
||||
/**
|
||||
|
@ -97,13 +93,8 @@ protected:
|
|||
QSharedPointer<SessionInfo> m_sessionInfo = QSharedPointer<SessionInfo>();
|
||||
QString m_accessToken;
|
||||
QString m_serverId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing AuthenticationResult::fromJson();
|
||||
AuthenticationResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,15 +51,7 @@ namespace DTO {
|
|||
|
||||
class BaseItem {
|
||||
public:
|
||||
BaseItem(
|
||||
QDateTime dateLastSaved,
|
||||
bool isHD,
|
||||
bool isShortcut,
|
||||
qint32 width,
|
||||
qint32 height,
|
||||
bool supportsExternalTransfer
|
||||
);
|
||||
|
||||
BaseItem();
|
||||
BaseItem(const BaseItem &other);
|
||||
|
||||
/**
|
||||
|
@ -154,13 +146,8 @@ protected:
|
|||
qint32 m_height;
|
||||
QStringList m_extraIds;
|
||||
bool m_supportsExternalTransfer;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BaseItem::fromJson();
|
||||
BaseItem();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -69,20 +69,7 @@ namespace DTO {
|
|||
|
||||
class BaseItemDto {
|
||||
public:
|
||||
BaseItemDto(
|
||||
QString jellyfinId,
|
||||
Video3DFormat video3DFormat,
|
||||
PlayAccess playAccess,
|
||||
QSharedPointer<UserItemDataDto> userData,
|
||||
VideoType videoType,
|
||||
LocationType locationType,
|
||||
IsoType isoType,
|
||||
ImageOrientation imageOrientation,
|
||||
ChannelType channelType,
|
||||
ProgramAudio audio,
|
||||
QSharedPointer<BaseItemDto> currentProgram
|
||||
);
|
||||
|
||||
BaseItemDto();
|
||||
BaseItemDto(const BaseItemDto &other);
|
||||
|
||||
/**
|
||||
|
@ -1713,13 +1700,8 @@ protected:
|
|||
std::optional<bool> m_isPremiere = std::nullopt;
|
||||
QString m_timerId;
|
||||
QSharedPointer<BaseItemDto> m_currentProgram = QSharedPointer<BaseItemDto>();
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BaseItemDto::fromJson();
|
||||
BaseItemDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,11 +49,7 @@ namespace DTO {
|
|||
|
||||
class BaseItemDtoQueryResult {
|
||||
public:
|
||||
BaseItemDtoQueryResult(
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
);
|
||||
|
||||
BaseItemDtoQueryResult();
|
||||
BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other);
|
||||
|
||||
/**
|
||||
|
@ -100,13 +96,8 @@ protected:
|
|||
QList<BaseItemDto> m_items;
|
||||
qint32 m_totalRecordCount;
|
||||
qint32 m_startIndex;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BaseItemDtoQueryResult::fromJson();
|
||||
BaseItemDtoQueryResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class BaseItemPerson {
|
||||
public: BaseItemPerson();
|
||||
public:
|
||||
BaseItemPerson();
|
||||
BaseItemPerson(const BaseItemPerson &other);
|
||||
|
||||
/**
|
||||
|
@ -133,11 +134,8 @@ protected:
|
|||
QString m_type;
|
||||
QString m_primaryImageTag;
|
||||
QJsonObject m_imageBlurHashes;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class BookInfo {
|
||||
public:
|
||||
BookInfo(
|
||||
bool isAutomated
|
||||
);
|
||||
|
||||
BookInfo();
|
||||
BookInfo(const BookInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -176,13 +173,8 @@ protected:
|
|||
QDateTime m_premiereDate;
|
||||
bool m_isAutomated;
|
||||
QString m_seriesName;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BookInfo::fromJson();
|
||||
BookInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,12 +49,7 @@ namespace DTO {
|
|||
|
||||
class BookInfoRemoteSearchQuery {
|
||||
public:
|
||||
BookInfoRemoteSearchQuery(
|
||||
QSharedPointer<BookInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
);
|
||||
|
||||
BookInfoRemoteSearchQuery();
|
||||
BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other);
|
||||
|
||||
/**
|
||||
|
@ -103,13 +98,8 @@ protected:
|
|||
QString m_itemId;
|
||||
QString m_searchProviderName;
|
||||
bool m_includeDisabledProviders;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BookInfoRemoteSearchQuery::fromJson();
|
||||
BookInfoRemoteSearchQuery();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class BoxSetInfo {
|
||||
public:
|
||||
BoxSetInfo(
|
||||
bool isAutomated
|
||||
);
|
||||
|
||||
BoxSetInfo();
|
||||
BoxSetInfo(const BoxSetInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -168,13 +165,8 @@ protected:
|
|||
std::optional<qint32> m_parentIndexNumber = std::nullopt;
|
||||
QDateTime m_premiereDate;
|
||||
bool m_isAutomated;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BoxSetInfo::fromJson();
|
||||
BoxSetInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,12 +49,7 @@ namespace DTO {
|
|||
|
||||
class BoxSetInfoRemoteSearchQuery {
|
||||
public:
|
||||
BoxSetInfoRemoteSearchQuery(
|
||||
QSharedPointer<BoxSetInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
);
|
||||
|
||||
BoxSetInfoRemoteSearchQuery();
|
||||
BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other);
|
||||
|
||||
/**
|
||||
|
@ -103,13 +98,8 @@ protected:
|
|||
QString m_itemId;
|
||||
QString m_searchProviderName;
|
||||
bool m_includeDisabledProviders;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BoxSetInfoRemoteSearchQuery::fromJson();
|
||||
BoxSetInfoRemoteSearchQuery();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class BrandingOptions {
|
||||
public: BrandingOptions();
|
||||
public:
|
||||
BrandingOptions();
|
||||
BrandingOptions(const BrandingOptions &other);
|
||||
|
||||
/**
|
||||
|
@ -85,11 +86,8 @@ public: BrandingOptions();
|
|||
protected:
|
||||
QString m_loginDisclaimer;
|
||||
QString m_customCss;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,13 +48,7 @@ namespace DTO {
|
|||
|
||||
class BufferRequestDto {
|
||||
public:
|
||||
BufferRequestDto(
|
||||
QDateTime when,
|
||||
qint64 positionTicks,
|
||||
bool isPlaying,
|
||||
QString playlistItemId
|
||||
);
|
||||
|
||||
BufferRequestDto();
|
||||
BufferRequestDto(const BufferRequestDto &other);
|
||||
|
||||
/**
|
||||
|
@ -109,13 +103,8 @@ protected:
|
|||
qint64 m_positionTicks;
|
||||
bool m_isPlaying;
|
||||
QString m_playlistItemId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BufferRequestDto::fromJson();
|
||||
BufferRequestDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -52,14 +52,7 @@ namespace DTO {
|
|||
|
||||
class ChannelFeatures {
|
||||
public:
|
||||
ChannelFeatures(
|
||||
bool canSearch,
|
||||
bool supportsSortOrderToggle,
|
||||
bool supportsLatestMedia,
|
||||
bool canFilter,
|
||||
bool supportsContentDownloading
|
||||
);
|
||||
|
||||
ChannelFeatures();
|
||||
ChannelFeatures(const ChannelFeatures &other);
|
||||
|
||||
/**
|
||||
|
@ -208,13 +201,8 @@ protected:
|
|||
bool m_supportsLatestMedia;
|
||||
bool m_canFilter;
|
||||
bool m_supportsContentDownloading;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ChannelFeatures::fromJson();
|
||||
ChannelFeatures();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,7 +51,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class ChannelMappingOptionsDto {
|
||||
public: ChannelMappingOptionsDto();
|
||||
public:
|
||||
ChannelMappingOptionsDto();
|
||||
ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other);
|
||||
|
||||
/**
|
||||
|
@ -114,11 +115,8 @@ protected:
|
|||
QList<NameIdPair> m_providerChannels;
|
||||
QList<NameValuePair> m_mappings;
|
||||
QString m_providerName;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,11 +48,7 @@ namespace DTO {
|
|||
|
||||
class ChapterInfo {
|
||||
public:
|
||||
ChapterInfo(
|
||||
qint64 startPositionTicks,
|
||||
QDateTime imageDateModified
|
||||
);
|
||||
|
||||
ChapterInfo();
|
||||
ChapterInfo(const ChapterInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -115,13 +111,8 @@ protected:
|
|||
QString m_imagePath;
|
||||
QDateTime m_imageDateModified;
|
||||
QString m_imageTag;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ChapterInfo::fromJson();
|
||||
ChapterInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -52,14 +52,7 @@ namespace DTO {
|
|||
|
||||
class ClientCapabilities {
|
||||
public:
|
||||
ClientCapabilities(
|
||||
bool supportsMediaControl,
|
||||
bool supportsContentUploading,
|
||||
bool supportsPersistentIdentifier,
|
||||
bool supportsSync,
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
);
|
||||
|
||||
ClientCapabilities();
|
||||
ClientCapabilities(const ClientCapabilities &other);
|
||||
|
||||
/**
|
||||
|
@ -144,13 +137,8 @@ protected:
|
|||
QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
|
||||
QString m_appStoreUrl;
|
||||
QString m_iconUrl;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ClientCapabilities::fromJson();
|
||||
ClientCapabilities();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -52,14 +52,7 @@ namespace DTO {
|
|||
|
||||
class ClientCapabilitiesDto {
|
||||
public:
|
||||
ClientCapabilitiesDto(
|
||||
bool supportsMediaControl,
|
||||
bool supportsContentUploading,
|
||||
bool supportsPersistentIdentifier,
|
||||
bool supportsSync,
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
);
|
||||
|
||||
ClientCapabilitiesDto();
|
||||
ClientCapabilitiesDto(const ClientCapabilitiesDto &other);
|
||||
|
||||
/**
|
||||
|
@ -180,13 +173,8 @@ protected:
|
|||
QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
|
||||
QString m_appStoreUrl;
|
||||
QString m_iconUrl;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ClientCapabilitiesDto::fromJson();
|
||||
ClientCapabilitiesDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,10 +51,7 @@ namespace DTO {
|
|||
|
||||
class CodecProfile {
|
||||
public:
|
||||
CodecProfile(
|
||||
CodecType type
|
||||
);
|
||||
|
||||
CodecProfile();
|
||||
CodecProfile(const CodecProfile &other);
|
||||
|
||||
/**
|
||||
|
@ -107,13 +104,8 @@ protected:
|
|||
QList<ProfileCondition> m_applyConditions;
|
||||
QString m_codec;
|
||||
QString m_container;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing CodecProfile::fromJson();
|
||||
CodecProfile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class CollectionCreationResult {
|
||||
public:
|
||||
CollectionCreationResult(
|
||||
QString jellyfinId
|
||||
);
|
||||
|
||||
CollectionCreationResult();
|
||||
CollectionCreationResult(const CollectionCreationResult &other);
|
||||
|
||||
/**
|
||||
|
@ -71,13 +68,8 @@ public:
|
|||
|
||||
protected:
|
||||
QString m_jellyfinId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing CollectionCreationResult::fromJson();
|
||||
CollectionCreationResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,11 +48,7 @@ namespace DTO {
|
|||
|
||||
class ConfigurationPageInfo {
|
||||
public:
|
||||
ConfigurationPageInfo(
|
||||
bool enableInMainMenu,
|
||||
ConfigurationPageType configurationPageType
|
||||
);
|
||||
|
||||
ConfigurationPageInfo();
|
||||
ConfigurationPageInfo(const ConfigurationPageInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -143,13 +139,8 @@ protected:
|
|||
QString m_displayName;
|
||||
ConfigurationPageType m_configurationPageType;
|
||||
QString m_pluginId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ConfigurationPageInfo::fromJson();
|
||||
ConfigurationPageInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,10 +51,7 @@ namespace DTO {
|
|||
|
||||
class ContainerProfile {
|
||||
public:
|
||||
ContainerProfile(
|
||||
DlnaProfileType type
|
||||
);
|
||||
|
||||
ContainerProfile();
|
||||
ContainerProfile(const ContainerProfile &other);
|
||||
|
||||
/**
|
||||
|
@ -91,13 +88,8 @@ protected:
|
|||
DlnaProfileType m_type;
|
||||
QList<ProfileCondition> m_conditions;
|
||||
QString m_container;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ContainerProfile::fromJson();
|
||||
ContainerProfile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class ControlResponse {
|
||||
public:
|
||||
ControlResponse(
|
||||
bool isSuccessful
|
||||
);
|
||||
|
||||
ControlResponse();
|
||||
ControlResponse(const ControlResponse &other);
|
||||
|
||||
/**
|
||||
|
@ -87,13 +84,8 @@ protected:
|
|||
QJsonObject m_headers;
|
||||
QString m_xml;
|
||||
bool m_isSuccessful;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ControlResponse::fromJson();
|
||||
ControlResponse();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class CountryInfo {
|
||||
public: CountryInfo();
|
||||
public:
|
||||
CountryInfo();
|
||||
CountryInfo(const CountryInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -109,11 +110,8 @@ protected:
|
|||
QString m_displayName;
|
||||
QString m_twoLetterISORegionName;
|
||||
QString m_threeLetterISORegionName;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,7 +48,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class CreatePlaylistDto {
|
||||
public: CreatePlaylistDto();
|
||||
public:
|
||||
CreatePlaylistDto();
|
||||
CreatePlaylistDto(const CreatePlaylistDto &other);
|
||||
|
||||
/**
|
||||
|
@ -111,11 +112,8 @@ protected:
|
|||
QStringList m_ids;
|
||||
QString m_userId;
|
||||
QString m_mediaType;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class CreateUserByName {
|
||||
public: CreateUserByName();
|
||||
public:
|
||||
CreateUserByName();
|
||||
CreateUserByName(const CreateUserByName &other);
|
||||
|
||||
/**
|
||||
|
@ -85,11 +86,8 @@ public: CreateUserByName();
|
|||
protected:
|
||||
QString m_name;
|
||||
QString m_password;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,7 +48,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class CultureDto {
|
||||
public: CultureDto();
|
||||
public:
|
||||
CultureDto();
|
||||
CultureDto(const CultureDto &other);
|
||||
|
||||
/**
|
||||
|
@ -119,11 +120,8 @@ protected:
|
|||
QString m_twoLetterISOLanguageName;
|
||||
QString m_threeLetterISOLanguageName;
|
||||
QStringList m_threeLetterISOLanguageNames;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class DefaultDirectoryBrowserInfoDto {
|
||||
public: DefaultDirectoryBrowserInfoDto();
|
||||
public:
|
||||
DefaultDirectoryBrowserInfoDto();
|
||||
DefaultDirectoryBrowserInfoDto(const DefaultDirectoryBrowserInfoDto &other);
|
||||
|
||||
/**
|
||||
|
@ -73,11 +74,8 @@ public: DefaultDirectoryBrowserInfoDto();
|
|||
|
||||
protected:
|
||||
QString m_path;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,7 +49,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class DeviceIdentification {
|
||||
public: DeviceIdentification();
|
||||
public:
|
||||
DeviceIdentification();
|
||||
DeviceIdentification(const DeviceIdentification &other);
|
||||
|
||||
/**
|
||||
|
@ -172,11 +173,8 @@ protected:
|
|||
QString m_manufacturer;
|
||||
QString m_manufacturerUrl;
|
||||
QList<HttpHeaderInfo> m_headers;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -50,12 +50,7 @@ namespace DTO {
|
|||
|
||||
class DeviceInfo {
|
||||
public:
|
||||
DeviceInfo(
|
||||
QString lastUserId,
|
||||
QDateTime dateLastActivity,
|
||||
QSharedPointer<ClientCapabilities> capabilities
|
||||
);
|
||||
|
||||
DeviceInfo();
|
||||
DeviceInfo(const DeviceInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -160,13 +155,8 @@ protected:
|
|||
QDateTime m_dateLastActivity;
|
||||
QSharedPointer<ClientCapabilities> m_capabilities = QSharedPointer<ClientCapabilities>();
|
||||
QString m_iconUrl;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DeviceInfo::fromJson();
|
||||
DeviceInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,11 +49,7 @@ namespace DTO {
|
|||
|
||||
class DeviceInfoQueryResult {
|
||||
public:
|
||||
DeviceInfoQueryResult(
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
);
|
||||
|
||||
DeviceInfoQueryResult();
|
||||
DeviceInfoQueryResult(const DeviceInfoQueryResult &other);
|
||||
|
||||
/**
|
||||
|
@ -100,13 +96,8 @@ protected:
|
|||
QList<DeviceInfo> m_items;
|
||||
qint32 m_totalRecordCount;
|
||||
qint32 m_startIndex;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DeviceInfoQueryResult::fromJson();
|
||||
DeviceInfoQueryResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class DeviceOptions {
|
||||
public: DeviceOptions();
|
||||
public:
|
||||
DeviceOptions();
|
||||
DeviceOptions(const DeviceOptions &other);
|
||||
|
||||
/**
|
||||
|
@ -69,11 +70,8 @@ public: DeviceOptions();
|
|||
|
||||
protected:
|
||||
QString m_customName;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -58,20 +58,7 @@ namespace DTO {
|
|||
|
||||
class DeviceProfile {
|
||||
public:
|
||||
DeviceProfile(
|
||||
QSharedPointer<DeviceIdentification> identification,
|
||||
bool enableAlbumArtInDidl,
|
||||
bool enableSingleAlbumArtLimit,
|
||||
bool enableSingleSubtitleLimit,
|
||||
qint32 maxAlbumArtWidth,
|
||||
qint32 maxAlbumArtHeight,
|
||||
qint32 timelineOffsetSeconds,
|
||||
bool requiresPlainVideoItems,
|
||||
bool requiresPlainFolders,
|
||||
bool enableMSMediaReceiverRegistrar,
|
||||
bool ignoreTranscodeByteRangeRequests
|
||||
);
|
||||
|
||||
DeviceProfile();
|
||||
DeviceProfile(const DeviceProfile &other);
|
||||
|
||||
/**
|
||||
|
@ -528,13 +515,8 @@ protected:
|
|||
QList<CodecProfile> m_codecProfiles;
|
||||
QList<ResponseProfile> m_responseProfiles;
|
||||
QList<SubtitleProfile> m_subtitleProfiles;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DeviceProfile::fromJson();
|
||||
DeviceProfile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class DeviceProfileInfo {
|
||||
public:
|
||||
DeviceProfileInfo(
|
||||
DeviceProfileType type
|
||||
);
|
||||
|
||||
DeviceProfileInfo();
|
||||
DeviceProfileInfo(const DeviceProfileInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -96,13 +93,8 @@ protected:
|
|||
QString m_jellyfinId;
|
||||
QString m_name;
|
||||
DeviceProfileType m_type;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DeviceProfileInfo::fromJson();
|
||||
DeviceProfileInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class DirectPlayProfile {
|
||||
public:
|
||||
DirectPlayProfile(
|
||||
DlnaProfileType type
|
||||
);
|
||||
|
||||
DirectPlayProfile();
|
||||
DirectPlayProfile(const DirectPlayProfile &other);
|
||||
|
||||
/**
|
||||
|
@ -96,13 +93,8 @@ protected:
|
|||
QString m_audioCodec;
|
||||
QString m_videoCodec;
|
||||
DlnaProfileType m_type;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DirectPlayProfile::fromJson();
|
||||
DirectPlayProfile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,17 +49,7 @@ namespace DTO {
|
|||
|
||||
class DisplayPreferencesDto {
|
||||
public:
|
||||
DisplayPreferencesDto(
|
||||
bool rememberIndexing,
|
||||
qint32 primaryImageHeight,
|
||||
qint32 primaryImageWidth,
|
||||
ScrollDirection scrollDirection,
|
||||
bool showBackdrop,
|
||||
bool rememberSorting,
|
||||
SortOrder sortOrder,
|
||||
bool showSidebar
|
||||
);
|
||||
|
||||
DisplayPreferencesDto();
|
||||
DisplayPreferencesDto(const DisplayPreferencesDto &other);
|
||||
|
||||
/**
|
||||
|
@ -218,13 +208,8 @@ protected:
|
|||
SortOrder m_sortOrder;
|
||||
bool m_showSidebar;
|
||||
QString m_client;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing DisplayPreferencesDto::fromJson();
|
||||
DisplayPreferencesDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,11 +46,7 @@ namespace DTO {
|
|||
|
||||
class EndPointInfo {
|
||||
public:
|
||||
EndPointInfo(
|
||||
bool isLocal,
|
||||
bool isInNetwork
|
||||
);
|
||||
|
||||
EndPointInfo();
|
||||
EndPointInfo(const EndPointInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -77,13 +73,8 @@ public:
|
|||
protected:
|
||||
bool m_isLocal;
|
||||
bool m_isInNetwork;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing EndPointInfo::fromJson();
|
||||
EndPointInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class ExternalIdInfo {
|
||||
public:
|
||||
ExternalIdInfo(
|
||||
ExternalIdMediaType type
|
||||
);
|
||||
|
||||
ExternalIdInfo();
|
||||
ExternalIdInfo(const ExternalIdInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -108,13 +105,8 @@ protected:
|
|||
QString m_key;
|
||||
ExternalIdMediaType m_type;
|
||||
QString m_urlFormatString;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ExternalIdInfo::fromJson();
|
||||
ExternalIdInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class ExternalUrl {
|
||||
public: ExternalUrl();
|
||||
public:
|
||||
ExternalUrl();
|
||||
ExternalUrl(const ExternalUrl &other);
|
||||
|
||||
/**
|
||||
|
@ -85,11 +86,8 @@ public: ExternalUrl();
|
|||
protected:
|
||||
QString m_name;
|
||||
QString m_url;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class FileSystemEntryInfo {
|
||||
public:
|
||||
FileSystemEntryInfo(
|
||||
FileSystemEntryType type
|
||||
);
|
||||
|
||||
FileSystemEntryInfo();
|
||||
FileSystemEntryInfo(const FileSystemEntryInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -96,13 +93,8 @@ protected:
|
|||
QString m_name;
|
||||
QString m_path;
|
||||
FileSystemEntryType m_type;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing FileSystemEntryInfo::fromJson();
|
||||
FileSystemEntryInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,12 +48,7 @@ namespace DTO {
|
|||
|
||||
class FontFile {
|
||||
public:
|
||||
FontFile(
|
||||
qint64 size,
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateModified
|
||||
);
|
||||
|
||||
FontFile();
|
||||
FontFile(const FontFile &other);
|
||||
|
||||
/**
|
||||
|
@ -110,13 +105,8 @@ protected:
|
|||
qint64 m_size;
|
||||
QDateTime m_dateCreated;
|
||||
QDateTime m_dateModified;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing FontFile::fromJson();
|
||||
FontFile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class ForgotPasswordDto {
|
||||
public:
|
||||
ForgotPasswordDto(
|
||||
QString enteredUsername
|
||||
);
|
||||
|
||||
ForgotPasswordDto();
|
||||
ForgotPasswordDto(const ForgotPasswordDto &other);
|
||||
|
||||
/**
|
||||
|
@ -75,13 +72,8 @@ public:
|
|||
|
||||
protected:
|
||||
QString m_enteredUsername;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ForgotPasswordDto::fromJson();
|
||||
ForgotPasswordDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,10 +49,7 @@ namespace DTO {
|
|||
|
||||
class ForgotPasswordResult {
|
||||
public:
|
||||
ForgotPasswordResult(
|
||||
ForgotPasswordAction action
|
||||
);
|
||||
|
||||
ForgotPasswordResult();
|
||||
ForgotPasswordResult(const ForgotPasswordResult &other);
|
||||
|
||||
/**
|
||||
|
@ -97,13 +94,8 @@ protected:
|
|||
ForgotPasswordAction m_action;
|
||||
QString m_pinFile;
|
||||
QDateTime m_pinExpirationDate;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ForgotPasswordResult::fromJson();
|
||||
ForgotPasswordResult();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,11 +48,7 @@ namespace DTO {
|
|||
|
||||
class GeneralCommand {
|
||||
public:
|
||||
GeneralCommand(
|
||||
GeneralCommandType name,
|
||||
QString controllingUserId
|
||||
);
|
||||
|
||||
GeneralCommand();
|
||||
GeneralCommand(const GeneralCommand &other);
|
||||
|
||||
/**
|
||||
|
@ -87,13 +83,8 @@ protected:
|
|||
GeneralCommandType m_name;
|
||||
QString m_controllingUserId;
|
||||
QJsonObject m_arguments;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing GeneralCommand::fromJson();
|
||||
GeneralCommand();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -52,12 +52,7 @@ namespace DTO {
|
|||
|
||||
class GetProgramsDto {
|
||||
public:
|
||||
GetProgramsDto(
|
||||
QString userId,
|
||||
bool enableTotalRecordCount,
|
||||
QString librarySeriesId
|
||||
);
|
||||
|
||||
GetProgramsDto();
|
||||
GetProgramsDto(const GetProgramsDto &other);
|
||||
|
||||
/**
|
||||
|
@ -432,13 +427,8 @@ protected:
|
|||
QString m_seriesTimerId;
|
||||
QString m_librarySeriesId;
|
||||
QList<ItemFields> m_fields;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing GetProgramsDto::fromJson();
|
||||
GetProgramsDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,12 +51,7 @@ namespace DTO {
|
|||
|
||||
class GroupInfoDto {
|
||||
public:
|
||||
GroupInfoDto(
|
||||
QString groupId,
|
||||
GroupStateType state,
|
||||
QDateTime lastUpdatedAt
|
||||
);
|
||||
|
||||
GroupInfoDto();
|
||||
GroupInfoDto(const GroupInfoDto &other);
|
||||
|
||||
/**
|
||||
|
@ -121,13 +116,8 @@ protected:
|
|||
GroupStateType m_state;
|
||||
QStringList m_participants;
|
||||
QDateTime m_lastUpdatedAt;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing GroupInfoDto::fromJson();
|
||||
GroupInfoDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,11 +47,7 @@ namespace DTO {
|
|||
|
||||
class GuideInfo {
|
||||
public:
|
||||
GuideInfo(
|
||||
QDateTime startDate,
|
||||
QDateTime endDate
|
||||
);
|
||||
|
||||
GuideInfo();
|
||||
GuideInfo(const GuideInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -86,13 +82,8 @@ public:
|
|||
protected:
|
||||
QDateTime m_startDate;
|
||||
QDateTime m_endDate;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing GuideInfo::fromJson();
|
||||
GuideInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class HttpHeaderInfo {
|
||||
public:
|
||||
HttpHeaderInfo(
|
||||
HeaderMatchType match
|
||||
);
|
||||
|
||||
HttpHeaderInfo();
|
||||
HttpHeaderInfo(const HttpHeaderInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -88,13 +85,8 @@ protected:
|
|||
QString m_name;
|
||||
QString m_value;
|
||||
HeaderMatchType m_match;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing HttpHeaderInfo::fromJson();
|
||||
HttpHeaderInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,10 +46,7 @@ namespace DTO {
|
|||
|
||||
class IgnoreWaitRequestDto {
|
||||
public:
|
||||
IgnoreWaitRequestDto(
|
||||
bool ignoreWait
|
||||
);
|
||||
|
||||
IgnoreWaitRequestDto();
|
||||
IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other);
|
||||
|
||||
/**
|
||||
|
@ -74,13 +71,8 @@ public:
|
|||
|
||||
protected:
|
||||
bool m_ignoreWait;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing IgnoreWaitRequestDto::fromJson();
|
||||
IgnoreWaitRequestDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class ImageByNameInfo {
|
||||
public:
|
||||
ImageByNameInfo(
|
||||
qint64 fileLength
|
||||
);
|
||||
|
||||
ImageByNameInfo();
|
||||
ImageByNameInfo(const ImageByNameInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -123,13 +120,8 @@ protected:
|
|||
QString m_context;
|
||||
qint64 m_fileLength;
|
||||
QString m_format;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ImageByNameInfo::fromJson();
|
||||
ImageByNameInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,11 +48,7 @@ namespace DTO {
|
|||
|
||||
class ImageInfo {
|
||||
public:
|
||||
ImageInfo(
|
||||
ImageType imageType,
|
||||
qint64 size
|
||||
);
|
||||
|
||||
ImageInfo();
|
||||
ImageInfo(const ImageInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -155,13 +151,8 @@ protected:
|
|||
std::optional<qint32> m_height = std::nullopt;
|
||||
std::optional<qint32> m_width = std::nullopt;
|
||||
qint64 m_size;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ImageInfo::fromJson();
|
||||
ImageInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,12 +47,7 @@ namespace DTO {
|
|||
|
||||
class ImageOption {
|
||||
public:
|
||||
ImageOption(
|
||||
ImageType type,
|
||||
qint32 limit,
|
||||
qint32 minWidth
|
||||
);
|
||||
|
||||
ImageOption();
|
||||
ImageOption(const ImageOption &other);
|
||||
|
||||
/**
|
||||
|
@ -93,13 +88,8 @@ protected:
|
|||
ImageType m_type;
|
||||
qint32 m_limit;
|
||||
qint32 m_minWidth;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ImageOption::fromJson();
|
||||
ImageOption();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,7 +49,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class ImageProviderInfo {
|
||||
public: ImageProviderInfo();
|
||||
public:
|
||||
ImageProviderInfo();
|
||||
ImageProviderInfo(const ImageProviderInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -88,11 +89,8 @@ public: ImageProviderInfo();
|
|||
protected:
|
||||
QString m_name;
|
||||
QList<ImageType> m_supportedImages;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,11 +49,7 @@ namespace DTO {
|
|||
|
||||
class InstallationInfo {
|
||||
public:
|
||||
InstallationInfo(
|
||||
QString guid,
|
||||
QSharedPointer<Version> version
|
||||
);
|
||||
|
||||
InstallationInfo();
|
||||
InstallationInfo(const InstallationInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -132,13 +128,8 @@ protected:
|
|||
QString m_changelog;
|
||||
QString m_sourceUrl;
|
||||
QString m_checksum;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing InstallationInfo::fromJson();
|
||||
InstallationInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,12 +49,7 @@ namespace DTO {
|
|||
|
||||
class IPlugin {
|
||||
public:
|
||||
IPlugin(
|
||||
QString jellyfinId,
|
||||
QSharedPointer<Version> version,
|
||||
bool canUninstall
|
||||
);
|
||||
|
||||
IPlugin();
|
||||
IPlugin(const IPlugin &other);
|
||||
|
||||
/**
|
||||
|
@ -143,13 +138,8 @@ protected:
|
|||
QString m_assemblyFilePath;
|
||||
bool m_canUninstall;
|
||||
QString m_dataFolderPath;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing IPlugin::fromJson();
|
||||
IPlugin();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,21 +46,7 @@ namespace DTO {
|
|||
|
||||
class ItemCounts {
|
||||
public:
|
||||
ItemCounts(
|
||||
qint32 movieCount,
|
||||
qint32 seriesCount,
|
||||
qint32 episodeCount,
|
||||
qint32 artistCount,
|
||||
qint32 programCount,
|
||||
qint32 trailerCount,
|
||||
qint32 songCount,
|
||||
qint32 albumCount,
|
||||
qint32 musicVideoCount,
|
||||
qint32 boxSetCount,
|
||||
qint32 bookCount,
|
||||
qint32 itemCount
|
||||
);
|
||||
|
||||
ItemCounts();
|
||||
ItemCounts(const ItemCounts &other);
|
||||
|
||||
/**
|
||||
|
@ -195,13 +181,8 @@ protected:
|
|||
qint32 m_boxSetCount;
|
||||
qint32 m_bookCount;
|
||||
qint32 m_itemCount;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ItemCounts::fromJson();
|
||||
ItemCounts();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class JoinGroupRequestDto {
|
||||
public:
|
||||
JoinGroupRequestDto(
|
||||
QString groupId
|
||||
);
|
||||
|
||||
JoinGroupRequestDto();
|
||||
JoinGroupRequestDto(const JoinGroupRequestDto &other);
|
||||
|
||||
/**
|
||||
|
@ -75,13 +72,8 @@ public:
|
|||
|
||||
protected:
|
||||
QString m_groupId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing JoinGroupRequestDto::fromJson();
|
||||
JoinGroupRequestDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class LibraryOptionInfoDto {
|
||||
public:
|
||||
LibraryOptionInfoDto(
|
||||
bool defaultEnabled
|
||||
);
|
||||
|
||||
LibraryOptionInfoDto();
|
||||
LibraryOptionInfoDto(const LibraryOptionInfoDto &other);
|
||||
|
||||
/**
|
||||
|
@ -87,13 +84,8 @@ public:
|
|||
protected:
|
||||
QString m_name;
|
||||
bool m_defaultEnabled;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LibraryOptionInfoDto::fromJson();
|
||||
LibraryOptionInfoDto();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,23 +51,7 @@ namespace DTO {
|
|||
|
||||
class LibraryOptions {
|
||||
public:
|
||||
LibraryOptions(
|
||||
bool enablePhotos,
|
||||
bool enableRealtimeMonitor,
|
||||
bool enableChapterImageExtraction,
|
||||
bool extractChapterImagesDuringLibraryScan,
|
||||
bool saveLocalMetadata,
|
||||
bool enableInternetProviders,
|
||||
bool enableAutomaticSeriesGrouping,
|
||||
bool enableEmbeddedTitles,
|
||||
bool enableEmbeddedEpisodeInfos,
|
||||
qint32 automaticRefreshIntervalDays,
|
||||
bool skipSubtitlesIfEmbeddedSubtitlesPresent,
|
||||
bool skipSubtitlesIfAudioTrackMatches,
|
||||
bool requirePerfectSubtitleMatch,
|
||||
bool saveSubtitlesWithMedia
|
||||
);
|
||||
|
||||
LibraryOptions();
|
||||
LibraryOptions(const LibraryOptions &other);
|
||||
|
||||
/**
|
||||
|
@ -262,13 +246,8 @@ protected:
|
|||
bool m_requirePerfectSubtitleMatch;
|
||||
bool m_saveSubtitlesWithMedia;
|
||||
QList<TypeOptions> m_typeOptions;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LibraryOptions::fromJson();
|
||||
LibraryOptions();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,7 +49,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class LibraryOptionsResultDto {
|
||||
public: LibraryOptionsResultDto();
|
||||
public:
|
||||
LibraryOptionsResultDto();
|
||||
LibraryOptionsResultDto(const LibraryOptionsResultDto &other);
|
||||
|
||||
/**
|
||||
|
@ -112,11 +113,8 @@ protected:
|
|||
QList<LibraryOptionInfoDto> m_metadataReaders;
|
||||
QList<LibraryOptionInfoDto> m_subtitleFetchers;
|
||||
QList<LibraryTypeOptionsDto> m_typeOptions;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -51,7 +51,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class LibraryTypeOptionsDto {
|
||||
public: LibraryTypeOptionsDto();
|
||||
public:
|
||||
LibraryTypeOptionsDto();
|
||||
LibraryTypeOptionsDto(const LibraryTypeOptionsDto &other);
|
||||
|
||||
/**
|
||||
|
@ -126,11 +127,8 @@ protected:
|
|||
QList<LibraryOptionInfoDto> m_imageFetchers;
|
||||
QList<ImageType> m_supportedImageTypes;
|
||||
QList<ImageOption> m_defaultImageOptions;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,10 +49,7 @@ namespace DTO {
|
|||
|
||||
class LibraryUpdateInfo {
|
||||
public:
|
||||
LibraryUpdateInfo(
|
||||
bool isEmpty
|
||||
);
|
||||
|
||||
LibraryUpdateInfo();
|
||||
LibraryUpdateInfo(const LibraryUpdateInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -141,13 +138,8 @@ protected:
|
|||
QStringList m_itemsUpdated;
|
||||
QStringList m_collectionFolders;
|
||||
bool m_isEmpty;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LibraryUpdateInfo::fromJson();
|
||||
LibraryUpdateInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -50,10 +50,7 @@ namespace DTO {
|
|||
|
||||
class ListingsProviderInfo {
|
||||
public:
|
||||
ListingsProviderInfo(
|
||||
bool enableAllTuners
|
||||
);
|
||||
|
||||
ListingsProviderInfo();
|
||||
ListingsProviderInfo(const ListingsProviderInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -210,13 +207,8 @@ protected:
|
|||
QString m_moviePrefix;
|
||||
QString m_preferredLanguage;
|
||||
QString m_userAgent;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ListingsProviderInfo::fromJson();
|
||||
ListingsProviderInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,10 +48,7 @@ namespace DTO {
|
|||
|
||||
class LiveStreamResponse {
|
||||
public:
|
||||
LiveStreamResponse(
|
||||
QSharedPointer<MediaSourceInfo> mediaSource
|
||||
);
|
||||
|
||||
LiveStreamResponse();
|
||||
LiveStreamResponse(const LiveStreamResponse &other);
|
||||
|
||||
/**
|
||||
|
@ -72,13 +69,8 @@ public:
|
|||
|
||||
protected:
|
||||
QSharedPointer<MediaSourceInfo> m_mediaSource = QSharedPointer<MediaSourceInfo>();
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LiveStreamResponse::fromJson();
|
||||
LiveStreamResponse();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -49,10 +49,7 @@ namespace DTO {
|
|||
|
||||
class LiveTvInfo {
|
||||
public:
|
||||
LiveTvInfo(
|
||||
bool isEnabled
|
||||
);
|
||||
|
||||
LiveTvInfo();
|
||||
LiveTvInfo(const LiveTvInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -101,13 +98,8 @@ protected:
|
|||
QList<LiveTvServiceInfo> m_services;
|
||||
bool m_isEnabled;
|
||||
QStringList m_enabledUsers;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LiveTvInfo::fromJson();
|
||||
LiveTvInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -50,12 +50,7 @@ namespace DTO {
|
|||
|
||||
class LiveTvServiceInfo {
|
||||
public:
|
||||
LiveTvServiceInfo(
|
||||
LiveTvServiceStatus status,
|
||||
bool hasUpdateAvailable,
|
||||
bool isVisible
|
||||
);
|
||||
|
||||
LiveTvServiceInfo();
|
||||
LiveTvServiceInfo(const LiveTvServiceInfo &other);
|
||||
|
||||
/**
|
||||
|
@ -152,13 +147,8 @@ protected:
|
|||
bool m_hasUpdateAvailable;
|
||||
bool m_isVisible;
|
||||
QStringList m_tuners;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LiveTvServiceInfo::fromJson();
|
||||
LiveTvServiceInfo();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -46,7 +46,8 @@ namespace DTO {
|
|||
|
||||
|
||||
class LocalizationOption {
|
||||
public: LocalizationOption();
|
||||
public:
|
||||
LocalizationOption();
|
||||
LocalizationOption(const LocalizationOption &other);
|
||||
|
||||
/**
|
||||
|
@ -77,11 +78,8 @@ public: LocalizationOption();
|
|||
protected:
|
||||
QString m_name;
|
||||
QString m_value;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -48,12 +48,7 @@ namespace DTO {
|
|||
|
||||
class LogFile {
|
||||
public:
|
||||
LogFile(
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateModified,
|
||||
qint64 size
|
||||
);
|
||||
|
||||
LogFile();
|
||||
LogFile(const LogFile &other);
|
||||
|
||||
/**
|
||||
|
@ -110,13 +105,8 @@ protected:
|
|||
QDateTime m_dateModified;
|
||||
qint64 m_size;
|
||||
QString m_name;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LogFile::fromJson();
|
||||
LogFile();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
|
@ -47,10 +47,7 @@ namespace DTO {
|
|||
|
||||
class MediaAttachment {
|
||||
public:
|
||||
MediaAttachment(
|
||||
qint32 index
|
||||
);
|
||||
|
||||
MediaAttachment();
|
||||
MediaAttachment(const MediaAttachment &other);
|
||||
|
||||
/**
|
||||
|
@ -147,13 +144,8 @@ protected:
|
|||
QString m_fileName;
|
||||
QString m_mimeType;
|
||||
QString m_deliveryUrl;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing MediaAttachment::fromJson();
|
||||
MediaAttachment();
|
||||
};
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue