Hi, On pondělí 11. dubna 2016 11:11:52 CEST Charles A wrote: > Hi! > I have been using the MMQT api in order to send SMS messages. > I have been using MMQT version 5.2.2 and it works great! I recently found > an issue where the signalQuality (in ModemManager::Modem Interface) would > return 0 even though the signal quality returned by dbus was not 0. > Since then I decided to upgrade MMQT to a more recent version, I tried MMQT > 5.18.0 and my old code seem to not work at all with the MMQT 5.18.0 > version.
The API changed a bit after modemmanager-qt became a KDE framework. > After reading a bit, I stumbled upon the following bug report ( > https://bugs.kde.org/show_bug.cgi?id=358261) and I realized I need to use > to Async mode to make it work since I was using the sync method. > > I wanted to know if there are any examples on how to use Async mode in > order to send an SMS message? Unfortunately there is no example for that particular case, but if you go through plasma-nm, there's a lot of stuff using networkmanager-qt/ modemmanager-qt code (check src/libs/models/networkmodel.cpp). > I have been trying to use SIGNAL/SLOT method but I am not sure I am doing > it right. I am trying to connect to the signal without being a Q_OBJECT. I think you need to derive your class from QObject to be able to use Qt's signal/slot mechanism. You can also send us your code so we can take a look and help you more with that. > Thank you! > Charles Regards, Jan -- Jan Grulich <jgrul...@redhat.com> Software Engineer, Desktop team Red Hat Czech _______________________________________________ Kde-hardware-devel mailing list Kde-hardware-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-hardware-devel