mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Switched to a sane build system (CMake)
This commit is contained in:
parent
9cfd6d7ee2
commit
228bcfb685
36 changed files with 286 additions and 211 deletions
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "credentialmanager.h"
|
||||
#include "JellyfinQt/credentialmanager.h"
|
||||
|
||||
CredentialsManager * CredentialsManager::newInstance(QObject *parent) {
|
||||
return new FallbackCredentialsManager(parent);
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
#include "jellyfin.h"
|
||||
/*
|
||||
Sailfin: a Jellyfin client written using Qt
|
||||
Copyright (C) 2020 Chris Josten
|
||||
|
||||
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
|
||||
*/
|
||||
#include "JellyfinQt/jellyfin.h"
|
||||
namespace Jellyfin {
|
||||
|
||||
void registerTypes() {
|
||||
|
|
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "jellyfinapiclient.h"
|
||||
#include "JellyfinQt/jellyfinapiclient.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "jellyfinapimodel.h"
|
||||
#include "JellyfinQt/jellyfinapimodel.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
ApiModel::ApiModel(QString path, bool hasRecordResponse, bool addUserId, QObject *parent)
|
||||
|
@ -240,6 +240,29 @@ void ItemModel::onUserDataChanged(const QString &itemId, QSharedPointer<UserData
|
|||
}
|
||||
}
|
||||
|
||||
PublicUserModel::PublicUserModel(QObject *parent)
|
||||
: ApiModel ("/users/public", false, false, parent) { }
|
||||
|
||||
UserViewModel::UserViewModel(QObject *parent)
|
||||
: ApiModel ("/Users/{{user}}/Views", true, false, parent) {}
|
||||
|
||||
UserItemModel::UserItemModel(QObject *parent)
|
||||
: ItemModel ("/Users/{{user}}/Items", true, false, parent) {}
|
||||
|
||||
UserItemResumeModel::UserItemResumeModel(QObject *parent)
|
||||
: ItemModel ("/Users/{{user}}/Items/Resume", true, false, parent) {}
|
||||
|
||||
UserItemLatestModel::UserItemLatestModel(QObject *parent)
|
||||
: ItemModel ("/Users/{{user}}/Items/Latest", false, false, parent) {}
|
||||
|
||||
ShowNextUpModel::ShowNextUpModel(QObject *parent)
|
||||
: ItemModel("/Shows/NextUp", true, true, parent) {}
|
||||
|
||||
ShowSeasonsModel::ShowSeasonsModel(QObject *parent)
|
||||
: ItemModel ("/Shows/{{show}}/Seasons", true, true, parent) {}
|
||||
|
||||
ShowEpisodesModel::ShowEpisodesModel(QObject *parent)
|
||||
: ItemModel ("/Shows/{{show}}/Episodes", true, true, parent) {}
|
||||
|
||||
void registerModels(const char *URI) {
|
||||
qmlRegisterUncreatableType<ApiModel>(URI, 1, 0, "ApiModel", "Is enum and base class");
|
||||
|
|
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "jellyfindeviceprofile.h"
|
||||
#include "JellyfinQt/jellyfindeviceprofile.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "jellyfinitem.h"
|
||||
#include "JellyfinQt/jellyfinitem.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
const QRegularExpression JsonSerializable::m_listExpression = QRegularExpression("^QList<\\s*([a-zA-Z0-9]*)\\s*\\*?\\s*>$");
|
||||
|
|
|
@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "jellyfinplaybackmanager.h"
|
||||
#include "JellyfinQt/jellyfinplaybackmanager.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ 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
|
||||
*/
|
||||
#include "jellyfinwebsocket.h"
|
||||
#include "JellyfinQt/jellyfinwebsocket.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
WebSocket::WebSocket(ApiClient *client)
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
#include "jsonhelper.h"
|
||||
/*
|
||||
Sailfin: a Jellyfin client written using Qt
|
||||
Copyright (C) 2020 Chris Josten
|
||||
|
||||
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
|
||||
*/
|
||||
#include "JellyfinQt/jsonhelper.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ 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
|
||||
*/
|
||||
#include "serverdiscoverymodel.h"
|
||||
#include "JellyfinQt/serverdiscoverymodel.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
ServerDiscoveryModel::ServerDiscoveryModel(QObject *parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue