Re[2]: How to gracefully kill a KUniqueApplication and wait for its termination?

2013-04-06 Thread Ilya Basin
Hi Thiago. TM> Use QDBusServiceWatcher to find out when the name unregisters. This worked. Thanks. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Why can't I type "*.*" in KFileDialog ?

2013-04-06 Thread Ilya Basin
Hi list. There's this code: KFileDialog dlg(emptyUrl, i18n("*.png *.xpm *.svg *.svgz|Icon Files (*.png *.xpm *.svg *.svgz)"), q); dlg.setOperationMode( KFileDialog::Opening ); dlg.setCaption( i18n("Open") ); dlg.setMode( KFile::File ); KImageFilePreview *ip = new KImageFilePr

How to gracefully kill a KUniqueApplication and wait for its termination?

2013-03-14 Thread Ilya Basin
Hi list! There's such app called bluedevilmonolithic. It goes to background on start. Current code to terminate it: void BlueDevilDaemon::monolithicQuit(QDBusPendingCallWatcher* watcher) { // can restart here? } QDBusMessage msg = QDBusMessage::createMethodCall( "org.kde.blu