Move PackageUrlInterceptor and PackageAccessManager into PlasmaQuick

This commit is contained in:
Sebastian Kügler 2013-10-15 01:08:47 +02:00
parent e597f66af2
commit c42974f52e
11 changed files with 23 additions and 13 deletions

View File

@ -5,6 +5,9 @@ set(plasmaquick_LIB_SRC
configmodel.cpp configmodel.cpp
configview.cpp configview.cpp
private/configcategory_p.cpp private/configcategory_p.cpp
packageaccessmanager.cpp
packageaccessmanagerfactory.cpp
packageurlinterceptor.cpp
#private/containmentconfigview_p.cpp #private/containmentconfigview_p.cpp
#private/currentcontainmentactionsmodel_p.cpp #private/currentcontainmentactionsmodel_p.cpp
) )
@ -12,13 +15,14 @@ set(plasmaquick_LIB_SRC
add_library(PlasmaQuick SHARED ${plasmaquick_LIB_SRC}) add_library(PlasmaQuick SHARED ${plasmaquick_LIB_SRC})
target_link_libraries(PlasmaQuick target_link_libraries(PlasmaQuick
${Qt5Quick_LIBRARIES} Qt5::Quick
${Qt5Qml_LIBRARIES} Qt5::Qml
${KWindowSystem_LIBRARIES} KF5::KWindowSystem
KF5::KIOWidgets
KF5::KI18n KF5::KI18n
KF5::KService KF5::KService
KF5::KCoreAddons KF5::KCoreAddons
${XmlGui_LIBRARIES} KF5::XmlGui
plasma plasma
KF5::KDeclarative KF5::KDeclarative
) )
@ -37,6 +41,8 @@ set(plasmaquick_LIB_INCLUDES
plasmaquickview.h plasmaquickview.h
configview.h configview.h
configmodel.h configmodel.h
packageaccessmanagerfactory.h # temporary, remove once folded into urlinterceptor
packageurlinterceptor.h
) )
install(FILES ${plasmaquick_LIB_INCLUDES} install(FILES ${plasmaquick_LIB_INCLUDES}

View File

@ -22,12 +22,13 @@
#include <QQmlNetworkAccessManagerFactory> #include <QQmlNetworkAccessManagerFactory>
#include <plasmaquick/plasmaquick_export.h>
#include <Plasma/Package> #include <Plasma/Package>
class AppletAuthorization; class AppletAuthorization;
class PackageAccessManagerFactory : public QQmlNetworkAccessManagerFactory class PLASMAQUICK_EXPORT PackageAccessManagerFactory : public QQmlNetworkAccessManagerFactory
{ {
public: public:
PackageAccessManagerFactory(const Plasma::Package &package); PackageAccessManagerFactory(const Plasma::Package &package);

View File

@ -20,14 +20,16 @@
#ifndef PACKAGEURLINTERCEPTOR_H #ifndef PACKAGEURLINTERCEPTOR_H
#define PACKAGEURLINTERCEPTOR_H #define PACKAGEURLINTERCEPTOR_H
#include "qqmlabstracturlinterceptor_p.h" #include <QQmlAbstractUrlInterceptor>
#include <plasmaquick/plasmaquick_export.h>
#include <Plasma/Package> #include <Plasma/Package>
class QQmlEngine; class QQmlEngine;
//depends from https://codereview.qt-project.org/#change,65626 //depends from https://codereview.qt-project.org/#change,65626
class PackageUrlInterceptor: public QQmlAbstractUrlInterceptor class PLASMAQUICK_EXPORT PackageUrlInterceptor: public QQmlAbstractUrlInterceptor
{ {
public: public:
PackageUrlInterceptor(QQmlEngine *engine, const Plasma::Package &p); PackageUrlInterceptor(QQmlEngine *engine, const Plasma::Package &p);

View File

@ -13,9 +13,9 @@ include_directories(${PHONON_INCLUDES})
#DECLARATIVE APPLET #DECLARATIVE APPLET
set(declarative_appletscript_SRCS set(declarative_appletscript_SRCS
declarative/packageaccessmanager.cpp # declarative/packageaccessmanager.cpp
declarative/packageaccessmanagerfactory.cpp # declarative/packageaccessmanagerfactory.cpp
declarative/packageurlinterceptor.cpp # declarative/packageurlinterceptor.cpp
plasmoid/appletinterface.cpp plasmoid/appletinterface.cpp
plasmoid/containmentinterface.cpp plasmoid/containmentinterface.cpp
plasmoid/declarativeappletscript.cpp plasmoid/declarativeappletscript.cpp
@ -36,6 +36,7 @@ target_link_libraries(plasma_appletscript_declarative
${KCore_LIBRARIES} ${KCore_LIBRARIES}
KF5::KI18n KF5::KI18n
plasma plasma
PlasmaQuick
KF5::KDeclarative KF5::KDeclarative
) )

View File

@ -47,8 +47,8 @@
#include "containmentinterface.h" #include "containmentinterface.h"
#include <kdeclarative/configpropertymap.h> #include <kdeclarative/configpropertymap.h>
#include <kdeclarative/qmlobject.h> #include <kdeclarative/qmlobject.h>
#include "declarative/packageaccessmanagerfactory.h" #include <packageaccessmanagerfactory.h>
#include "declarative/packageurlinterceptor.h" #include <packageurlinterceptor.h>
Q_DECLARE_METATYPE(AppletInterface*) Q_DECLARE_METATYPE(AppletInterface*)

View File

@ -46,7 +46,7 @@
#include "plasmoid/containmentinterface.h" #include "plasmoid/containmentinterface.h"
#include <kdeclarative/qmlobject.h> #include <kdeclarative/qmlobject.h>
#include "declarative/packageaccessmanagerfactory.h" #include <packageaccessmanagerfactory.h>
#include <kdeclarative/configpropertymap.h> #include <kdeclarative/configpropertymap.h>