[07:47] <evanlinjin> Hey all. Need some help here. How can I integrate SQLite into Ubuntu Phone App which has a C++ backend?
[07:48] <evanlinjin> appdevs How can I integrate SQLite into Ubuntu Phone App which has a C++ backend?
[17:01] <gerry__> 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] <gerry__> I suppose my question is where do I start I have the usual problem too much information
[18:24] <nik90> ahayzen, Hi
[18:24] <ahayzen> nik90, o/
[18:25] <nik90> ahayzen, where do I find online docs on MediaPlayer Playlist property?
[18:25] <ahayzen> in the music-app :')
[18:25] <nik90> I looked at Qt Multimedia 5.5 MediaPlayer QML, and I couldn't find that property
[18:25] <ahayzen> it is 5.6
[18:25] <nik90> ah
[18:26] <nik90> okay, so I will store my queue in localstorage and then pass that model to playlist and manage currentIndex and so on..
[18:26] <ahayzen> nik90, although something like this looks close .. https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/QtMultimedia.Playlist/
[18:26] <ahayzen> nik90, just copy what we do until save() works
[18:26] <nik90> In your implementation, since you guys have Shuffle and Repeat modes, it is increasing the complexity of your implementation.
[18:26] <ahayzen> not for this bit..
[18:27] <ahayzen> 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] <ahayzen> 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] <nik90> ahayzen, what's the need for pendingCurrentIndex? Do I need it as well?
[18:28] <ahayzen> that stuff is because addItem(s) is async
[18:28] <nik90> 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] <nik90> hmm
[18:28] <ahayzen> 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] <nik90> ok
[18:29] <ahayzen> nik90, if you want to store the currentIndex ...
[18:30] <ahayzen> nik90, that is done here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L59
[18:30] <ahayzen> nik90, all the pendingCurrentIndex stuff is only for trackClicked() to work correctly
[18:31] <nik90> ok
[18:31] <ahayzen> as you can't, or when we developed it you couldn't, set the index before adding the items up to that
[18:31] <ahayzen> so if you had currentIndex=5 ... you couldn't set that until there were 5 items in the queue
[18:31] <ahayzen> and as addItem(s) is async, you have to wait for the signal to be fired
[18:32] <nik90> ah ok..
[18:32] <ahayzen> if that makes sense ?
[18:32] <ahayzen> you probably won't notice it on small queue sizes
[18:32] <nik90> Where do you guys check for the fired signal?
[18:32] <ahayzen> but when we got onto testing 100s of songs, without it weird stuff started happening
[18:32] <nik90> yeah our queues should be much smaller
[18:33] <nik90> I see processPendingCurrentState()
[18:33] <ahayzen> nik90, that is the onItemInserted .. http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L137
[18:33] <nik90> 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] <ahayzen> nik90, can you not just directly copy our Player.qml ?
[18:34] <ahayzen> or at least the Playlists part of it
[18:35] <nik90> 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] <ahayzen> yeah if you copy that part, at least you know everything should 'work' :-)
[18:36] <nik90> yes
[18:37] <nik90> thnx for the help. this should help me get started.
[18:43] <ahayzen> no problem, ping me if you need any extra help
[22:19] <danialbehzadi> Hi there.
[22:19] <danialbehzadi> 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?