[07:47] Hey all. Need some help here. How can I integrate SQLite into Ubuntu Phone App which has a C++ backend? [07:48] appdevs How can I integrate SQLite into Ubuntu Phone App which has a C++ backend? === danialbehzadi1 is now known as danialbehzadi [17:01] hi I have written a program in java and I was thinking how to distribute it I have got myself very confused with mobile apps and normal apps ........etc? [17:05] I suppose my question is where do I start I have the usual problem too much information [18:24] ahayzen, Hi [18:24] nik90, o/ [18:25] ahayzen, where do I find online docs on MediaPlayer Playlist property? [18:25] in the music-app :') [18:25] I looked at Qt Multimedia 5.5 MediaPlayer QML, and I couldn't find that property [18:25] it is 5.6 [18:25] ah [18:26] okay, so I will store my queue in localstorage and then pass that model to playlist and manage currentIndex and so on.. [18:26] nik90, although something like this looks close .. https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/QtMultimedia.Playlist/ [18:26] nik90, just copy what we do until save() works [18:26] In your implementation, since you guys have Shuffle and Repeat modes, it is increasing the complexity of your implementation. [18:26] not for this bit.. [18:27] nik90, you need the saveQueue() method http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L253 [18:27] nik90, then just add saveQueue() to onItem{Changed,Inserted,Removed} http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L157 [18:28] ahayzen, what's the need for pendingCurrentIndex? Do I need it as well? [18:28] that stuff is because addItem(s) is async [18:28] Can't I just check the currentIndex position and use that to check if there are more items in the playlist to be played? [18:28] hmm [18:28] so to get the setting of the currentIndex done at the correct time it has to be done *after* the first item is actually added etc [18:29] ok [18:29] nik90, if you want to store the currentIndex ... [18:30] nik90, that is done here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L59 [18:30] nik90, all the pendingCurrentIndex stuff is only for trackClicked() to work correctly [18:31] ok [18:31] as you can't, or when we developed it you couldn't, set the index before adding the items up to that [18:31] so if you had currentIndex=5 ... you couldn't set that until there were 5 items in the queue [18:31] and as addItem(s) is async, you have to wait for the signal to be fired [18:32] ah ok.. [18:32] if that makes sense ? [18:32] you probably won't notice it on small queue sizes [18:32] Where do you guys check for the fired signal? [18:32] but when we got onto testing 100s of songs, without it weird stuff started happening [18:32] yeah our queues should be much smaller [18:33] I see processPendingCurrentState() [18:33] nik90, that is the onItemInserted .. http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L137 [18:33] ok, I think I have a basic idea of how this works. I will get a start on this for Podbird. Wish me luck :P [18:34] nik90, can you not just directly copy our Player.qml ? [18:34] or at least the Playlists part of it [18:35] I will copy the Playlists part of it since we do some stuff in our MediaPlayer implementation already that I need to integrate it with. [18:35] yeah if you copy that part, at least you know everything should 'work' :-) [18:36] yes [18:37] thnx for the help. this should help me get started. [18:43] no problem, ping me if you need any extra help [22:19] Hi there. [22:19] When I click on the "Run" button in Qt creator, it just says "No executable specified.", But I can run the qml file with "$ qmlscene Main.qml" in terminal. What's the problem?