[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-22 Thread Daniel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

--- Comment #5 from Daniel  ---
Thank you for the answers. I sent a message in the kde-hardware-devel list.

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-22 Thread Jan Grulich via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

Jan Grulich  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-20 Thread Lamarque V . Souza via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

--- Comment #1 from Lamarque V. Souza  ---
Hi, MMQt API is assynchronous and MMQt needs to receive signals from
ModemManager to update the message list. That is probably not happening because
you are doing everything in synchronous mode. Try adding the line below after
*before* step 7 and check if your example works:

// Include QCoreApplication if compiler complains about qApp not defined.
qApp->processEvents();

That will make Qt process any pending event (like ModemManager's signal to
update the message list).

If that works then you need to update your code to work in asynchronous mode.
Using processEvent() must be avoided since it is a costly method call.

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-20 Thread Jan Grulich via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

Jan Grulich  changed:

   What|Removed |Added

 CC||jgrul...@redhat.com

--- Comment #4 from Jan Grulich  ---
Using signals and slots is the way how to use both MMQT and NMQT properly. Do
not pay attention that much to the example, I was lazy to write a proper one
and that one you see was created just as a testing code for sending sms.

If you want any help with MMQT API just contact us on
kde-hardware-de...@kde.org mailing list and we will be more than happy to help
you and don't worry about your english, most of us are not native speakers (I'm
from Czech Republic and Lamarque is from Brazil too).

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-20 Thread Daniel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

--- Comment #3 from Daniel  ---
Adding 

qApp->processEvents();
qApp->processEvents();

instead of just one, make the things work.

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-modemmanager-qt] [Bug 358261] SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage

2016-01-20 Thread Daniel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358261

--- Comment #2 from Daniel  ---
Even using the qApp->processEvents(); as you suggested, the message list was
not updated after that.

But as you warned me that I am using in a synchronous mode, I changed the way
to use, now I am using signal/slots and I connected the signal
ModemManager::ModemMessaging::messageAdded in a custom slot and this signal is
emitted OK and I can access the recently created message using the messages
property (ModemManager::Sms::List messages = messaging->messages()). It means
that the list contains the recently added message inside the slot called by the
signal.

Probably I am misusing the framework MMQt. I based my code in the source code
of the example folder. In the truth that example didn't work for me. Running
the example the message did not sent. Is the example running for you?

If you like I can contribute with the MMQt in order to provide more examples.

Thanks in advance. (Sorry for my english, I am from Brazil).

-- 
You are receiving this mail because:
You are watching all bug changes.