don't ue kio on mobile profile
svn path=/trunk/KDE/kdebase/runtime/; revision=1203934
This commit is contained in:
parent
94f91006aa
commit
4c6b625f62
@ -1,5 +1,12 @@
|
||||
# APPLET
|
||||
|
||||
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
||||
set(PLASMA_NO_KDEWEBKIT TRUE)
|
||||
set(PLASMA_NO_KNEWSTUFF TRUE)
|
||||
set(PLASMA_NO_SOLID TRUE)
|
||||
set(PLASMA_NO_KIO TRUE)
|
||||
endif(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
||||
|
||||
set(simple_javascript_engine_SRCS
|
||||
common/javascriptaddonpackagestructure.cpp
|
||||
common/jsscriptenv.cpp
|
||||
|
@ -75,6 +75,11 @@ QNetworkReply *PackageAccessManager::createRequest(QNetworkAccessManager::Operat
|
||||
return new ErrorReply(op, req);
|
||||
} else {
|
||||
return KIO::AccessManager::createRequest(op, req, outgoingData);
|
||||
#ifndef PLASMA_NO_KIO
|
||||
return KIO::AccessManager::createRequest(op, req, outgoingData);
|
||||
#else
|
||||
return QNetworkAccessManager::createRequest(op, req, outgoingData);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,8 +20,12 @@
|
||||
#ifndef PACKAGEACCESSMANAGER_H
|
||||
#define PACKAGEACCESSMANAGER_H
|
||||
|
||||
#include <kio/accessmanager.h>
|
||||
|
||||
#ifndef PLASMA_NO_KIO
|
||||
#include <kio/accessmanager.h>
|
||||
#else
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#endif
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
@ -30,7 +34,12 @@ namespace Plasma
|
||||
|
||||
class AppletAuthorization;
|
||||
|
||||
class PackageAccessManager : public KIO::AccessManager
|
||||
class PackageAccessManager :
|
||||
#ifdef PLASMA_NO_KIO
|
||||
public QNetworkAccessManager
|
||||
#else
|
||||
public KIO::AccessManager
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
PackageAccessManager(const Plasma::Package *package, AppletAuthorization *auth, QObject *parent = 0);
|
||||
|
Loading…
Reference in New Issue
Block a user