1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-06 09:17:07 +02:00

Refactor ScreenPlaySDK and remove old QML support

This commit is contained in:
Elias Steurer 2022-05-05 13:43:49 +02:00
parent bcfb188cf2
commit 12e3aa91ac
7 changed files with 7 additions and 61 deletions

View File

@ -9,13 +9,13 @@ find_package(
COMPONENTS Quick Network Core
REQUIRED)
set(SOURCES src/screenplay-sdk_plugin.cpp src/screenplaysdk.cpp)
set(SOURCES src/screenplaysdk.cpp)
set(HEADER inc/screenplay-sdk_plugin.h inc/screenplaysdk.h)
set(HEADER inc/Public/ScreenPlaySDK/screenplaysdk.h)
add_library(${PROJECT_NAME} ${SOURCES} ${HEADER})
target_include_directories(${PROJECT_NAME} PUBLIC inc)
target_include_directories(${PROJECT_NAME} PUBLIC inc/Public/)
target_link_libraries(
${PROJECT_NAME}

View File

@ -51,6 +51,7 @@
class ScreenPlaySDK : public QObject {
Q_OBJECT
QML_UNCREATABLE("")
public:
ScreenPlaySDK(const QString& appID, const QString& type);

View File

@ -1,45 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2020 Elias Steurer (Kelteseth)
** Contact: https://screen-play.app
**
** This file is part of ScreenPlay. ScreenPlay is licensed under a dual license in
** order to ensure its sustainability. When you contribute to ScreenPlay
** you accept that your work will be available under the two following licenses:
**
** $SCREENPLAY_BEGIN_LICENSE$
**
** #### Affero General Public License Usage (AGPLv3)
** Alternatively, this file may be used under the terms of the GNU Affero
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file "ScreenPlay License.md" included in the
** packaging of this App. Please review the following information to
** ensure the GNU Affero Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/agpl-3.0.en.html.
**
** #### Commercial License
** This code is owned by Elias Steurer. By changing/adding to the code you agree to the
** terms written in:
** * Legal/corporate_contributor_license_agreement.md - For corporate contributors
** * Legal/individual_contributor_license_agreement.md - For individual contributors
**
** #### Additional Limitations to the AGPLv3 and Commercial Lincese
** This License does not grant any rights in the trademarks,
** service marks, or logos.
**
**
** $SCREENPLAY_END_LICENSE$
**
****************************************************************************/
#pragma once
#include <QQmlExtensionPlugin>
class ScreenPlay_SDKPlugin : public QQmlExtensionPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
void registerTypes(const char* uri);
};

View File

@ -1,10 +0,0 @@
#include "screenplay-sdk_plugin.h"
#include "screenplaysdk.h"
#include <qqml.h>
void ScreenPlay_SDKPlugin::registerTypes(const char* uri)
{
// @uri ScreenPlay.screenplaysdk
qmlRegisterType<ScreenPlaySDK>(uri, 1, 0, "ScreenPlaySDK");
}

View File

@ -1,4 +1,4 @@
#include "screenplaysdk.h"
#include "ScreenPlaySDK/screenplaysdk.h"
/*!
\module ScreenPlaySDK

View File

@ -48,7 +48,7 @@
#include "ScreenPlayUtil/util.h"
#include "screenplaysdk.h"
#include "ScreenPlaySDK/screenplaysdk.h"
#include <memory>

View File

@ -58,7 +58,7 @@
#endif
#include "ScreenPlayUtil/util.h"
#include "screenplaysdk.h"
#include "ScreenPlaySDK/screenplaysdk.h"
#include <memory>
class WidgetWindow : public QObject {