summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-im/ktp-accounts-kcm/files/ktp-accounts-kcm-0.6.80-libmm-qt-api-fix.patch32
-rw-r--r--net-im/ktp-accounts-kcm/ktp-accounts-kcm-0.6.80.ebuild5
2 files changed, 37 insertions, 0 deletions
diff --git a/net-im/ktp-accounts-kcm/files/ktp-accounts-kcm-0.6.80-libmm-qt-api-fix.patch b/net-im/ktp-accounts-kcm/files/ktp-accounts-kcm-0.6.80-libmm-qt-api-fix.patch
new file mode 100644
index 00000000000..47e6adb62c8
--- /dev/null
+++ b/net-im/ktp-accounts-kcm/files/ktp-accounts-kcm-0.6.80-libmm-qt-api-fix.patch
@@ -0,0 +1,32 @@
+--- a/plugins/pintxo/modem-combobox.cpp
++++ b/plugins/pintxo/modem-combobox.cpp
+@@ -33,8 +33,8 @@
+ Q_FOREACH(ModemManager::ModemInterface::Ptr modem, modems) {
+ ModemManager::ModemGsmCardInterface::Ptr simCard = ModemManager::findModemInterface(modem->udi(), ModemManager::ModemInterface::GsmCard).objectCast<ModemManager::ModemGsmCardInterface>();
+ if(!simCard.isNull()) {
+- QString simIdent = simCard->getSimIdentifier();
+- QDBusReply<QString> spn = simCard->getSpn();
++ QString simIdent = simCard->simIdentifier();
++ QDBusReply<QString> spn = simCard->serviceProviderName();
+ addItem(spn.isValid() ? spn.value() : QLatin1String("Unknown modem"));
+ }
+ }
+@@ -51,7 +51,7 @@
+ if(!modem.isNull()){
+ ModemManager::ModemGsmCardInterface::Ptr simCard = ModemManager::findModemInterface(modems.at(currentIndex())->udi(), ModemManager::ModemInterface::GsmCard).objectCast<ModemManager::ModemGsmCardInterface>();
+ if(!simCard.isNull()) {
+- return simCard->getSimIdentifier();
++ return simCard->simIdentifier();
+ }
+ }
+ return QString();
+@@ -64,7 +64,7 @@
+ Q_FOREACH(ModemManager::ModemInterface::Ptr modem, modems) {
+ ModemManager::ModemGsmCardInterface::Ptr simCard = ModemManager::findModemInterface(modem->udi(), ModemManager::ModemInterface::GsmCard).objectCast<ModemManager::ModemGsmCardInterface>();
+ if(!simCard.isNull()) {
+- QString simIdent = simCard->getSimIdentifier();
++ QString simIdent = simCard->simIdentifier();
+ if (simIdent == selectedSimIdentifier) {
+ setCurrentIndex(i);
+ return;
+
diff --git a/net-im/ktp-accounts-kcm/ktp-accounts-kcm-0.6.80.ebuild b/net-im/ktp-accounts-kcm/ktp-accounts-kcm-0.6.80.ebuild
index 0c76b1dffd3..b5fd834a70a 100644
--- a/net-im/ktp-accounts-kcm/ktp-accounts-kcm-0.6.80.ebuild
+++ b/net-im/ktp-accounts-kcm/ktp-accounts-kcm-0.6.80.ebuild
@@ -31,3 +31,8 @@ DEPEND="
"
RDEPEND="${DEPEND}
"
+
+PATCHES=(
+ "${FILESDIR}/${P}-libmm-qt-api-fix.patch"
+)
+