Refresh mtk_settings_binding.patch

parent 089c6f97
......@@ -5,10 +5,8 @@ Date: Thu Nov 20 17:01:17 CET 2014
add mtk (mediatek) settings binding which allows consumer
to set which modem to allow 3G communication
Index: libqofono-ubuntu/plugin/qofonodeclarativeplugin.cpp
===================================================================
--- libqofono-ubuntu.orig/plugin/qofonodeclarativeplugin.cpp
+++ libqofono-ubuntu/plugin/qofonodeclarativeplugin.cpp
--- a/plugin/qofonodeclarativeplugin.cpp
+++ b/plugin/qofonodeclarativeplugin.cpp
@@ -34,6 +34,7 @@
#include "qofonomessage.h"
#include "qofonomessagemanager.h"
......@@ -25,10 +23,8 @@ Index: libqofono-ubuntu/plugin/qofonodeclarativeplugin.cpp
qmlRegisterType<QOfonoSimManager>(uri,major,minor,"OfonoSimManager");
Index: libqofono-ubuntu/src/dbus/ofono_mtk_settings.xml
===================================================================
--- /dev/null
+++ libqofono-ubuntu/src/dbus/ofono_mtk_settings.xml
+++ b/src/dbus/ofono_mtk_settings.xml
@@ -0,0 +1,18 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
......@@ -48,10 +44,8 @@ Index: libqofono-ubuntu/src/dbus/ofono_mtk_settings.xml
+ </signal>
+</interface>
+</node>
Index: libqofono-ubuntu/src/dbus/ofonomtksettings.cpp
===================================================================
--- /dev/null
+++ libqofono-ubuntu/src/dbus/ofonomtksettings.cpp
+++ b/src/dbus/ofonomtksettings.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
......@@ -79,10 +73,8 @@ Index: libqofono-ubuntu/src/dbus/ofonomtksettings.cpp
+{
+}
+
Index: libqofono-ubuntu/src/dbus/ofonomtksettings.h
===================================================================
--- /dev/null
+++ libqofono-ubuntu/src/dbus/ofonomtksettings.h
+++ b/src/dbus/ofonomtksettings.h
@@ -0,0 +1,56 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
......@@ -140,10 +132,8 @@ Index: libqofono-ubuntu/src/dbus/ofonomtksettings.h
+};
+
+#endif
Index: libqofono-ubuntu/src/qofonomtksettings.cpp
===================================================================
--- /dev/null
+++ libqofono-ubuntu/src/qofonomtksettings.cpp
+++ b/src/qofonomtksettings.cpp
@@ -0,0 +1,121 @@
+/****************************************************************************
+**
......@@ -266,10 +256,8 @@ Index: libqofono-ubuntu/src/qofonomtksettings.cpp
+{
+ return d_ptr->mtkSettings->isValid();
+}
Index: libqofono-ubuntu/src/qofonomtksettings.h
===================================================================
--- /dev/null
+++ libqofono-ubuntu/src/qofonomtksettings.h
+++ b/src/qofonomtksettings.h
@@ -0,0 +1,61 @@
+/****************************************************************************
+**
......@@ -332,10 +320,8 @@ Index: libqofono-ubuntu/src/qofonomtksettings.h
+};
+
+#endif // QOFONOMtkSettings_H
Index: libqofono-ubuntu/src/src.pro
===================================================================
--- libqofono-ubuntu.orig/src/src.pro
+++ libqofono-ubuntu/src/src.pro
--- a/src/src.pro
+++ b/src/src.pro
@@ -48,6 +48,7 @@ XML_FILES += \
dbus/ofono_message_manager.xml \
dbus/ofono_messagewaiting.xml \
......@@ -372,10 +358,8 @@ Index: libqofono-ubuntu/src/src.pro
DBUS_INTERFACES += ofono_network_operator
ofono_network_operator.files = dbus/ofono_network_operator.xml
ofono_network_operator.header_flags = -N -c OfonoNetworkOperator
Index: libqofono-ubuntu/test/auto/tests/tests.pro
===================================================================
--- libqofono-ubuntu.orig/test/auto/tests/tests.pro
+++ libqofono-ubuntu/test/auto/tests/tests.pro
--- a/test/auto/tests/tests.pro
+++ b/test/auto/tests/tests.pro
@@ -11,6 +11,7 @@ SUBDIRS += \
tst_qofonosimmanager.pro \
tst_qofonomessagewaiting.pro \
......@@ -384,10 +368,8 @@ Index: libqofono-ubuntu/test/auto/tests/tests.pro
tst_qofonoradiosettings.pro \
tst_qofonocallbarring.pro \
tst_qofonocallforwarding.pro \
Index: libqofono-ubuntu/test/auto/tests/tst_qofonomtksettings.cpp
===================================================================
--- /dev/null
+++ libqofono-ubuntu/test/auto/tests/tst_qofonomtksettings.cpp
+++ b/test/auto/tests/tst_qofonomtksettings.cpp
@@ -0,0 +1,61 @@
+/*
+ *
......@@ -450,10 +432,8 @@ Index: libqofono-ubuntu/test/auto/tests/tst_qofonomtksettings.cpp
+
+QTEST_MAIN(TestQOfonoMtkSettings)
+#include "tst_qofonomtksettings.moc"
Index: libqofono-ubuntu/test/auto/tests/tst_qofonomtksettings.pro
===================================================================
--- /dev/null
+++ libqofono-ubuntu/test/auto/tests/tst_qofonomtksettings.pro
+++ b/test/auto/tests/tst_qofonomtksettings.pro
@@ -0,0 +1,2 @@
+include(testcase.pri)
+SOURCES += tst_qofonomtksettings.cpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment