Skip to content

Commit

Permalink
[usbsettings] Use libusb-moded-qt5 to talk to usb_moded. Contributes …
Browse files Browse the repository at this point in the history
…to JB#29035
  • Loading branch information
monich committed May 27, 2015
1 parent 4d78ad7 commit a1a9aad
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 264 deletions.
2 changes: 1 addition & 1 deletion rpm/nemo-qml-plugin-systemsettings.spec
Expand Up @@ -15,7 +15,7 @@ BuildRequires: pkgconfig(timed-qt5)
BuildRequires: pkgconfig(profile)
BuildRequires: pkgconfig(mce)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(usb_moded) >= 0.82
BuildRequires: pkgconfig(usb-moded-qt5)

%description
%{summary}.
Expand Down
8 changes: 5 additions & 3 deletions src/plugin/plugin.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2013 Jolla Ltd. <pekka.vuorela@jollamobile.com>
* Copyright (C) 2013-2015 Jolla Ltd. <pekka.vuorela@jollamobile.com>
*
* You may use this file under the terms of the BSD license as follows:
*
Expand Down Expand Up @@ -34,12 +34,13 @@
#include <QQmlEngine>
#include <QQmlExtensionPlugin>

#include <qusbmoded.h>

#include "languagemodel.h"
#include "datetimesettings.h"
#include "profilecontrol.h"
#include "alarmtonemodel.h"
#include "displaysettings.h"
#include "usbsettings.h"
#include "aboutsettings.h"
#include "devicelockiface.h"
#include "developermodesettings.h"
Expand All @@ -53,6 +54,7 @@ class SystemSettingsPlugin : public QQmlExtensionPlugin
public:
void initializeEngine(QQmlEngine *engine, const char *uri)
{
Q_UNUSED(engine)
Q_UNUSED(uri)
}

Expand All @@ -64,7 +66,7 @@ class SystemSettingsPlugin : public QQmlExtensionPlugin
qmlRegisterType<ProfileControl>(uri, 1, 0, "ProfileControl");
qmlRegisterType<AlarmToneModel>(uri, 1, 0, "AlarmToneModel");
qmlRegisterType<DisplaySettings>(uri, 1, 0, "DisplaySettings");
qmlRegisterType<USBSettings>(uri, 1, 0, "USBSettings");
qmlRegisterType<QUsbModed>(uri, 1, 0, "USBSettings");
qmlRegisterType<AboutSettings>(uri, 1, 0, "AboutSettings");
qmlRegisterType<DeviceLockInterface>(uri, 1, 0, "DeviceLockInterface");
qmlRegisterType<DeveloperModeSettings>(uri, 1, 0, "DeveloperModeSettings");
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/plugin.pro
Expand Up @@ -6,7 +6,7 @@ CONFIG += qt plugin hide_symbols link_pkgconfig
QT += qml dbus network
QT -= gui

PKGCONFIG += profile
PKGCONFIG += profile usb-moded-qt5

target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target
Expand Down
4 changes: 1 addition & 3 deletions src/src.pro
Expand Up @@ -7,7 +7,7 @@ QT += qml dbus systeminfo
QT -= gui

CONFIG += link_pkgconfig
PKGCONFIG += profile mlite5 usb_moded timed-qt5
PKGCONFIG += profile mlite5 timed-qt5

system(qdbusxml2cpp -p mceiface.h:mceiface.cpp mce.xml)

Expand All @@ -18,7 +18,6 @@ SOURCES += \
alarmtonemodel.cpp \
mceiface.cpp \
displaysettings.cpp \
usbsettings.cpp \
aboutsettings.cpp \
devicelockiface.cpp \
developermodesettings.cpp \
Expand All @@ -32,7 +31,6 @@ HEADERS += \
alarmtonemodel.h \
mceiface.h \
displaysettings.h \
usbsettings.h \
aboutsettings.h \
devicelockiface.h \
developermodesettings.h \
Expand Down
159 changes: 0 additions & 159 deletions src/usbsettings.cpp

This file was deleted.

97 changes: 0 additions & 97 deletions src/usbsettings.h

This file was deleted.

0 comments on commit a1a9aad

Please sign in to comment.