Skip to content

Commit

Permalink
[connectionagent] Remove unused Qt 4/5 ifdefs
Browse files Browse the repository at this point in the history
Support for Qt 4 was removed, remove left over ifdefs.
  • Loading branch information
Aaron McCarthy committed Jan 7, 2015
1 parent 8c042c6 commit 3b3178b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
12 changes: 0 additions & 12 deletions connd/qconnectionagent.cpp
Expand Up @@ -18,7 +18,6 @@
#include "connectiond_adaptor.h"
#include "wakeupwatcher.h"

#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <connman-qt5/useragent.h>
#include <connman-qt5/networkmanager.h>
#include <connman-qt5/networktechnology.h>
Expand All @@ -29,17 +28,6 @@
#include <qofono-qt5/qofononetworkregistration.h>
#include <qofono-qt5/qofonomanager.h>

#else
#include <connman-qt/useragent.h>
#include <connman-qt/networkmanager.h>
#include <connman-qt/networktechnology.h>
#include <connman-qt/networkservice.h>
#include <connman-qt/sessionagent.h>
#include <qofono-qt/qofonoconnectioncontext.h>
#include <qofono-qt/qofonoconnectionmanager.h>
#include <qofono-qt/qofonomanager.h>
#endif

#include <QtDBus/QDBusConnection>

#include <QObject>
Expand Down
4 changes: 0 additions & 4 deletions connectionagentplugin/connectionagentplugin_plugin.cpp
Expand Up @@ -57,7 +57,3 @@ void ConnectionagentpluginPlugin::registerTypes(const char *uri)
// @uri com.jolla.connection
qmlRegisterType<ConnectionAgentPlugin>(uri, 1, 0, "ConnectionAgent");
}

#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(Connectionagentplugin, ConnectionagentpluginPlugin)
#endif
12 changes: 1 addition & 11 deletions connectionagentplugin/connectionagentplugin_plugin.h
Expand Up @@ -18,24 +18,14 @@
#define CONNECTIONAGENTPLUGIN_PLUGIN_H
#include <QtPlugin>

#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtQml>
#include <QQmlEngine>
#include <QQmlExtensionPlugin>
# define QDeclarativeEngine QQmlEngine
# define QDeclarativeExtensionPlugin QQmlExtensionPlugin
#else
# include <QtDeclarative>
# include <QDeclarativeEngine>
# include <QDeclarativeExtensionPlugin>
#endif

class ConnectionagentpluginPlugin : public QDeclarativeExtensionPlugin
class ConnectionagentpluginPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
#endif

public:
void registerTypes(const char *uri);
Expand Down

0 comments on commit 3b3178b

Please sign in to comment.