https://bugs.kde.org/show_bug.cgi?id=358261
Bug ID: 358261 Summary: SMS messages list is not update when calling ModemManager::ModemMessaging::createMessage Product: frameworks-modemmanager-qt Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: jgrul...@redhat.com Reporter: daniel...@gmail.com CC: lamar...@kde.org, lukas.ti...@merlin.cz In order to send SMS using the modemmanagerqt api it is necessary to first create a message, after that find that message in SMS list and then send. After creating a message using QDBusPendingReply<QDBusObjectPath> ModemManager::ModemMessaging::createMessage(const Message &message) the message list accessible from ModemManager::Sms::List ModemManager::ModemMessaging::messages() is not modified and didn't contains the new message recently created. Reproducible: Always Steps to Reproduce: 1. Get a valid instance of a ModemDevice: ModemManager::ModemDevice::Ptr modemdevice; 2. Get the messaging interface: ModemManager::ModemMessaging::Ptr messaging = modemdevice->messagingInterface(); 3. Create a valid message: ModemManager::ModemMessaging::Message msg; msg.number = "validnumber"; msg.text = "Hello World!"; 4. Try to create a message: QDBusPendingReply<QDBusObjectPath> sms = messaging->createMessage(msg); 5. Wait for pending reply: sms.waitForFinished(); 6. Check the validity of the reply: if ( sms.isValid() ) 7. Iterate over the list of valid sms messages: ModemManager::Sms::List messages = messaging->messages(); Q_FOREACH (ModemManager::Sms::Ptr sms, messages) { qDebug() << " " << sms->number() << sms->text() << sms->uni(); } 8. The new created message will not present in the list. Actual Results: The new created message will not present in the list. Expected Results: The new created message will present in the list. -- You are receiving this mail because: You are watching all bug changes.