/srv/irclogs.ubuntu.com/2016/03/06/#ubuntu-app-devel.txt

evanlinjinHey all. Need some help here. How can I integrate SQLite into Ubuntu Phone App which has a C++ backend?07:47
evanlinjinappdevs How can I integrate SQLite into Ubuntu Phone App which has a C++ backend?07:48
=== danialbehzadi1 is now known as danialbehzadi
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:01
gerry__I suppose my question is where do I start I have the usual problem too much information17:05
nik90ahayzen, Hi18:24
ahayzennik90, o/18:24
nik90ahayzen, where do I find online docs on MediaPlayer Playlist property?18:25
ahayzenin the music-app :')18:25
nik90I looked at Qt Multimedia 5.5 MediaPlayer QML, and I couldn't find that property18:25
ahayzenit is 5.618:25
nik90ah18:25
nik90okay, so I will store my queue in localstorage and then pass that model to playlist and manage currentIndex and so on..18:26
ahayzennik90, although something like this looks close .. https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/QtMultimedia.Playlist/18:26
ahayzennik90, just copy what we do until save() works18:26
nik90In your implementation, since you guys have Shuffle and Repeat modes, it is increasing the complexity of your implementation.18:26
ahayzennot for this bit..18:26
ahayzennik90, you need the saveQueue() method http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L25318:27
ahayzennik90, 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#L15718:27
nik90ahayzen, what's the need for pendingCurrentIndex? Do I need it as well?18:28
ahayzenthat stuff is because addItem(s) is async18:28
nik90Can'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
nik90hmm18:28
ahayzenso to get the setting of the currentIndex done at the correct time it has to be done *after* the first item is actually added etc18:28
nik90ok18:29
ahayzennik90, if you want to store the currentIndex ...18:29
ahayzennik90, that is done here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L5918:30
ahayzennik90, all the pendingCurrentIndex stuff is only for trackClicked() to work correctly18:30
nik90ok18:31
ahayzenas you can't, or when we developed it you couldn't, set the index before adding the items up to that18:31
ahayzenso if you had currentIndex=5 ... you couldn't set that until there were 5 items in the queue18:31
ahayzenand as addItem(s) is async, you have to wait for the signal to be fired18:31
nik90ah ok..18:32
ahayzenif that makes sense ?18:32
ahayzenyou probably won't notice it on small queue sizes18:32
nik90Where do you guys check for the fired signal?18:32
ahayzenbut when we got onto testing 100s of songs, without it weird stuff started happening18:32
nik90yeah our queues should be much smaller18:32
nik90I see processPendingCurrentState()18:33
ahayzennik90, that is the onItemInserted .. http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L13718:33
nik90ok, I think I have a basic idea of how this works. I will get a start on this for Podbird. Wish me luck :P18:33
ahayzennik90, can you not just directly copy our Player.qml ?18:34
ahayzenor at least the Playlists part of it18:34
nik90I 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
ahayzenyeah if you copy that part, at least you know everything should 'work' :-)18:35
nik90yes18:36
nik90thnx for the help. this should help me get started.18:37
ahayzenno problem, ping me if you need any extra help18:43
danialbehzadiHi there.22:19
danialbehzadiWhen 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?22:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!