Sunday, 2013-12-29

*** KangOl has quit IRC00:08
*** nk1ox has quit IRC00:11
*** zhost has quit IRC00:13
*** spider-mario has quit IRC00:13
*** DarkSim has quit IRC00:18
*** KangOl has joined #sailfishos00:18
*** louisdk has joined #sailfishos00:20
*** Fazeriina has quit IRC00:23
Nirkusartemma: please excuse my noobness, but how do i access gstreamer stuff from a QML app? :)00:23
artemmaNirkus: I am not really an expert on it. I used some Qt classes from gstreamer in the past, but just a little00:24
artemmaMSameer is the person for gstreamer00:24
artemmaalso note that right now code just using gstreamer won't be accepted to app store00:25
artemmayou'll have to ship your own copy of gstreamer together with the app00:25
Nirkusartemma: i am really struggling with finding the correct/any docs on how to go any further than those Sailfish UI components ;)00:25
*** fk_lx has quit IRC00:26
Nirkusso, right now, I wont get a simple torch app into the app store?00:26
artemmaNirkus: if you are looking for something cool meaning other libs, have a look at libraries allowed at
artemmaNirkus: my torch app is waiting in QA in harbour. And update using gstreamer will go next :)00:27
artemmabut these have to be not exactly simple torch apps for now00:27
super_hirsute"GDB debugging from Qt Creator is broken at the moment on both emulator and device. Workaround is to run GDB from the command line." -- that'll be why then00:27
Nirkusartemma: ..ok, that may be a hint, why there are so few apps available in the Jolla store currently ;)00:30
artemmaNirkus: I would rather say that development stations appeared just a few weeks ago. And SDK a little earlier :)00:30
artemmakind'a hard to develop cool stuff without the device00:30
artemmaand target users to be excited about your app00:31
MSameerNirkus: what are you trying to do ?00:36
lbtcan someone with a device check what permissions /home/nemo has ?00:37
Elleolbt: drwxr-x---00:38
Elleolbt: belonging to user nemo, group nemo00:38
lbtgood - my wife's was 775 which seemed wron00:39
*** Naranek has joined #sailfishos00:42
*** M4rtinK has quit IRC00:42
NirkusMSameer: I was trying to develope a torch app to get started00:48
MSameerNirkus: artemma did that already so he can help00:48
MSameerNirkus: problem is: QtMultimedia does not work for whatever reason00:49
MSameerso the only way to do it is via gstreamer unless you want to wait for QtMultimedia00:49
*** zhxt has joined #sailfishos00:49
*** rcg has quit IRC00:53
mfulzcould someone answer me a simple c++ question?00:53
mfulzconstructor ( int param1, int param2) : m_param(param1), m_param2(param2) { my stuff; }00:54
mfulzwill the assignment of the params after : m_... done before or after the code, which is executed inside the constructor?00:55
MSameerso object will be created, m_param = param1 will be executed00:55
MSameerthen the code in the constructor will be executed00:56
mfulzgood - makes sense anyway :)00:56
artemmaNirkus: I did flashlight two ways: forcing camera to seek for focus all the time (hence forcing flash to be on); via gstreamer as MSameer says.. but in quite an ugly way. MSameer will probably make a way more proper torch and I'll learn how to properly bundle libs in from it then :)00:56
MSameeryou can also do: constructor(int param1, int param2) { m_param1 = param; my code }00:57
MSameerartemma: there is no guarantee that my app will be available any time soon or it will be accepted00:57
MSameerartemma: i am on vacation with a laptop that is overheating00:58
MSameerand seems I caught flu :/00:58
artemmaMSameer: I am personally after an example of bundling libs is whoever does it :)00:58
artemmaMSameer: sorry for you00:58
artemmaI don't mean to push for anything. It's fine if proper flashlight is ready many months after mine is in store after all00:58
MSameerartemma: I gave you the chance :)00:59
artemmaLet's see if harbour gives one too :)00:59
MSameeryou wanted to be the first one and you are now the first one!00:59
artemmaThere's no way to clean the queue, I have to wait for unpredictable time until the prev version is approved, then again for proper version00:59
lbtit is christmas :)01:00
artemmaMSameer: yes, being #iamthefirstone is so Jolla, isn't it? ;)01:00
MSameerlbt: no. it's now new year :D01:00
mfulzbefore someone is going to take it over: I'm working on an openvpn client atm. :D01:00
lbtmfulz: wtf... I missed it?  Again!01:00
*** b0bben has joined #sailfishos01:00
MSameermfulz: kudos!01:00
lbtMSameer: even!01:00
lbtmfulz: too late :)01:00
*** master_of_master has joined #sailfishos01:00
mfulzhum? who is doing it already and how is the state?01:01
* artemma wants instagram, but that's probably most complex of them all and probably with little interest from hardcore linux hackers01:01
lbtI was ... but I'm happy to drop it01:01
mfulzhm how far you are before dropping :)01:01
lbtmfulz: essentially nowhere .. I was digging into connman-vpn first01:02
MSameerlbt: push the code to git and GPL it please so people can build upon it01:02
mfulzah ok01:02
artemmaI also want Pocket (good read it later app) and Buffer, but not sure if Pocket has API for reading stuff01:02
mfulzI want to finish the settings stuff tomorrow (basic ones atm for first version just with certs and no pw)01:02
mfulzafter that I'll going into the dbus stuff01:02
mfulzbut doesn't seem too complicated - connman is quite well documented01:03
lbtmfulz: just be aware that it's not likely to get into store01:03
MSameeri am actually trying to clean the code of one of my harmattan apps and wondering how to support harmattan and sailfish from the same codevase01:03
mfulzwhat are the requirements to get into the store?01:03
lbtmfulz: my guess is you'll need to deploy to /etc or run with root priv01:03
MSameerconman is not whitelisted01:03
mfulzhm no01:03
*** master_o1_master has quit IRC01:03
artemmaBTW, do you guys know what's Jolla attitude to sharing and/or high level interapp interop? Say, is Android-like sharing of browser links to Facebook, Twitter, ReadItLater, whatever-you-installed-for-sharing possible?01:03
MSameermfulz: depends on the libraries you link to01:04
mfulzfrom the shell with normal nemo user I can use the dbus connman stuff01:04
lbtmfulz: and creating tun/tap interfaces ?01:04
mfulzbut didn't test to a full vpn connection01:04
lbtmfulz: OK - that's good01:04
mfulzanyway I'll try and get back when a first test for others can be done as well :)01:04
lbtI just want you to be prepared that it may not get in01:05
MSameerthen it goes to openrepos?01:05
lbtwe can always push it to the community repo and explore how to do that01:05
mfulzah great01:05
mfulzwhat is the comm repo?01:05
MSameerartemma: actually, that reminds me. I will push the torch app to open repos01:05
lbtbut they don't exist yet (on the OBS side)01:05
MSameermfulz: openrepos.net01:06
lbtmfulz: well, there is the ... but the build side is on's builder01:06
mfulzok going to work on my settings stuff01:06
artemmaMSameer: that probably means that you won't care about bundling the libs with app?01:06
MSameerartemma: yes01:06
lbtanyhow... 'night all01:06
*** b0bben has quit IRC01:07
MSameerartemma: it's my way to protest against the store restrictions :p01:07
mfulzbut if the app will run without any root or other dirty tricks it can be added to the normal store?01:07
artemmaMSameer: it's a pity. A working example on integrating libs is missing01:07
MSameermfulz: it depends on the qml and C++ libraries you use01:07
artemmaand another one on integrating a sample standard Qt module too01:07
vgradeMSameer: thp wrote some words on supporting sailfish, harmattan01:07
mfulzatm just normal stuff qtquick, salicia, qsettings, stuff like that01:08
mfulzof course I'll need to use qt-dbus for communicating with connman01:08
MSameervgrade: problem is now we support qt4/qtquick 1.0 and qt5/qtquick 2.001:08
MSameervgrade: I did it for camera+ but it's _ugly_01:08
MSameerartemma: true but I am sure the SDK team is working on that01:09
vgradeMSameer: ah, ok that page was from initial qt4 sdk01:09
MSameermfulz: point is: one cannot tell before seeing all the libraries01:09
mfulzok np01:09
MSameermfulz: but avoid qtwidgets01:09
mfulzas said we'll se when there is something to show01:10
mfulzah no qtwidgets till now01:10
artemmaMSameer: I hope so. So far, SDK wasn't exactly full of examples. And half of known [by me] examples won't pass harbour criteria01:10
MSameervgrade: what I did is I followed his approach but I had import QtQuick 2.0 in all qml files and there is a harmattan qt4 file system plugin which loads the qml files and replaces import QtQuick 2.0 with import QtQuick 1.0 during _run time_01:10
MSameervgrade: really ugly but works01:11
artemmalooks more like old good (bad) Nokia style examples that only work if you are inside Nokia :)01:11
MSameerartemma: I am sure they are working on fixing it01:11
MSameerartemma: beside, I don't check the examples. I create my own according to the public roles01:12
MSameerso following what I do might not be the best approach01:12
artemmaMSameer: somebody will do examples earlier or later. I share mine when I can and where I think I could make input01:12
artemmaarrgh, QSocketNotifier again doesn't not notify me about /dev/input/event12 Meanwhile in the console I can perfectly see input happening01:13
artemmaI must be missing something very basic01:13
MSameerartemma: true but I am protesting against store (and at the same time trying to left the restrictions)01:13
MSameerhard for me to say that I am protesting against the store. hope no one will kick my *** :p01:14
MSameerartemma: are you sure the device file is the correct one?01:14
artemmaMSameer: No, I am not sure, but for start I want to read at least something01:16
artemmaHere's the code: simplest I could come up with:
artemmaand I can see input from same device in console just via cat  /dev/input/event1201:17
MSameerartemma: try QSocketNotifier::Exception ?01:19
*** KangOl has quit IRC01:19
artemmareading about exception..01:20
artemmainterestingly I was getting notifier alerts before (but failed to read them), not I don't get notiifcations. Oh well, will try exception now01:22
MSameeri think entries in /proc work only with exception but not sure01:23
MSameerartemma: i think you should stop the notifier, read the data and then start notifier again01:23
MSameerat least that's what I can see via the docs01:23
MSameerbut i really don't know01:23
MSameerI use low level C for such things01:23
artemmahmm.. I am mostly basing on
* artemma doesn't mind any lower level stuff, no optimization needed there, will just use first thing that works01:25
artemmaI want to see if I can reliably hook to long volume button press01:25
MSameerthat's easy01:26
artemmaand anyway, right now I don't even get notifier's notifications, so nothing to stop01:26
MSameerartemma: install an event filter and watch for key presses01:26
MSameerthat gives you volume +/-01:26
artemmaMSameer: in c level, do you have blocking read? So that it would wait-wait-wait for presses?01:26
MSameera long press = volume release time - volume press time01:27
artemmaevent filter? Won't it filter only events when my app is already on screen?01:27
MSameerif the value is greater than X and X is a constant you define01:27
artemmai.e. events coming to my window anyway01:27
MSameeryou pass the filters01:27
artemmaI want to capture events while I am on background01:27
MSameeryou pass the events01:27
MSameeryou only inspect them01:27
artemmain far bright future a daemon might watch and start flashlight on long press01:28
mfulzhow is qt handling errors in general? I can't find anything about exceptions01:28
MSameeri think there are no exceptions in Qt but I don't know01:28
mfulzyep there aren't because of compatibility but I don't find the error handling approach01:29
MSameerartemma: i think read() is blocking by default01:29
MSameermfulz: what are you trying to do?01:30
artemmamfulz: normal C++ exceptions should be fine01:30
mfulzMSameer: Checking if a file is accessible inside a constructor and if not -> do some error handling01:31
MSameermy jolla is @ the room where my kid is sleeping and I don't want to wake him up to test the qsocketnotifier bits01:31
MSameermfulz: a Qt-way would be a function returning a bool01:31
mfulzartemma: yes I know I could, but if qt isn't using the exceptions of c++ (there is a good reason for: compatibility) there should be another possibility01:32
MSameerbut exceptions should work too01:32
mfulzMSameer: Can constructors return variables?01:32
artemmamfulz: qt comes from old times without good exception support on platforms01:32
MSameermfulz: no01:32
mfulzso ok then I go for exceptions in this case01:33
MSameerbut then I don't know Qt fully01:33
*** Morpog_ has quit IRC01:33
mfulzah ok thanks01:33
MSameermfulz: what I do in these cases is:01:34
MSameerclass Foo { Foo(const QString& file) { m_found = QFile::exists(file); } bool isValid() { return m_found; } }01:34
MSameerclass Foo { static Foo *instance(const QString& file) { if (!QFile::exists(file)) { return 0} } }01:35
MSameeror you can use exceptions01:35
MSameerI have to admit that I was a fan of exceptions until I worked for Nokia :p01:36
mfulzI'm not a fan of them but using them normally where it's giving me "better" code01:37
MSameerthat's always the best thing to do :)01:38
mfulzand in comparism to your example doing something like { if(!checkFile(file)) throw ... } seems to be better to me :)01:38
MSameerbut take care that there is a race condition in my code01:38
*** Andy80 has quit IRC01:39
MSameerbecause the file might be created or deleted since the whole block is not atomic01:39
*** Andy80 has joined #sailfishos01:39
MSameerbut if you are the only user of that file then you might not want to fix that01:39
mfulzyes in that case it's really possible to ignore it01:40
mfulzfor a vpn thing the certs should really be binded to one user :)01:40
*** Andy80 has quit IRC01:44
valdur55I just found out that the jolla uses git as vcs01:45
MSameerfor what?01:46
artemmaMSameer: reading /dev/input/event12 using see (open, basically) returns endless stream of 0x40 :/01:46
artemmawithout any button presses01:46
artemmaand nothing if watching same in console01:46
jani   and binaries for testing purposes @
mfulzjust some fun in between:
artemmafd = open("/dev/input/event12", O_RDONLY);01:48
artemma        read(fd, &c, sizeof(c));01:48
artemma        printf("<0x%x>\n", c);01:48
janiMSameer: thanks btw for initial porting. based on your work, missing parts fixed or removed altogether - rewritten settings page completely..01:48
MSameerjani: glad to see someone maintaining it :)01:49
janii need something like that everyday and android counterparts are just not good enough..01:50
MSameerartemma: maybe that's why the socket notifier was not notifying?01:50
janiso i had to =)01:50
MSameerjani: I need it too that's why I did the initial port :)01:50
artemmaMSameer: possibly. Problem is I don't really understand why and what it means :/01:50
MSameeri need to try it but my jolla is way from me01:51
artemmaI thought opening an input file from C is same as printing to console01:51
* artemma trying jopas01:51
MSameerartemma: does it change when you press volume button?01:51
MSameerjani: but what is the "jo" ? jolla?01:51
artemmajani: btw, that sounds not very nice in Russian. Something like asspass01:51
janiacid test has been done :D i went to work with it on friday01:52
MSameerartemma: it's finland specific :)01:52
artemmaMSameer: probably not, hard to say as it reads all the time. Maybe I inject thread sleep01:52
*** Tumeez has quit IRC01:52
artemmaactually it is more like in the middle between AssPas and FuckPas :)01:52
artemmadepending on how you read J :)01:53
janiJolla-Opas = jopas ..  also, there's a  finnish saying called "jopas jotakin" which is something like "now thats something!"01:53
MSameermy finnish is non existent :'(01:53
MSameerjani: I was planning to do more sailfish-ification but now I am glad you will take care of it01:54
MSameerI really cannot maintain all the apps I need01:54
janior, "I'll be damned" according to the dictionary translator .. but anyway, its there now, been hacking on it since xmas and just trying to learn qml - never bothered to do so during harmattan so good excuse to do so now too as i now mainly  work with .js anyway.01:56
janiand will continue to maintain until unforeseen future.01:56
artemmajani: looks pretty cool, actually works and is useful01:57
artemmaa couple of minor things: It gets half frozen while tries to connect when doing address lookup for the first time (I guess whole device is frozen, not just your app)01:58
artemmaand I cannot set my address as favorite for some reason. Only option available is current location01:58
janiyes. favourites can be added atm only from "manage favourites" ..01:58
MSameerit was possible to add them via long tapping the star icon01:59
artemmaAnd then minor layouting things that you'll be improving anyway01:59
MSameercould someone put a screenshot somewhere please?01:59
artemmasuch as possibly creating such layout that all info fits to screen even when keyboard is shown01:59
MSameerjani: I was also planning to kill a lot of js and replace it with qml and/or C++ because loading some pages is really slow02:00
janiMSameer: oh i didnt check the whole codebase, i havent removed that atleast ;)02:00
MSameerjani: maybe it still works :D02:00
artemmaand now icon showing number of suggestions (2) is real tiny - hard to tap on. Maybe whole line could be tappable?02:00
artemmalong press seems to work only if address is found :)02:01
artemmamine is not (exactly my house number is not present in db)02:01
MSameerthat's how it should work02:01
MSameeri am stupid. It's a finland specific apps but russian-speaking people do live in finland02:02
* MSameer slaps himself02:02
artemmayet route is found fine with my address (it subsitutues it with the closest recorded one)02:02
artemmaMSameer: what's bad about russians in Finland? :)02:02
janithere's no translations yet and some strings are not even ready for translations ..02:03
*** ericcc has joined #sailfishos02:03
MSameerartemma: nothing. It's when you didn't like the name in Russian and I said that it's a finland specific app meaning that Russian speakers will not download it :p02:03
MSameerjani: I killed the translations because I don't know Finnish but it's still available in the original github repos02:04
artemmaMSameer: pressing button while reading /dev/input/event12 with delay doesn't change anything. Only 0x40 comes02:04
MSameerthat is strange artemma!02:04
artemmayeah, there are quite many russians in finland, especially in meego circles :)02:04
artemmafor(int i=0; i>-500; i++) {02:04
artemma        fd = open("/dev/input/event12", O_RDONLY);02:04
artemma        read(fd, &c, sizeof(c));02:04
artemma        printf("%d: <0x%x>\n", i, c);02:04
artemma        QThread::msleep(500);02:04
artemma    }02:04
janiMsameer: lots of new strings been added since too..02:04
artemmaWell, Jopas name is not super bad, it's not exactly identical to Fuck, but jokes are guaranteeed02:05
MSameerfuck pas might be cool :P02:05
artemmaI would be fine telling its name to my dad, maybe not so much to my kids :)02:05
MSameerit's better than lumia which has its own meaning in Spanish :p02:06
janiartemma: someone once said there's no such thing as bad publicity =)02:06
MSameerartemma: you will be surprised when your kids tell you :D02:06
artemmaMSameer: I am theretical person regardign kids so far02:06
*** Morpog_Mobile has quit IRC02:06
MSameerartemma: then no need to worry :)02:06
ln-think about the children02:07
* artemma tries to deliver the exact degree of how it sounds. Taking it into account or not is up to you. I'll use the app anyway02:07
*** zhxt has quit IRC02:07
artemmaand use it happily02:07
MSameerme too02:08
MSameerif I can only get rid of skype :(02:08
MSameeri don't want to install android skype :'(02:08
artemmawhat does the green/yellow circle on the lines under addresses mean?02:08
janiMsameer: added few screeenshots ..02:08
artemmaskype should be easy(ish) to create, they have C libs for ARM02:09
MSameergreen means the address is unique. yellow I think means the address is not unique02:09
janito openrepos page that is ..02:09
* artemma was creating a custom skype video client a year or two ago with Qt and GStreamer02:09
MSameerjani: will check it. thanks :)02:09
MSameerartemma: the libs are no longer being offered02:09
artemmamicrosoft way I guess..02:10
*** Andy80 has joined #sailfishos02:10
MSameerdid rainisto contribute to the sailfish port ? :p02:10
MSameerartemma: exactly02:10
artemmathey have to provide them to device manufacturers at least..02:10
artemmaike smart tvs02:10
janiMsameer: same fixes on package, not much on actual code..02:10
MSameerwhy did he not submit the changes back :P02:10
janii based my fork on his fork..02:10
MSameerwait until I meet him at the office :p02:10
artemmajani: do you think killing Header could be a good idea? Then everything might fit to screen even with keyboard open02:10
artemmajani: what does the green/yellow circle on the lines under addresses mean?02:11
*** louisdk has quit IRC02:12
janiartemma: main page will be definitely be rewritten to fit better .. also settings page is still too long  and the important parts are not fully in the view ..02:12
MSameerjani: nice settings page. great job!02:12
artemmaAnd pulley menu is cool, but.. I am still missing the eaily accessible SEARCH NOW! button. Maybe top-right action instead of a title would be sailfish enough?02:12
janiso yes.. usability will be optimized  ..02:12
mfulzMSameer: better go for a xmpp client with voice support :)02:12
MSameermfulz: voice quality is not that good :/02:12
* artemma is sure app cover in the future will show reminders when to exit bus, etc02:13
mfulzI know but still better than beeing locked to MS02:13
artemmayes, settings page is cool indeed02:13
MSameermfulz: my mom doesn't care about MS lock. She cares about sound02:13
MSameerartemma: do you have the skype stuff available somewhere?02:14
MSameerartemma: I cn always try to extract the skype n9 stuff02:14
artemmaHmm. I saved my address to favorites. How do I put into into From field?02:14
*** Andy80 has quit IRC02:14
artemmaMSameer: I used skype really a year or two ago02:14
MSameerartemma: tap the star02:15
artemmaand that was closed company code02:15
MSameerartemma: I hate you :)02:15
Nirkushowdo i execute $stuff as soon as a page is entered/rendered?02:15
artemmaAH, now I've got what Star is doing there! It looked like on-off switch, but in fact it lets you Choose a favorite02:15
artemmaNirkus: Google "Component.onCompleted"02:15
janinirkus: onCompleted signal ?02:15
MSameerNirkus: on the first time the page is created or whenever it becomes active?02:16
artemmajani: all in all it is a really useful app with a potential of becoming actually great02:16
janiMSameer: on rainisto's fork .. i talked with him briefly few days ago and sand him a pr too . .but he didnt sound very eager on getting things done =)02:17
artemmajust some UI thinking and careful going through all screens added and it will be totally awesome02:17
NirkusMSameer: the first time should be the right choice in my case02:17
MSameerjani: he's busy and like me he fixed his stuff and that's it02:17
MSameerNirkus: Page {02:17
artemmastill what does the green/yellow circle on the lines under addresses in Jopas mean? :Can't figure it out )02:17
MSameerNirkus: Component.onCompleted: do_stuff02:17
MSameerNirkus: }02:17
MSameerartemma: unique/non-unique address02:18
MSameerartemma: if it's yellow then you get a bubble02:18
artemmaah.. then it's duplicate for the (2) bubble?02:18
MSameerartemma: an indicator. You really did not use n9 with meegopas did you ? :)02:19
artemmaMSameer: was meegopas a free app?02:19
MSameeri ate 6 pieces of bread and still hungry. damn!02:19
MSameerartemma: yes02:19
MSameerartemma: free and GPLv302:20
artemmaI remember two apps for helsinki for N902:20
MSameerartemma: that's why we forked it and ported it to sailfish02:20
artemmaone free that was Okay (proobably meegopas)02:20
MSameeromat pysakit was one02:20
MSameerwhich was crap02:20
artemmaand another one was 2 euros and was totally awesome02:20
artemmaI switched to the awesome after maybe a month of meegopas02:20
MSameermeegopas improved02:20
MSameerand it's the base of the sailfish app02:21
artemmathere was a map showing me on the map, gently alerting when its time to exit a bus, and other blackjack and sluts02:21
NirkusMSameer: which components do have that .onCompleted? auto-completion cant seem to find it..02:21
janii used nothing but meegopas for actual travelling on n9 ..02:21
MSameeri did the initial port, rainisto did some fixes and jani is now reworking all the crap I added :D02:21
MSameerNirkus: all QML components have that02:21
artemmacommunity work - totally cool for getting something to new platform quickly02:21
MSameerNirkus: Component.onCompleted:02:22
janione app had this alarm thing when you actually approached the stop you need to get off.02:22
artemmaNirkus: onCompleted is so called attached property. Attached by Component. Hence it is actually Component.onCompleted02:22
*** Tumeez has joined #sailfishos02:23
artemmaNirkus: see for example here:
janiwould have started earlier  with this but a) never got hired  and b) did not pre-order  so had to wait for dna to start selling it..02:23
*** jjarven has quit IRC02:23
janiand yeah, so far, quite awesome ;)02:24
Nirkusartemma: ah ok, so it is attached by me stating the Compontent.onCompleted?02:24
artemmait is attached by Component. It is one of the object properties. You can set a function/code to this property02:25
artemmajust as you would do for onClicked02:25
artemmaSince every pure QML object (and all non-pure ones too I think) is created by Component, they will all have this property02:26
*** Morpog_Mobile has joined #sailfishos02:26
janibtw, is there any good pattern on how to isolate qml from .js code? I sorta dont like it that the ui declarations contain event code ..02:26
*** joecool has joined #sailfishos02:26
artemmajani: My primary pattern is to use states as much as possible02:29
*** furikku has joined #sailfishos02:29
artemmathat gets rid from a lot of tricky code02:29
artemmaand if there's a lot of pure JS logic, that can go to a JS library02:30
*** Pat_o has quit IRC02:31
janiok, will have to check on how to utilize states - still learning02:33
*** ericcc has quit IRC02:35
*** ericcc has joined #sailfishos02:36
*** ezech has quit IRC02:37
Nirkusthe jolla camera seems to be pretty b*tchy02:37
Nirkusis there a cenvenient way to debug runtime values of enums?02:38
*** ericcc has quit IRC02:38
*** jjarven has joined #sailfishos02:39
Nirkusargh, i should recharge my brain-thingy02:39
MSameerNirkus: what's with enums?02:41
MSameerjani: a lot of the js code can be replaced by stuff from QtLocation and QtPositioning02:42
*** Pat_o has joined #sailfishos02:42
MSameerjani: I don't remember all the details now but that was my impression02:42
MSameerjani: that would kill some js code02:42
janiMSameer: havent got that far on familiarizing the whats in the codebase, just wanted to get it first into usable state  .. albeit, i did notice that there's quite a few qml files that do not seem to be even used anywhere.02:44
janibut good to point that out. qtpositioning is already  in use..02:45
janithus, not going to submit to store anytime soon as its not yet accepted..02:46
MSameermight be worth checking the code for n9 and sailfish so you can see the changes I did02:46
NirkusMSameer: i am trying to get the actual enum declarations to interpret runtime values02:46
MSameerNirkus: I don't get you :/02:46
NirkusMSameer: :o) while debugging, how do i convert the runtime value of an enum (the number) into the "semantic" value?02:48
MSameerthe first enum value is 002:48
Nirkususually, i would use the declaration of the enum / header files02:48
MSameerso enum { Foo, Bar, Zot }02:48
MSameerFoo = 0, Bar = 1, ...02:48
janidb handling is quite funky atleast02:49
*** b0bben has joined #sailfishos02:49
MSameerjani: was planning to kill that and use QSettings02:49
NirkusMSameer: and how do i find the corresponding declaration using this Sailfish IDE thingy?02:49
jani"select first to check if it exists, insert if that fails" =)02:49
MSameerNirkus: that I don't know really. I don't use that IDE02:49
MSameeri use emacs + sb2 directly02:50
MSameerand test on phone02:50
MSameerfinal RPM built using Mer community OBS02:50
janiscratchbox ;)02:50
MSameerit's inside the build vm02:51
janinever got used to sb2 ..02:51
janinor obs.02:51
MSameerjani: had to use it for jolla. quite easy if you manage to wrap your head around it02:51
MSameerjani: obs is cool but also once you wrap your mind around it02:51
janiit was driven for harmattan too at one point but gladly it never took air under its wings.02:52
MSameerobs is a build system. you give it a _service file which tells it where to get the code from or you give it tarball + spec and it gives you an RPM02:52
MSameerand obs has a command line client too ;)02:52
*** b0bben has quit IRC02:53
janipreferred sb1, it was so much clearer for me, even with all the shitty parts.02:53
artemmajani: in Jopas when you are in the map it'd be cool if the *current* point would be highlighted somehow02:54
janithere is a red dot in the map ? gps might require toggling off and on to make it work - didnt check if its  a bug somewhere ..02:55
janibut the feature is there ..02:55
artemmaif you are into just command line builds (local sb2, not obs), helloworld pro has the copy-pastable instructions02:55
janii have good enough osx with ssd, i can manage with qtcreator atm =)02:56
artemmajani, I mean when you navigate proposed route with right-left buttons. There's no visual change when you do this right-left except for a screen move02:56
MSameerjani: it'd be nice if you would add the spec file too under rpm/02:56
MSameerjani: I can then build it via obs if you want02:57
janiautogenerated spec is good enough ?02:57
MSameeri hope so02:57
janiok, i'll add it.02:57
MSameeryou need to enable positioning from settings in the phone itself02:57
MSameerif that is not enabled then there is no way to get the position02:58
artemmaDo you guys know where/how the list of launcher shortcuts is stored?03:01
MSameerartemma: all launchers?03:01
* artemma thinks of two coding tasks: sorting shortcuts alphabetically and a quick-search laumcher03:01
MSameerrpm -ql jolla-camera | grep desktop03:02
janiMSameer: btw, peeked at your profile in linkedin, i know you =)03:02
MSameerjani: i feel so but i failed to remember :(03:03
janii was in application framework .. long dreadlocks.03:04
mfulzcan I use a dynamic class somehow in qml?03:04
mfulzI've a class that work with a list of other classes03:04
mfulzthese list of classes should be changed inside the qml03:04
janimeegotouch, maintained ruby and testing tools and did alot of integration stuff.03:05
MSameernow I do remember :)03:06
*** ericcc has joined #sailfishos03:07
MSameermfulz: you can make those other classes properties?03:07
MSameers/you can/can you/03:07
MSameerjani: good old days of harmattan and bad days of flop03:07
mfulzdo you have a link which describes it?03:07
janiwell, it was fun while it lasted =)03:08
MSameernot really. I don't really understand what you are trying to achieve03:08
mfulzok I'll try to explain in more detail:03:08
mfulzI've a class which acts as a model for the qml listview (QAbstractListModel)03:08
mfulzin this class I've a list of connection objects (classes that holds the config for a connection)03:09
janinice, i can see the rpmlint results03:09
mfulzso if a value like gateway needs to be updated inside of these list, how can I do it?03:09
mfulzatm. I just know to pass a specific instance of a class to the qml like: view->rootContext()->setContextProperty("FileChooserModel", &model);03:10
MSameermfulz: a better approach would be to have the QAbstractListModel expose all the stuff03:10
mfulzok so perhaps using a struct instead of the class for a connection then03:10
MSameermfulz: actually wait. A standard C++ Qt model so you can emit valueChanged() signal and the view should catch up03:11
mfulzhum never done that before03:11
MSameermfulz: you might like to check QStandardModel03:12
mfulzbut it's more the other way around here: Changes only happen over the gui03:12
mfulzah ok I'll have a look03:12
MSameerwhere each node is an instance of QStandardItem03:12
*** Andy80 has joined #sailfishos03:12
MSameeryou manipulate that and qt does all the magic03:12
MSameermfulz: so you want to update the gui when the conf changes or you want to update the conf when the gui gets edited?03:13
mfulzI want to update the conf when the gui gets edited03:13
MSameerthat's different03:13
MSameeryou need to implement some C++ glue to write the actual file03:14
mfulzI guess I'll do it over the listmodel and let it use an index which holds the selected item03:14
MSameerso you have a list of files which you show via a file chooser model03:14
mfulzah sorry the filechooser was just an example - this is working already03:15
mfulzI'll need to manage connections now03:15
mfulzusing a listview for all connections shown by name03:15
mfulzand when selecting for editing then the connection settings itself should be changeable via the gui and stored afterwards via qsettings03:16
MSameerand when a connections gets tapped, you go to the edit dialog?03:16
mfulzat the start yes03:16
MSameermfulz: that's easy03:16
mfulzhow ? :)03:16
*** Andy80 has quit IRC03:16
MSameermfulz: your settings class should have a Q_PROPERTY() per property you want to show03:16
MSameerQ_PROPERTY(QString host READ host WRITE setHost NOTIFY hostChanged);03:17
MSameerso you define a new property called host of type QString03:17
MSameerwith a setter called setHost(QString) and a getter: QString host()03:17
MSameeri don't know how to explain that :/03:18
mfulzI know the real basic about such property03:18
mfulzbut I'm missing something for the understanding03:18
MSameerwhat are you missing?03:18
mfulzbecause as said via the setContextProperty I just can make an instance visible to the qml?03:19
MSameerin QML, when you set the host property, setHost() C++ method will get called03:19
mfulzah now I got it03:19
MSameermfulz: you need a model and the model holds a bunch of those objects03:19
mfulzI can wrap that around directly in my QAbstractListModel03:20
MSameeredit dialog edits one of those03:20
mfulzand select it over an index a.e.03:20
MSameerwhat I do is I define a new role for the model called "connection" and then in my list delegate I access connection which returns the C++ object itself03:21
MSameerand then I can manipulate it03:21
MSameerpass it around to the edit dialog... etc03:21
mfulzah that's what I wanted todo03:21
MSameerbut take care to set the C++ ownership otherwise QML might do garbage collection and destroy the object03:22
mfulzbut how can I pass an object back from the C++?03:22
MSameervia a role03:22
MSameerjust a sec03:22
mfulzand I can pass a whole class instance back to qml via this?03:24
MSameergrilomodel.cpp has a new role called media03:24
MSameerand each delegate media is a QObject subclass that get fetched from ::data()03:24
mfulzah great so going with a normal QObject derived class I can return via the role and use it like I passed it over via setContextProperty?03:26
MSameermfulz: its a model you can use with ListView and each delegate will get its own object03:26
mfulzcool thank you very much03:26
MSameerthe link to the QML code I gave shows how the delegate accesses the media object03:27
MSameerconsole.log(media.url) <--03:27
MSameeryou can also define a separate role for each object property but that pollutes the delegate namespace a bit03:28
MSameerso I don't like it all the time03:28
mfulzyep I did it for my filechooser because I just needed name + type03:28
mfulzbut for the connection I've 10+ properties which would become ugly03:29
MSameerjust make sure you set Cpp ownership otherwise you might get random crashes03:29
mfulzhow is this done?03:29
MSameerset a parent for the QObject subclass and Cpp ownership03:29
MSameerin the model example there is a ::get() call03:30
mfulzQQmlEngine::setObjectOwnership(media, QQmlEngine::CppOwnership); ?03:30
janidoes spectacle have any decent docs somewhere? mainly looking for changelog support atm and how it works ..  only found this but it doesnt really mentioned anything about changelogs ..03:30
MSameermfulz: yes that's needed to prevent QML runtime from garbage collecting and destroying those objects03:31
mfulzand where is it needed?03:31
MSameerjani: check with lbt but he's asleep now03:31
MSameermfulz: just set it before returning the object03:31
janiok, i'll ask him later then.03:31
mfulzah forget it understood03:31
mfulzthank you very much for the help03:32
MSameerglad to be of help03:32
MSameeri will go get some rest03:32
MSameerit's past 5 am03:32
mfulzme too03:32
mfulzgn8 @all03:32
*** mfulz has quit IRC03:35
*** Jettis has quit IRC03:39
*** Jettis has joined #sailfishos03:41
artemmaMSameer: Skypekit for armv7 seems to be still available (was it you who was interested?)
*** Morpog_Mobile has quit IRC04:04
janidamn.. 6am. i should start sleeping -4hours ago.04:04
*** Morpog_Mobile has joined #sailfishos04:12
*** Andy80 has joined #sailfishos04:13
*** Andy80 has quit IRC04:17
*** Andy80 has joined #sailfishos05:14
*** Andy80 has quit IRC05:18
*** triggerhappy has joined #sailfishos05:24
*** martyone_ has joined #sailfishos05:30
*** promulo has joined #sailfishos05:59
*** Andy80 has joined #sailfishos06:14
*** MFaro-Tusino has joined #sailfishos06:15
*** Andy80 has quit IRC06:19
*** promulo has quit IRC06:21
*** b0bben has joined #sailfishos06:25
*** b0bben has quit IRC06:30
*** amonk has quit IRC06:37
*** ericcc has quit IRC06:44
*** Andy80 has joined #sailfishos07:15
*** Andy80 has quit IRC07:20
*** ericcc has joined #sailfishos07:21
*** planasb has quit IRC07:28
*** planasb has joined #sailfishos07:30
*** ericcc has quit IRC07:36
*** ericcc has joined #sailfishos07:37
*** wellumakinen has joined #sailfishos07:44
*** b0bben has joined #sailfishos07:47
*** martyone_ has quit IRC07:53
*** c0ck4m0u53 has joined #sailfishos07:58
*** b0bben has quit IRC08:04
*** b0bben has joined #sailfishos08:04
*** b0bben has quit IRC08:09
*** Pat_o has quit IRC08:11
*** leinir has quit IRC08:11
*** leinir_ has joined #sailfishos08:11
*** b0bben has joined #sailfishos08:15
*** b0bben has quit IRC08:19
coderusartemma: how your keyboard listener?08:20
*** Pat_o has joined #sailfishos08:26
*** mk2soldier has joined #sailfishos08:29
*** dhbiker has joined #sailfishos08:34
*** b0bben has joined #sailfishos08:35
*** Eismann has quit IRC08:38
*** Bloob has joined #sailfishos08:40
*** Hurrian has quit IRC08:49
*** wellumakinen has quit IRC08:49
*** alexxy has quit IRC08:50
*** fk_lx has joined #sailfishos08:55
*** alexxy has joined #sailfishos08:55
*** wellumakinen has joined #sailfishos08:58
*** itbaron has joined #sailfishos09:00
*** Venemo_ is now known as Venemo09:01
*** wellumakinen has quit IRC09:16
*** Tumeez has quit IRC09:24
*** Sfiet_Konstantin has joined #sailfishos09:26
*** dhbiker has quit IRC09:27
*** SfietKonstantin has joined #sailfishos09:31
*** Sfiet_Konstantin has quit IRC09:31
*** Tumeez has joined #sailfishos09:31
coderusis there any way to disable vkb popup when textarea getting tapped/focussed?09:31
coderusPnuu: its different09:34
*** SfietKonstantin has quit IRC09:36
*** zhost has joined #sailfishos09:37
*** ericcc_ has joined #sailfishos09:37
coderusi'm asking about Qml/Silica development09:38
*** ericcc has quit IRC09:39
*** Pat_o has quit IRC09:40
Pnuucoderus: ah, right09:41
*** martyone_ has joined #sailfishos09:42
*** b0bben has quit IRC09:48
*** b0bben has joined #sailfishos09:49
*** Hurrian has joined #sailfishos09:51
*** b0bben has quit IRC09:53
*** dhbiker has joined #sailfishos09:54
*** Pat_o has joined #sailfishos09:55
*** b0bben has joined #sailfishos09:55
*** martyone_ has quit IRC09:57
*** stephg has joined #sailfishos10:03
coderusi'm just esarching most easy way to display emoji keyboard panel10:06
coderusits very tricky in SIlica10:06
*** SfietKonstantin has joined #sailfishos10:11
*** b0bben has quit IRC10:12
*** b0bben has joined #sailfishos10:13
*** dhbiker has quit IRC10:14
janicoderuns: one solution (albeit not what you asked) would be to write a emoji plugin to maliit but wiki says sdk has been removed.10:15
janis/coderuns/coderus/ =)10:15
*** Zotan has quit IRC10:17
*** b0bben has quit IRC10:17
*** triggerhappy has quit IRC10:18
*** triggerhappy_ has joined #sailfishos10:18
*** dhbiker has joined #sailfishos10:18
*** dhbiker has quit IRC10:20
*** SfietKonstantin has quit IRC10:22
*** kor has quit IRC10:27
*** amizraa has quit IRC10:28
*** SfietKonstantin has joined #sailfishos10:29
*** kor has joined #sailfishos10:35
*** SfietKonstantin has quit IRC10:38
*** stephg has quit IRC10:41
*** zhost has quit IRC10:42
coderuswhy still different TextEdit and TextInput in Qt5? is it so hard to implement property "multiline" for TextEdit?10:42
*** mk2soldier has quit IRC10:48
*** KangOl has joined #sailfishos10:51
*** Superpelican_ has joined #sailfishos10:52
*** Pat_o has quit IRC10:55
*** sdjayna has quit IRC10:57
*** Superpelican_ has quit IRC10:57
*** irtu has quit IRC10:58
*** Superpelican_ has joined #sailfishos10:58
*** dhbiker has joined #sailfishos11:03
*** matoking has joined #sailfishos11:06
*** Morpog_ has joined #sailfishos11:17
*** matoking has quit IRC11:25
*** Superpelican_ has quit IRC11:33
artemmaMSameer: Skypekit for armv7 seems to be still available (was it you who was interested?)
janilbt: awake ? is does spectacle support passing down changelog to spec ? readme didnt mention that ..11:43
*** b0bben has joined #sailfishos11:43
*** b0bben_ has joined #sailfishos11:45
janianother, does OBS still need manual verification after bugzilla account has been created ?11:46
*** DarkSim has joined #sailfishos11:47
*** Zotan has joined #sailfishos11:47
*** leinir_ is now known as leinir11:48
*** mk2soldier has joined #sailfishos11:48
*** Zotan has quit IRC11:50
*** b0bben_ has quit IRC11:50
*** Zotan has joined #sailfishos11:50
*** mk2soldier has quit IRC11:51
*** datagutt has quit IRC11:54
*** mk2soldier has joined #sailfishos11:55
janiand bite me .. why on earth does building on qtcreator keep on adding entries to yaml that are already present  ? for example, it adds /usr/bin/ which clearly shouldnt be added as i dont want my rpm to own /usr/bin/  ..12:00
janimm take that back, issue with project file.12:03
*** zhost has joined #sailfishos12:04
*** louisdk has joined #sailfishos12:05
suyFor me, rebuilding (not the rpm, but just the "copy files" deployment method), edits the .yaml file again and again :-(12:05
*** M4rtinK has joined #sailfishos12:06
suyis freaking annoying, because I always see files dirty in the git repo12:06
janisuy: it adds paths to it ?12:06
suyjani: it changes them of place. Overall contents the same...12:07
*** louis__ has joined #sailfishos12:07
suy*are the same, just in different order12:07
janiyeah, i had same .. here's my hypothesis and possible fix:12:08
coderusjust dont use yaml is solution :)12:08
*** Andy80 has joined #sailfishos12:08
*** artemma has quit IRC12:08
janii had icon desktop and target path's defimned in the pro file .. but these are automatically added if you have CONFIG += sailfishapp  - you need to just define the names and content for those, not paths ..12:09
janii just did that, eg. removed icon.path, desktop.path and target.path and no more yaml or spec changes after a build ..12:09
suyjani: I only have desktop.file, the other files are in OTHER_FILES12:10
jpnurmii don't have those specified and it still randomly changes every now and then12:10
suycoderus: the yaml is there because of the template I started with. I thought it would be necessary if I need to create the RPM and save some .spec work12:10
*** zhxt has joined #sailfishos12:12
coderusi'm not using yaml, i'm writing spec files myself :)12:12
*** Morpog_Mobile has quit IRC12:15
*** KangOl has quit IRC12:15
*** spider-mario has joined #sailfishos12:18
*** dirkvl_ has joined #sailfishos12:18
*** spider-mario has quit IRC12:18
*** KangOl has joined #sailfishos12:18
dirkvl_anyplace i can find some commands for the i2c12:19
dirkvl_such as reading out a specific id12:19
*** matoking has joined #sailfishos12:19
*** spider-mario has joined #sailfishos12:20
dirkvl_or waiting for thing to happen on the interrupt line and then reading?12:20
*** b0bben has quit IRC12:21
*** artemma has joined #sailfishos12:22
*** arcean has joined #sailfishos12:24
*** gabriel9 has joined #sailfishos12:24
*** dhbiker has quit IRC12:29
*** dhbiker has joined #sailfishos12:32
*** Morpog_Mobile has joined #sailfishos12:32
dirkvl_any i2c experts here??12:34
*** MFaro-Tusino has left #sailfishos12:39
*** matoking has quit IRC12:40
tbrdirkvl_: standard tools should work, so documentation for other embedded linux distros should apply12:45
dirkvl_okay good12:46
dirkvl_can you point me in the right direction? :)12:47
*** gabriel9 has quit IRC12:47
dirkvl_trying to build a keyboard, but software is not my specialty12:49
dirkvl_got 3.3v out working12:49
dirkvl_recognined i2c component12:49
dirkvl_now trying to get my phone to listen to the interrupt line12:49
tbrI'd now attempt to use the internet search engine of my least distrust, so you could as well.12:50
tbras to the interrupt line this might be qualcomm specific12:50
dirkvl_yeah i've been using my ugooglizer for some time12:52
dirkvl_but no commands my phone likes ;)12:52
*** mk2soldier has quit IRC13:03
lbtjani: hey13:08
*** super_hirsute has quit IRC13:09
lbtso ... changelogs .. not sure. Our main approach to building is to keep the changelog out of the yaml/spec file and autogenerate it most of the time from git logs13:10
lbtwe use a seperate .changes file for that13:10
lbtOBS appends it to the spec dynamically at build time13:11
lbtsuy: the point of the yaml is to provide a formally structured file for spec data13:12
lbtthat *should* make QtC's life easier13:12
lbtbut apparently even managing the yaml is quite hard - I'm just glad QtC doesn't have to support generic .spec files :13:13
lbtthe SDK is designed *not* to need yaml files - if you're a spec expert then just drop it. OTOH if you're working on community stuff and want to make life easier for non-spec people then it's good13:14
janiit just that a)  building spec from yaml seems to remove changelog alltogether and rpmlint on obs prints out warning if its not there.13:14
lbtI bet most of the sailfish devs have no real clue about the spec files they've been making13:14
lbtis there a .changes fil13:14
lbtcold fingers13:15
janianother thing,  order requirements changes from build to build, so building a package ends up with dirty .spec and .yaml.13:16
lbtthe QtC code is less than optimal13:17
janiatleast my repo doesnt have .chagnges ..13:17
*** dirkvl_ has quit IRC13:17
* lbt has a look13:17
janiand last, does obs access still require manual activation ? i registered to mer bugzilla but obs complains about authentication failure ..13:18
janii think i had access from my nokia email but ... well, im not particularry using it anymore ;)13:18
artemmasuy: they promised QtC will stop corrupting your .yaml/.spec on every save. Or that there will be at least an option for it13:20
janiartemma: thats what i was just talking with lbt ..13:20
artemmaok :)13:20
*** KangOl has quit IRC13:29
*** matt_1979 has joined #sailfishos13:29
lbt"We have no right to distribute it so I would avoid any official statements about how to get it on your device"13:30
lbtwrong channel :)13:30
jani"uups" =)13:31
lbtnp ... just a general comment about stuff that can't be distributed13:32
lbtbasically it's a "no comment"13:32
lbthowever it would be nice if Konversation didn't just close windows with some random accidental keystroke :)13:33
*** b0bben_ has joined #sailfishos13:34
jani99% change the comment was about image for n9  =)13:34
*** jjarven has quit IRC13:38
*** b0bben_ has quit IRC13:39
*** DarkSim has quit IRC13:41
*** KangOl has joined #sailfishos13:42
*** arcean_ has joined #sailfishos13:43
*** arcean has quit IRC13:44
entilis that the up to date documentation online?13:48
*** jjarven has joined #sailfishos13:53
entilok, I figured out that doxygen . is enough to generate a browsable doc ;P13:55
*** sequantz has joined #sailfishos14:03
lbtThoughts :
*** louisdk has quit IRC14:06
MSameerartemma: they don't accept new accounts :/14:08
MSameerartemma: so the only solution for me would be extracting android skype binaries and wrap them somehow but it's really hard without code or docs14:09
artemmajolla could possibly do it as a company..14:10
MSameerThe Skype Developer program is not accepting new registrations.14:10
MSameerjolla can not do the crap I just wrote14:10
MSameerI can do it however by myself14:10
*** wickwire has joined #sailfishos14:10
artemmawhat if existing developer (me or somebody else) wants to build s new app?14:11
MSameerif you have an account already then you can try to login and see14:11
artemmaI could download binaries for you maybe14:11
MSameerbut I don't have that so I cannot do anything14:11
MSameerif you could download them along with docs then I can try to do something14:11
artemmathough there was something about keys, like dev ones can work for 90 days only or something14:12
artemmalicense explicitly prohibits use of skypekit for mobile apps14:13
*** atiti has quit IRC14:13
artemmasorry, I can't download kit for you then. Technically I think I could, but won't like to have my name at explicit license break14:14
artemmamaybe some other skype dev is less sensitive14:14
MSameerartemma: docs maybe?14:15
artemmadocs I could do for you. There are several web pages, will scrap them somehow14:15
MSameerI can extract binaries from anywhere but I need docs14:15
MSameerartemma: thank you14:15
MSameerthis channel is not logged and I took nothing from you ;)14:15
artemmait's been years since I used web site downloaders :)14:16
artemmaDon't quite even remember the app names14:16
*** louisdk has joined #sailfishos14:21
*** KangOl has quit IRC14:24
*** dhbiker has quit IRC14:25
*** dhbiker has joined #sailfishos14:29
MSameerartemma: don't bother if it's a lot of hassle14:31
*** KangOl has joined #sailfishos14:34
*** hcarrega has joined #sailfishos14:34
*** planasb has quit IRC14:40
*** planasb has joined #sailfishos14:41
*** artemma has quit IRC14:49
*** artemma has joined #sailfishos14:50
entilmore questions... if I want to use classes from libcommhistory, how do I do that? make my project aware of the other project somehow?14:52
entilI'd expect to add something to SOURCES and HEADERS in the .pro file but that'd be local to this one setup, yes?14:54
coderusPnuu: ping14:56
coderusentil: do you have development headers for libcommhistory14:56
coderusPnuu: so there is soure=ces of maliit?14:57
entilcoderus: I have a git clone14:57
Pnuucoderus: wut, what? :-)14:57
coderusentil: you need to install libcommhistory-qt5-devel14:58
coderusPnuu: maliit14:58
Pnuuis that the input thingy?14:58
entilcoderus: on the vm?14:58
Pnuucoderus: sorry, I've got no clue what you're talking about :-D14:58
entilor the sdk somehow?14:58
*** KangOl has quit IRC15:00
coderusentil: yes15:01
coderusPnuu: you just updated my together questoin, i thought you know :)15:01
entilcoderus: I'm probably googling wrong cuz I can't find anything. any tips on what to do, concretely?15:01
Pnuucoderus: which one? I tend to add quite a lot of tags to together..15:02
*** piee has joined #sailfishos15:03
coderusPnuu: adding custom keyboard to application :)15:04
entil that's the one? my sailfishos tomcat thing just gives 404 on everything15:04
*** zhxt has quit IRC15:04
Pnuucoderus: ah, yeah, I added "keyboard-layouts" to tags15:04
coderusentil: go to SDK Control Center, select target, write libcommhistory in search field, install :D15:04
Pnuucoderus: and changed "applicatoin" to "applications" in the topic15:05
entilfuu, all I find on google is "go to the control center"... yeah, I would if I knew where it is :D it's probably the tomcat crap that doesn't work at :/15:05
entil*at all15:05
*** wellumakinen has joined #sailfishos15:07
*** artemma has quit IRC15:09
*** lbt has quit IRC15:10
*** lbt has joined #sailfishos15:10
entilTomcat6 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6 and CATALINA_BASE in /var/lib/tomcat6, following the rules from /usr/share/doc/tomcat6-common/RUNNING.txt.gz.15:11
entilI'm guessing that should be something else15:11
entilbecause I had this old tomcat installation from another project left over15:12
entilcoderus: thanks! I'm installing libcommhistory-qt5-devel now15:14
*** artemma has joined #sailfishos15:15
entila simple test of #include "groupmanager.h" doesn't work though, I need something else as well?15:16
Elleoentil: have you added a pkgconfig entry to your .pro?15:17
entilElleo: no, I have done nothing like this at all ever15:17
entilfirst time for everything15:17
Elleoentil: "PKGCONFIG += commhistory" (or whatever the actual pkgconfig name for that package is)15:18
*** M4rtinK has quit IRC15:18
Elleomight be libcommhistory or commhistory-qt5 or similar based on the package name15:18
entilsrc/commhistory.pc says Name: libcommhistory15:19
Elleo(take a look in /usr/lib/pkgconfig or list the devel package contents to find out15:19
*** M4rtinK2 has joined #sailfishos15:20
entilPKGCONFIG += libcommhistory based on that fails, though15:20
entildo I need to run some kind of update thing to make the sdk aware of the new package?15:20
*** GeneralAntilles has quit IRC15:20
*** leinir has quit IRC15:20
entilpkg-config I think is the usual program to run15:20
*** leinir has joined #sailfishos15:20
Elleopkg-config is what gets run as part of the build process15:21
entilwonder what causes this then15:21
Elleohang on, I'll just boot up the mersdk and have a look for myself15:21
entilI manage the 486 target, type in libcommhistory, see I have libcommhistory-qt5 and libcommhistory-qt5-devel installed15:22
*** KangOl has joined #sailfishos15:22
*** b0bben has joined #sailfishos15:22
entilwhen I click sync, thinking this is probably something about having installed the stuff in the wrong place, the most meaningful-looking message is "cannot delete non-empty directory: usr/bin"15:23
entilnow it claims the project is not configured and I have to do that again O_O15:23
Elleohang on, you said the file was commhistory.pc15:23
Elleoso you want PKGCONFIG += commhistory15:23
Elleonot PKGCONFIG += libcommhistory15:23
*** GeneralAntilles has joined #sailfishos15:23
entilI tried that, of course, and it says commhistory not found15:24
coderusentil: first time developing apps?15:24
entilcoderus: on this platform, most certainly15:24
entilyou ever need web done in django, I'm your man, but I've never done c++, qt or anything mobile before :D15:25
*** Morpog_Mobile has quit IRC15:25
*** freedomrun has joined #sailfishos15:25
coderuswell, its wrong choice to start development with plugins, modules,etc15:25
coderusstart with essentian things15:25
entilI have flickables and a csv parser15:25
entilimo a good way to learn is to actually have an application you want to get done, it solves a real problem (= keeps you motivated) and at the end of the day it's not just a copypasted tutorial15:26
coderuswell, what you need to get with commhistory?15:26
*** b0bben has quit IRC15:27
entilthis is about reading sms data from the n900, exported to csv, so I want those imported into the jolla15:27
*** ponky_ has joined #sailfishos15:28
*** valdur55_ has joined #sailfishos15:28
*** zchydem_ has joined #sailfishos15:28
*** Dima has joined #sailfishos15:28
*** hoelzro_ has joined #sailfishos15:29
*** tanghus_ has joined #sailfishos15:29
coderusthere is also libcommhistory-qt5-declarative15:29
entilit's severely work in progress and I was thinking of sitting on it until it's somewhat done, now it's a collection of TODO15:30
entillike the message class has to be replaced with commhistory's stuff, I was originally thinking of doing a conversion but it makes more sense to parse directly into the commhistory classes15:31
entilthat's a bit useless, though, if I can't get the damned thing visible in my project :D15:31
*** deztructor_ has joined #sailfishos15:31
*** c0ck4m0u53 has quit IRC15:33
*** M4rtinK2 has quit IRC15:33
*** dhbiker has quit IRC15:33
*** matt_1979 has quit IRC15:33
*** Gilly has quit IRC15:33
*** ponky has quit IRC15:33
*** tanghus has quit IRC15:33
*** hoelzro has quit IRC15:33
*** Dima^ has quit IRC15:33
*** valdur55 has quit IRC15:33
*** zchydem has quit IRC15:33
*** deztructor has quit IRC15:33
Elleoentil: err, you installed libcommhistory-qt5-devel, but you're looking at a pkgconfig file for libcommhistory15:34
Elleoentil: I suspect what you want is commhistory-qt515:34
Elleo(as the pkgconfig entry)15:34
*** isto has joined #sailfishos15:35
hene-what does jolla-morse do15:35
entilhene-: hopefully one day it'll read in text messages exported from the n90015:35
hene-oh, okey15:35
lbtentil: pin15:35
entilthe csv parses now into my own Message objects, which is good enough for now until I start building the Group and Event classes soon15:35
lbtthe SDK control centre runs on the VM and is NATed to appear on
lbtif you have a local server running there then you need to change one or the other15:36
entillbt: yeah, I got that already, thanks :)15:36
lbtOK, good15:36
lbtjust going through the backlog and spotted it15:37
entilElleo: thanks, you rule :) how did you get to that name?15:37
lbtnb ... django's in use quite a bit around Mer15:37
entilyeah, I worked with the guys back in the day, django 0.9615:38
entilbeen on the django road ever since15:38
Elleoentil: by looking at the contents of libcommhistory-qt5-devel15:39
entilthe guys being marc dillon and stefano mosconi15:39
entilElleo: hmm.. I need to learn how to learn this obviously :P15:39
Elleoentil: virtualbox is giving me some issues, so I just grabbed the rpm and ran "rpm -qlp libcommhistory-qt5-devel-1.6.27-35.9.Nemo.armv7l.rpm"15:39
*** fuz_ has quit IRC15:39
entilElleo: ok, there's another .pc file15:39
Elleowhich lists all the file contents15:39
*** M4rtinK2 has joined #sailfishos15:39
Elleoincluding /usr/lib/pkgconfig/commhistory-qt5.pc15:39
lbtah :)15:39
*** dhbiker has joined #sailfishos15:39
entilit'd be real sweet if the sdk cc gave lists of files15:40
entilsure I got the git clone and once I back off from irc I'll probably find the proper #include magic, but still15:40
*** Gilly has joined #sailfishos15:40
lbtentil: yup - I was planning quite some features around that but I've moved off SDK15:40
lbtand fwiw that bit is in ruby15:40
lbtbut it's all on github for tinkering with15:40
entilthis is actually silly, but now that I got the package installed there, why doesn't it find header files? in trad. unix I'd make sure the include paths are ok, but what's up here?15:41
*** mk2soldier has joined #sailfishos15:41
fk_lxlbt: hi15:42
lbt'there' ?15:42
lbtfk_lx: hey15:42
lbtentil: the SDK is quite nested15:42
lbtyour host runs a VM which has a target inside15:42
Elleoentil: what isn't finding the headers? I'd guess qtcreator might not find them since they're installed in the build vm, rather than on your local machine, but I'm not certain15:42
fk_lxlbt: I've noticed that in newest SDK the RPMs that are build no longer land in RPMS folder of project but instead some build-* folder is created in home directory15:42
Elleodunno how much magic is going on between the two15:42
lbtfk_lx: yeah - I found that this morning15:42
entilElleo: I thought I synced them, but maybe that doesn't mean what I think it does15:43
lbtsync means if you ssh in and manual add stuff to the target, send it to QtC15:43
lbtotherwise sync happens when needed15:43
entilso that doesn't explain it15:43
lbtah :  entil: virtualbox is giving me some issues, so I just grabbed the rpm and ran "rpm -qlp libcommhistory-qt5-devel-1.6.27-35.9.Nemo.armv7l.rpm"15:44
fk_lxlbt: kinda sucks I used to put rpms on github with other project files, for those who want the latest version without waiting for Jolla Store and cannot build sources themselves for some reasons15:44
Elleoentil: by sending it to QtC I think lbt means updating the info that QtC has on what packages, etc. are installed, not copying headers over15:44
lbtentil: so you installed the devel package into the build VM, not the target15:44
Elleolbt: that line was from me, not entil15:45
ElleoI was just finding the correct pkgconfig file for him15:45
entilI found it by looking around the file system15:45
lbtElleo: I assumed you'd pastied his comment15:45
entilit's supposed to be eg. #include "CommHistory/groupmanager.h"15:45
lbtyeah, I see, oops15:45
Elleonah, that was me explaining how I'd found it for him15:45
lbtElleo: correct about updating QtC15:45
entilit's apparently the top-level business that's in the include apth15:46
Elleoentil: is it not finding it when you build?15:46
Elleoor is it just qtcreator saying it can't find it in the source highlighting stuff?15:46
entilit highlighted the #include "groupmanager.h" (and variants thereof that I tried) and said it didn't find anything15:46
Elleoentil: yeah, I suspect that's normal15:46
Elleobecause they don't exist on your computer, only on the vm15:46
entilso I went digging around the file system to see if I can find clues15:46
entiland I found it's situated in mjt@ishtar:~/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/commhistory-qt5/CommHistory$15:47
entilfsck, was meant to paste only the dir15:47
*** phaeron has quit IRC15:47
entilthe solution is to #include "CommHistory/foo.h"15:47
entilthanks a lot for your help, now I'm back on track :D15:47
Elleoah, maybe QtCreator is setup to automatically look for stuff in the targets then, didn't realise it did that15:47
*** matoking has joined #sailfishos15:47
entilbtw, academic question, what if I had multiple projects and I would absolutely detest having libcommhistory in the other one, what would I do? add a new target?15:48
lbtyes, QtC looks in targets15:48
fk_lxlbt: not a big issue, but had to write a script to delete old RPMs and putting new in the right place ;-)15:48
lbtentil: yes15:48
*** jhe__ has joined #sailfishos15:49
*** zmc has quit IRC15:49
entilI'm also pretty sure my vbox vm is cluttered because I did the tutorial app before this and everything, there's probably an option somewhere to reset the image?15:49
*** isto has quit IRC15:49
jhe__hi all! is caldav and carddav sync going to be part of mer, nemo or sailfish?15:49
*** isto has joined #sailfishos15:49
lbtjhe__: probably15:50
jhe__lbt: which one?15:50
lbtnemo most likely15:50
lbtthey may even be there15:50
jhe__lbt: any idea when they are coming to sailfish?15:51
lbtno, sorry15:51
jhe__lbt: ok, thanks anyway15:51
lbtthere's no reason people can't hack on them today afaik15:51
jhe__lbt: do you know if caldav4j would work if someone would just integrate it to calendar and contact - apps?15:53
lbtI don't know the area well enough15:54
lbtare you looking to work on it?15:54
lbtor just interested?15:54
*** shanttu has joined #sailfishos15:55
jhe__I have used caldav4j to integrate erp-system to davical server and was just wondering how much work it would require to do the same for my jolla phone15:55
jhe__but probably won't have time to actually make it happen15:57
janiis there any benefit of listing qml files in .qrc or should it even be done ?15:57
*** piee has quit IRC15:59
*** piee has joined #sailfishos16:01
*** Andy80 has quit IRC16:02
*** John24 has joined #sailfishos16:02
John24hi guys :)16:02
*** Andy80 has joined #sailfishos16:02
John24Would anyone be willing to help me out with a bit of qml?16:02
*** sdjayna has joined #sailfishos16:03
coderusjo sure16:04
coderusjust ask16:04
*** fuz_ has joined #sailfishos16:05
John24I feel so stupid asking this, I have writen DX11 rendering engines but I am having hard time with silly date picker in QML. My issue is16:05
John24I got this following code : Button {                 id: button                 text: "Choose a date"                  onClicked: {                     var dialog = pageStack.push("Sailfish.Silica.DatePickerDialog", {                         date: new Date('2012/11/23')                     })                     dialog.accepted.connect(function() {                         button.text = "You chose: " + dialog.dateText16:06
John24which asks user to pick a date using a datepicker dialog16:06
*** Andy80 has quit IRC16:07
John24But for the love of it I got no idea how to access the individual elements as day, month and year, which I want to use to compare to a different date16:07
John24Essentially I want to comapre the date that user picked to todays date16:08
coderusJohn24: there is dialog.month dialog.year integer values and a JavaScript Date() object16:10
John24I feel more stupid +116:13
coderusjani: no profit. it will just take extra virtual memory if qrc compiled to binary16:13
coderusjani: you can get benefit if only have > 1000 entries, it will short installation/removal time in multiple time16:14
coderusJohn24: do you reading reference pages in qt creator?16:14
*** Morpog_Mobile has joined #sailfishos16:14
janicoderus: thanks.16:15
John24trying to16:15
coderusJohn24: just F1 at interested object :)16:17
John24oh wow didn't know that :D thank you. I have a so much more to learn about mobile developement. Thanks for the help16:17
*** Andy80 has joined #sailfishos16:18
artemmaFind it ifficult to switch between latest apps on jolla sailfishos, because top-left app cover is too far reach for thumb? Go vote to change it
coderusartemma: what?16:19
PnuuI'd rather have pinnable covers16:19
artemmaoups, wrong channel16:19
artemmashould go to #jollamobile16:19
artemmacoderus: I just realize that most often I want to switch back to the most recently used app, and it's exactly the only app cover that is hard to reach with my thumb length :)16:20
artemmathere is a reason why BlackBerry made it's task switching gesture to go from bottom16:21
coderusthere is many navigation issues in silica16:21
coderusstack indicator should have "go top" something scrolling to top16:22
M4rtinK2coderus: yeah, was thinking the same thing16:22
coderusJohn24: i found many peoples ignoring F1 :)16:22
M4rtinK2coderus: actually this is how the back button works in the modRana Qt4 & GTK GUIs - you long press it and it gets you back to the map screen16:23
M4rtinK2coderus: in this case it could pop all pages but the one on the bottom from the page stack16:23
John24another question if you don't mind what sort of scope does QML have? for exple here i get an error " ReferenceError: dialog is not defined"
artemmacoderus: fast scrolling to top (in the list) is already promised (I think I've seen some jolla person comment in together).16:25
artemmaI think they even mentioned something like next release16:26
coderusJohn24: on which line?16:26
*** mk2soldier has quit IRC16:26
*** phaeron has joined #sailfishos16:26
John24line 5016:27
coderusJohn24: ha, your dialog instance exists only inside onLicked16:29
coderusyou need to create globall properties holds values for page, for example16:29
John24ok I'll do that16:41
*** faenil has joined #sailfishos16:50
*** valdur55_ is now known as valdur5516:51
*** wellumakinen has quit IRC16:55
*** triggerhappy_ has quit IRC17:00
*** Jef91 has joined #sailfishos17:03
*** jjanvier has joined #sailfishos17:08
*** matoking has quit IRC17:10
*** b0bben has joined #sailfishos17:10
*** Andy80 has quit IRC17:11
*** Andy80 has joined #sailfishos17:12
*** Andy80 has quit IRC17:12
*** Andy80 has joined #sailfishos17:12
*** amppa_ has joined #sailfishos17:12
*** amppa has quit IRC17:12
*** fawzi has quit IRC17:13
*** ahiemstra has quit IRC17:13
*** kontio has quit IRC17:13
*** Sage__ has quit IRC17:13
*** boud has quit IRC17:13
*** smokex has quit IRC17:13
*** sunkan has quit IRC17:13
*** Jarrrgh has quit IRC17:13
*** Aard has quit IRC17:13
*** thomasgubler has quit IRC17:13
*** yunta has quit IRC17:13
*** jwalck has quit IRC17:13
*** kontio has joined #sailfishos17:14
*** kontio has quit IRC17:14
*** kontio has joined #sailfishos17:14
*** sunkan has joined #sailfishos17:14
*** ahiemstra has joined #sailfishos17:14
*** yunta has joined #sailfishos17:14
*** Aard has joined #sailfishos17:15
*** fawzi has joined #sailfishos17:15
*** smokex has joined #sailfishos17:15
*** Jarrrgh has joined #sailfishos17:15
*** freedomrun has quit IRC17:15
*** boud has joined #sailfishos17:16
*** Andy80 has quit IRC17:16
*** thomasgubler has joined #sailfishos17:17
*** Sage_ has joined #sailfishos17:19
*** cdp has joined #sailfishos17:21
*** jwalck has joined #sailfishos17:24
*** Andy80 has joined #sailfishos17:25
*** SfietKonstantin has joined #sailfishos17:26
*** Superpelican_ has joined #sailfishos17:26
*** b0bben has quit IRC17:27
*** b0bben has joined #sailfishos17:27
Jef91Pnuu, Oh, I'm here as well :P17:29
Jef91basically my goal is to build the EFLs to run on sailfish17:30
Jef91so I can run some of my tools I've written on it17:30
*** Venemo has quit IRC17:30
*** Venemo has joined #sailfishos17:31
*** b0bben has quit IRC17:32
*** DarkSim has joined #sailfishos17:33
Morpog_Reboot, a simple app icon to reboot your device:
*** Superpelican_ has quit IRC17:33
*** Superpelican_ has joined #sailfishos17:34
cos-how do i test for sailfish/nemo in .pro file?17:37
Jef91Does the SDK allow me to cross compile software then Pnuu ?17:40
*** Andy80 has quit IRC17:41
PnuuJef91: well, it is meant to build the software packages for the phone on a pc, so I'd hope so :-)17:41
*** Andy80 has joined #sailfishos17:41
Pnuu(I haven't used it yet, as on holidays I have only a mini laptop with me)17:42
*** piee has quit IRC17:45
*** Andy80 has quit IRC17:45
*** zmc has joined #sailfishos17:48
teveJef91: SDK has scratchbox2 env for crosscompiling, available targets are armv7hl and i48617:49
*** piee has joined #sailfishos17:49
Jef91Can I get sailfish to sync my Google Calendar/Contacts?17:49
Jef91I see my gmail account listed under calendars, but my events are populated17:49
Yanielbut it only works in one way so far17:50
*** Zotan has quit IRC17:50
Jef91I just need my stuff from the web to populate to my device17:50
Jef91I'm fine with having to edit them on my PC17:50
Yanielshould be somewhat working in
janifor me atleast, i had to remove and re-add google account before initial sync happened to calendar.17:51
Jef91How do I get a command line env in the SDK for building software sources to ARM?17:51
*** Superpelican_ has quit IRC17:52
*** zmc has quit IRC17:52
*** artemma has quit IRC17:52
*** fuz_ has quit IRC17:53
Jef91jani, removing and readding my G account sync it down it seems17:55
ElleoJef91: <-- see the section on "how do I log in to the emulator or build engine"17:55
Elleothen use mb2 for building stuff17:55
Jef91thanks Elleo17:57
*** mk2soldier has joined #sailfishos17:57
Elleono problem :)17:57
*** mk2soldier has quit IRC17:58
*** fuz_ has joined #sailfishos17:59
*** piee has quit IRC17:59
Jef91Hrm. Looks like I have to toggle my google account on/off every time I make an update to my calednar18:00
Jef91that is annoying, but workable18:00
Yanielshould get fixed soon ehough18:00
*** phako has quit IRC18:02
*** phako has joined #sailfishos18:02
*** matoking has joined #sailfishos18:03
*** artemma has joined #sailfishos18:03
janianyone to help with obs accout ? registered to bugzilla already but obs said authentication error .. or should i as on #mer ?18:05
*** piee has joined #sailfishos18:05
*** KangOl has quit IRC18:07
*** entil has quit IRC18:08
M4rtinK2jani: I think lbt can help :)18:09
*** Uninstall has quit IRC18:09
*** jani has quit IRC18:09
*** pyksy has quit IRC18:09
*** jani has joined #sailfishos18:09
*** ezal has quit IRC18:09
*** amizraa has joined #sailfishos18:09
*** ezal has joined #sailfishos18:09
*** jani is now known as Guest4177618:09
lbtGuest41776: jani ? you need to use your account name, not email on OBS18:10
*** suy has quit IRC18:10
*** suy has joined #sailfishos18:11
*** kontio_ has joined #sailfishos18:11
*** kontio_ has quit IRC18:11
*** kontio_ has joined #sailfishos18:11
*** Uninstall has joined #sailfishos18:11
*** KangOl has joined #sailfishos18:11
*** kontio has quit IRC18:11
*** nahkiss has quit IRC18:12
*** Andy80 has joined #sailfishos18:12
*** nahkiss has joined #sailfishos18:12
*** kostola_ has quit IRC18:12
*** Uninstall has quit IRC18:14
*** Uninstall has joined #sailfishos18:14
*** kostola has joined #sailfishos18:14
*** entil has joined #sailfishos18:14
*** pyksy has joined #sailfishos18:15
*** Andy80 has quit IRC18:16
*** promulo has joined #sailfishos18:21
*** piee has quit IRC18:27
entilis something special needed for debugging? start debugging (f5) and the status bar says Starting debugger "QmlCppEngine" for ABI "x86-linux-generic-elf-32bit"... and the debugger log is stuck with TRYING TO START ADAPTER18:33
entilif I choose to Run it, it doesn't get stuck on the breakpoints18:34
*** Venemo has quit IRC18:35
Jef91Elleo, how do I create a VM in the SDK18:40
*** SfietKonstantin has quit IRC18:40
*** Guest41776 is now known as jani18:42
*** teve has quit IRC18:43
*** Venemo has joined #sailfishos18:44
*** Venemo has quit IRC18:45
*** John24 has quit IRC18:46
*** artemma has quit IRC18:48
ElleoJef91: do you mean you want to create a new build target?18:49
*** datagutt has joined #sailfishos18:49
Elleoif so I think sb2-init is what you want (from within the mersdk vm)18:49
Jef91whats the default root password?18:49
Jef91on the sailfish OS image18:50
Elleofor the mersdk vm or for the emulator?18:50
Elleoeither way I'm not sure off the top of my head, but you can ssh in directly as root using root's private key18:51
Elleothen set the password to whatever you like18:51
Elleoagain see for instructions18:51
Elleosame section as before, just look for the bit on connecting as root instead of as nemo18:52
Yanielor use sudo as nemo18:52
*** tumpelo has joined #sailfishos18:56
Waiteetumpelo: that was my nick in high school18:56
tumpeloWaitee: I'll try to carry the torch further18:57
Jef91How do you gain root in sailfish OS? I've got it installed on my n919:00
*** b0bben has joined #sailfishos19:00
ElleoJef91: ah, if the n9 image is similar to the jolla one then you need to setup developer mode and set an ssh password19:00
*** faenil has quit IRC19:01
ElleoJef91: then use devel-su to become root with that password19:01
PnuuJef91: settings -> developer mode (-> enable + boot) -> set passwd -> open terminal -> devel-su19:01
*** louisdk has quit IRC19:01
Jef91devel-su is prompting me for a password19:02
Jef91that is the same password as the other19:02
cdphas anyone tried to use the sdk on freebsd?19:04
Jef91what package manager does this use by default?19:04
Jef91I know it uses RPMs, but is it powered by apt-get or yum past that?19:04
ElleoJef91: pkcon is the best way of doing things19:04
M4rtinK2pkcon (comes from packagekit)19:04
M4rtinK2yeah, it manages concurrent installation, etc.19:05
*** b0bben has quit IRC19:05
M4rtinK2but you can also install and use zypper19:05
*** mfulz has joined #sailfishos19:06
Jef91Are there any instructions for setting up a build system on the device itself?19:06
Jef91there were some of those for Harmattan I know19:06
mfulzwhen using qproperties can I use an enum as well inside qml?19:06
ElleoJef91: you should be able to pretty much just install whatever packages you need19:07
Jef91Oh great, so I can install like a C compiler right in the default OS?19:08
ElleoJef91: yep19:08
ElleoJef91: pkcon search name gcc19:08
Elleofor example19:08
coderussdk-utils for example :)19:09
*** KangOl has quit IRC19:11
Jef91coderus, not finding any packages sdk-utils19:12
Jef91is there an equiv of build-essential for sailfish?19:12
*** Andy80 has joined #sailfishos19:12
Elleothat's probably in the mer-tools repo19:13
Elleoyou can add that by running "ssu ar mer-tools" "ssu ur" "pkcon refresh mer-tools"19:13
lbtcdp: I doubt it'll work on freebsd19:14
lbtit relies on 'unshare' which I think is linux19:14
lbtyou should be able to work around it though19:14
*** dirkvl_ has joined #sailfishos19:15
*** freedomrun has joined #sailfishos19:15
lbtJef91: there is very little support for on-device building; almost everything is written assuming either platform or VM SDK using sb2. Just fyi19:16
Jef91thanks for the tips Elleo19:16
*** Superpelican_ has joined #sailfishos19:16
Jef91lbt, I'm tired of fighting with tools for cross compiling19:16
Jef91I just need to build like 4~ packages so I can run my python applications19:16
*** Andy80 has quit IRC19:17
Jef91Elleo, "Fatal error: File '/repodata/repomd.xml' not found on medium ''"19:17
mfulzanyone working on an emacs mode for sailfish coding?19:17
lbtJef91: tl;dr; ... it doesn't feel like cross compiling in the SDK19:17
lbtit's essentially emulated and fast19:17
Jef91lbt, if there was a clean "take these steps to get a terminal to start compiling at" I'd cross compile19:17
lbtmfulz: there's some QML emacs mode19:17
Jef91as it is though, I haven't seen one of those19:17
mfulzyep for qml I know19:18
mfulzI was thinking more about the compile / deploy commands19:18
ElleoJef91: that's a reo specific to the n9 image, don't know anything about that; but like lbt says it's pretty easy to build stuff with the mersdk vm19:19
lbt*nod*... I changed my mind. Get the Sailfish SDK VM and install that. Then use ssh to login and build in there. That will be easiest.19:20
*** KangOl has joined #sailfishos19:22
Jef91I've installed the SDK19:22
Jef91Doesn't seem to do anything19:22
Jef91the projects are all for starting to write software19:22
Jef91I just want to cross compile a few things19:22
ElleoJef91: all you really need to do is ssh in compile stuff via mb219:23
Jef91And that is done how?....19:23
*** joecool has quit IRC19:23
Elleo"mb2 run ./configure"; "mb2 make"; etc.19:23
Elleo"mb2 build" if you've got an rpm .spec19:23
Jef91I mean sshing in19:24
Jef91I can figure out how to build stuff19:24
Jef91once I am logged into a system19:24
Elleolook at the section "How do I login into the emulator or build engine?"19:25
Elleoyou're wanting to log in to the build engine19:25
Jef91getting connection refused19:27
ElleoJef91: did you start the build vm running?19:27
Elleoyou can do it easily by just clicking the button in qtcreator19:27
Elleo(in the bottom left when you've got a project with a mer build target loaded)19:28
Jef91the "start sdk" button?19:29
*** ottulo has left #sailfishos19:29
Jef91hey look at that19:29
Jef91its a live19:29
*** ottulo has joined #sailfishos19:29
Jef91what package manager does the SDK use?19:30
lbtJef91: be aware that when you're in the sdk you need to prefix all commands with sb2 -t SailfishOS-armv7hl19:30
Elleobut be aware you don't want to build stuff directly in the VM, you want to use the scratchbox installed within19:30
lbtall build command19:31
Elleoyeah, what lbt just said19:31
lbtor you can enter a shell using just  : sb2 -t SailfishOS-armv7hl19:31
lbtbut then things like /tmp are transient19:31
lbtmost of SDK is geared around rpm building - ie not much tooling for simple 'make' (which doesn't really need it)19:32
*** furikku has quit IRC19:32
*** faenil has joined #sailfishos19:33
*** dirkvl_ has quit IRC19:33
*** Kabouik has joined #sailfishos19:33
Jef91How do I install software/packages in the build VM?19:34
lbtthe SDK has a control centre - use that19:34
lbtotherwise you get into setting sb2 modes etc19:34
lbtwhich you can learn later :)19:34
lbtthe control centre is just a ruby wrapper over a bash script so you can drill into it19:35
Jef91This is far more cumbersome than just compiling natively19:35
Jef91on an ARM device19:35
lbtok, feel free19:35
Jef91I had things almost working on Harmattan. Going to just finish making things work there and play with sailfish later I think.19:36
Jef91Sailfish runs kinda clunky on the N9 anyways >.<19:36
* lbt sometimes wonders why he bothers... :)19:37
lbttbr: hey
tbrlbt: ok, so let's scrap the other one then?19:37
lbtI guess :(19:38
*** Superpelican_ has quit IRC19:38
lbtalthough given how our update systems seems to be working I'm expecing people on for some time to come :D19:39
wickwireHi guys, any news on sailfishOS images for nexus devices...?19:39
* tbr pushes mosh to the new repo, fails because no access19:39
lbttbr: what QA did you do ?19:39
lbtwrite it down in the wiki19:39
lbtand then push19:39
tbrlbt: built it in private repo, then just copypac'd - NOT how I want to have the process for the future19:39
tbrneed to figure out the SR thing19:40
lbtyeah ... but just write something up before you push19:40
*** tumpelo has quit IRC19:40
lbtthat'll force us to take the first step19:40
lbtadded you19:40
lbtwickwire: not quite yet...19:40
lbtwickwire: soon... (is that a Jolla catchphrase yet?)19:41
Pnuulbt: #soon19:41
*** rcg has joined #sailfishos19:42
*** jmlich has joined #sailfishos19:43
lbttbr did I show you :
tbrlbt: managed to break something :-(19:44
Yanielhmm should I update my chum link in ssu then19:45
lbttbr: you copypac'ed it there?19:47
tbrlbt: yes, worked 10 times flawlessly today19:48
tbron all sorts of repos19:48
tbrosc copypac nemo:devel:apps mosh sailfishos:chum:
*** tumpelo has joined #sailfishos19:48
matokingThere's a wizard for adding an ARM device in SailfishOS IDE19:51
matokingI feel so dumb now19:51
*** zmc has joined #sailfishos19:52
lbttbr: I gotta go for a bit .. I'll look later. Not sure what's up. OBS issue though19:52
*** sequantz has quit IRC19:55
*** Tegu has joined #sailfishos20:01
matokingThere was a one-click way of deploying an application to the device and I didn't know about it until now20:02
matokingI'll never live this down D:20:02
*** SfietKonstantin has joined #sailfishos20:04
*** RoKenn has joined #sailfishos20:05
*** b0bben has joined #sailfishos20:12
*** Andy80 has joined #sailfishos20:13
*** petantik has joined #sailfishos20:14
*** tumpelo has left #sailfishos20:14
*** boud has quit IRC20:14
*** boud has joined #sailfishos20:15
*** jstaniek has joined #sailfishos20:17
*** Andy80 has quit IRC20:18
*** kaari has quit IRC20:21
*** Raim has quit IRC20:24
*** itbaron has quit IRC20:25
*** gigetoo has quit IRC20:33
*** gigetoo has joined #sailfishos20:33
*** John24 has joined #sailfishos20:35
John24hi again, got few more questions about QML if anyone is willing to help20:35
John24I am still having issues with using datepicker on the sailfish OS and storing the values. I just can't get the values from the data picker to my declared date variables. Code =
*** faenil has quit IRC20:40
*** faenil has joined #sailfishos20:40
*** b0bben_ has joined #sailfishos20:41
ElleoJohn24: I think usrDate = dialog will give you problem as the dialog gets destroyed after its accepted, also I think you meant to do this "console.log("User day: "," when the dialog was accepted, not when it was created (which is what you currently do)20:43
coderusJohn24: you need to add here:20:45
coderusbutton.text = "You chose: " + dialog.day20:45
coderuscode you have below20:45
John24well the console.log is there just for me to see the dates. But I want to copy the date from dialog to usrDate as I wan to later use it for date comparisons.20:45
coderusand usrDate = dialog.date20:46
coderusJohn24: include code into connect function, not outside20:46
John24now I get it :D20:47
John24will test now20:47
*** dirkvl_ has joined #sailfishos20:48
*** jjarven has quit IRC20:50
*** Raim has joined #sailfishos20:50
*** kvt has quit IRC20:52
*** Kabouik_ has joined #sailfishos20:53
*** jhe__ has quit IRC20:55
*** SfietKonstantin has quit IRC20:55
*** Kabouik has quit IRC20:56
*** dirkvl_ has quit IRC20:59
*** jjarven has joined #sailfishos21:02
John24the code changes worked :D but I am having weird error/warning21:07
John24TypeError: Cannot read property 'year' of null21:07
John24changed code:
*** pixraider has joined #sailfishos21:10
*** Venemo has joined #sailfishos21:11
matokingHow can I get rid of the page stack indicator/back button on the top-left corner?21:11
matokingI don't need to get rid of it completely21:11
matokingJust hide it when necessary21:11
*** super_hirsute has joined #sailfishos21:13
*** Andy80 has joined #sailfishos21:14
*** Andy80 has quit IRC21:18
*** jstaniek_ has joined #sailfishos21:23
*** jstaniek has quit IRC21:23
*** super_hirsute has quit IRC21:27
suymatoking: backNavigation: false21:27
suyon a Page element21:28
matoking@suy That doesn't seem to be documented on the Page doc page21:29
matokingBut it's there21:29
suymatoking: true. It might be a bug. Or it might not be stable. But is used in the example components gallery app21:30
*** softmetz has joined #sailfishos21:30
matokingGiven that Jolla is still a pretty small company and a product it isn't surprising there are undocumented surprises around21:31
*** softmetz has quit IRC21:33
matokingStill, it feels more straightforward and simple than Symbian^3/Symbian Belle which is nice21:33
*** softmetz has joined #sailfishos21:33
matokingOr that may have something to do with having experience :P21:33
*** softmetz has quit IRC21:34
*** softmetz has joined #sailfishos21:34
*** softmetz has quit IRC21:35
*** softmetz has joined #sailfishos21:36
*** softmetz has quit IRC21:47
*** softmetz has joined #sailfishos21:47
*** softmetz has quit IRC21:48
*** softmetz has joined #sailfishos21:48
*** zmc has quit IRC21:53
*** rm_work is now known as rm_work|away21:53
*** softmetz has quit IRC21:55
*** softmetz has joined #sailfishos21:55
*** softmetz is now known as softmetz|away22:01
*** softmetz|away is now known as softmetz22:01
*** beford has joined #sailfishos22:04
*** b0bben has quit IRC22:06
*** b0bben has joined #sailfishos22:06
*** jmlich has quit IRC22:06
*** Almehdin has quit IRC22:06
*** cdp has quit IRC22:08
John24is it possible to hide and show labels in sailfish QML?22:09
*** dhbiker has quit IRC22:11
*** b0bben has quit IRC22:11
matoking@John24 label.visible = false should do the trick if I'm not wrong22:11
*** _miqu_ has joined #sailfishos22:12
*** softmetz has quit IRC22:14
*** softmetz has joined #sailfishos22:14
John24label.visible = false doesn't seem to work22:14
John24Essentially my label will show a value that shoudl be shown once function is done22:15
*** Andy80 has joined #sailfishos22:15
entilarght :D I added something to the qml and added signals to it, only to remember later that's where threads are needed22:16
John24that would be useful, but I have no idea how to do it. I want the label hiden and once the fucntion is done, I want label to apear and display the values22:17
entilJohn24: why not use property bindings?22:17
*** artemma has joined #sailfishos22:18
John24no idea what they are22:18
jpnurmiJohn24: the label won't show anything until it has a value22:18
entildunno, I haven't been following the channel, but because I've just dabbled in properties, maybe every solution starts looking like a property :D22:18
John24first app on qml ever22:18
matoking@John24 How about having an empty text property until it's done?22:18
entilmy crap is very much work in progress and it's my first app in c++ or qt *ever* but that's what I can show you22:19
*** Andy80 has quit IRC22:19
entilJohn24:     Q_PROPERTY(int seenSMS READ getSeenSMS NOTIFY seenSMSChanged);22:19
entilJohn24: then qml has Label { id: sms_label; text: "Seen SMS: " + appWindow.csvhandler.seenSMS; x: Theme.paddingLarge }22:20
entilso whenever the code updates its value and emits a signal, the qml is updated22:20
John24ahh I see, I will try to it out, See if I do it :) thanks22:20
entilbeware that this (I think, it looks like it, and in this one particular case someone told me) has to run in its own thread22:20
entilgoogling for qt threads was horror, there's like at least two ways of doing it and some of the writings are about old versions22:21
entilJohn24: that's my thread invoker22:21
matokingAt the moment I'm using an QObject with getFileList() function to get a list which I add into a GridModel like this
matokingThat doesn't seem like the most perfect solution22:21
* entil can't figure out qml22:22
entilit's fscking harder than html+css22:22
John24oh I am ripping my hair out over the qml layouts22:22
matokingI have some anger issues over models and their interaction between C++ and QML code22:23
John24I just don't get it, having something centered was like a journey to mordor22:23
matokingBut I think I'm starting to get hang of it22:23
matoking@John24 Isn't that a simple anchors property?22:23
John24well not until I figured out how anchors worked22:24
entilsomeone suggested the thread running stuff could send signals to qml but I couldn't figure that out so I relay them through the main process22:24
matoking@entil What are you doing that would require threads?22:24
entilmatoking: importing sms data from an n900 export22:24
matokingI had to do some threading on a semi-abandoned Qt project I have22:24
entilmatoking: with some 12k texts the ui stuttered22:24
entilit's a better ux to have a thread do the work in the background while the ui does its thing22:25
matokingI have bad memories about threading with Qt22:26
matokingI looked up a bunch of examples, reworked it a multiple times22:26
matokingThen I asked on an IRC channel and finally made something that worked22:26
entiljust after I got the QThread inheritance solution working, not knowing half of why it works, I found a blog post that dissed the solution totally.. and was written for qt 4.x so I don't know if it applies22:27
*** mk2soldier has joined #sailfishos22:27
*** b0bben_ has quit IRC22:27
*** vitronic__ has quit IRC22:27
matoking@entil Yeah, I tried using a solution that seemed really clean and simple22:27
matokingBut it didn't end up working22:27
*** vitronic__ has joined #sailfishos22:28
matokingBasically I just created objects and such and attached them to a QThread22:28
matokingThat didn't work22:28
entilall of this is just crap, because I wouldn't want to put everything into threads22:28
entilnot sure why, I could probably use the exercise :P22:28
John24is it best to set font in pixels or point size? because setting font.pointSize seems to do nothing at all22:29
matokingYeah, try to use Theme values if you want to keep your UI consistent22:30
John24cheers will try now22:34
*** pixraider_ has joined #sailfishos22:35
*** arcean_ has quit IRC22:35
entilbut was there another way to get data visible in qml after it's done except signals?22:35
wickwireI've worked with Qt5/QML before, managed to work out C++<>QML interaction with the documentation on qtproject.org22:35
*** pixraider has quit IRC22:35
wickwiresetContextProperty was useful to expose C++ properties to QML22:35
entilif I got any of this right, binding a property to be shown has to have a Q_PROPERTY(... NOTIFY ...); thing on it?22:36
wickwireI think so, yes22:36
entilcuz I just undid my signal code because it wasn't updated as it went along :D22:37
entiloh well, undo undo, and it's back22:37
wickwirein any case, signals and slots are Qt (C++) inner mechanisms I think, very much needed to be understood22:37
wickwirethen exposing them to QML with setContextProperty22:37
entilI think I'm getting there, just not sure about everything22:37
wickwirefor example22:37
entilI don't have setContextProperty anywhere :o22:38
entilI have the main class doing things in appWindow (so I can refer to it through many pages) and use signals to update stuff22:38
wickwiresetContextProperty is parallel to signals and slots, I believe22:38
wickwireit is a means to expose C++ layer elements to QML22:38
wickwireI think perhaps it would be best to start with Qt5 standard,22:39
wickwireget the stock Qt Creator and Qt522:39
wickwirethe examples22:39
wickwireand study them22:39
entilI made an experiment and commented out the emit statements, updating only the member property, and of course the ui didn't update at all22:40
entilso that's proven now :)22:40
matokingWhat I've done is that I have classes based on QObject such as settings22:40
matokingI add them to the rootContext so I can refer to their properties in the QML code22:40
wickwireon sailfishOS (haven't tried it yet, still to get the jollamobile), you get an added library in the form of Silica22:40
matokingLike settings.dirPath22:40
wickwireI hope I'm describing this properly22:40
wickwirebut bottom line is22:40
entilmatoking: is rootContext similar to appWindow, like, conceptually?22:41
wickwireif you are able to handle normal Qt5 and QML, then Silica/SailfishOS should just be a superset of that22:41
entilI found myself hitting qt pretty hard, silica is very small on top of it22:41
matoking@entil I don't know what appWindow is22:41
entillike the two hard things with this so far have been qt (not silica per se) and c++ ;P22:41
matoking Settings settings;22:42
matoking    view->engine()->rootContext()->setContextProperty("settings", &settings);22:42
matokingThat's the basic gist of it22:42
*** jrajaniemi has quit IRC22:42
*** _miqu_ has quit IRC22:42
matokingAnd signals you can do with Connections { target: settings onSomething: { doSomething(); } }22:42
wickwireyes, but my idea is, in order to take the most out of sailfishOS, Qt5 (C++/QML) understanding is key22:42
wickwireC++ is hard22:42
entilmatoking: property CSVHandler csvhandler: CSVHandler {22:42
entil        id: csvhandler22:42
entil    }22:42
wickwireQML is east22:42
*** mfulz has quit IRC22:43
entilin the main qml ApplicationWindow22:43
entilmatoking: where did you get view in your example?22:43
wickwireI was experimenting with Qt5 on Raspberry Pi and developed an app that did the following:22:43
*** s1gk1ll_ has joined #sailfishos22:44
wickwirethe qt app interacted with the GPIO ports on the Pi, managed to get signals from an IR sensor22:44
wickwirewhen the sensor was triggered22:44
wickwirethe Qt app would invoke a connected USB Webcam to take a photo22:44
wickwireand after getting the picture22:44
*** Tuilu_ has joined #sailfishos22:44
wickwireit would analyze it using QZXing22:45
entilmatoking: ok, that's actually pretty cool, I'm on the default from the template22:45
wickwirea QR Code scanning library for Qt422:45
wickwireI had to update QZXing to work with Qt5,22:45
entilso I guess I could have instantiated my csvhandler and passed it into the rootContext() and worked from there... though I'm pretty sure updating the ui as stuff progresses would still require the handler to export Q_PROPERTY(..NOTIFY..); thingies22:45
wickwirethe webcam triggering was made using QProcess22:45
wickwireand I got issues exchanging data between C++ and QML22:46
wickwirewhich got solved using qtproject documentation22:46
entilwickwire: that sounds nice! I was looking for a qr app but couldn't find anything (for jolla) but got something from yandex that works22:46
wickwireand I also had to resort to QThread22:46
entilafter the latest update that enabled android apps to use the camera22:46
*** louisdk has joined #sailfishos22:47
wickwirebecause the photo processing was interfering with QML, on the main event loop22:47
*** s1gk1ll has quit IRC22:47
wickwireI was getting stuttering on my animations22:47
wickwireQXZing Q Zebra Crossing did it for me22:47
*** Sidde has quit IRC22:47
wickwirebut as I said, I had to mess with it in order to have it build in Qt522:48
*** Tuilu has quit IRC22:48
wickwirein the end the whole thing actually worked22:49
entilthat's always what counts ;)22:49
wickwireI even installed a white bright LED on the RPi22:49
wickwireto simulate a flash22:49
wickwireso I had some squares rotating and moving along the screen22:50
wickwiremade a small transparent plastic case22:50
*** Venemo has quit IRC22:50
wickwireout of a plastic cover from an old photo frame22:50
wickwireplaced LED, sensor and USB cam inside22:50
wickwireran the app22:51
*** joecool has joined #sailfishos22:51
wickwireand then whenever I placed a picture with a QR Code against the plastic,22:51
wickwirethe sensor would trigger,22:51
wickwirethe usb cam would snap the pic22:51
wickwireand the app would analyze it22:51
wickwiredecode the QR Code and present the string on screen22:52
wickwireon the QML layer22:52
wickwireamongst the spinning squares and stuff22:52
entilthat's pretty much what the red dodo qr & barcode scanner (android) does22:52
entilthat I downloaded22:52
entilyou should port your stuff to compete natively ;)22:52
wickwireon sailfish you mean?22:53
*** jjanvier has quit IRC22:53
entilqr codes are the future, and they're already here, so anything that would nudge jolla in that direction would help22:53
*** softmetz has quit IRC22:53
entileven though anyone can download an android app..22:53
*** softmetz has joined #sailfishos22:54
*** sjn has joined #sailfishos22:54
wickwireactually I've kind of dropped QR22:54
wickwirein favour of NFC22:54
entilall the ads on all the buses have qr, not nfc ;)22:54
entilbut sure22:54
entilI'm happy with the android app so far so I don't care22:55
wickwireI don't ride on buses22:55
wickwirebut I know what you mean22:55
entilwe all have our reasons not to care ;P22:55
entiland I just realized I've probably done this signal stuff a bit wrong22:55
wickwirein any case, I believe NFC has made more of a positive impact on my daily routine22:55
John24is there a good guys somewhere fo how to use anchors? I am still having massive issues figuring out what the hell I am doing22:56
wickwireJohn24 what are you trying to do?22:56
entilI got READ and NOTIFY and I update the properties before emitting. I should probably do something with the NOTIFY method that updates the properties. I need to look into that tomorrow22:56
sjnQuestion: Where do the logfiles reside in sailfish os? /var/log has some funny files, but nothing that is familiar for me</n00b>22:57
John24thanks Elleo I'll look into it :)22:57
wickwireentil: I'm not entirely sure, but my understanding is that you're mixing signals and slots with C++/QML interoperability22:57
wickwiresignals and slots will work even within C++22:58
wickwirebetween classes22:58
wickwireand within classes themselves22:58
entilwickwire: I'm not entirely sure either, but what I realized was that I could just as well skip half the cases where I do an assignment and an emit, and just use an emit instead22:58
entilyes, I pass info from the qthread to the main qobject22:58
entiland from the qobject to qml22:58
*** DarkSim has quit IRC22:59
entilsomeone also suggested I could pass signals from qthread to qml direct but I couldn't figure that out so I relay through the main qobject22:59
entilbut yeah, the thing I realized is that I don't need to store a lot of state into the qthread object because I have the emits tied into the qobject anyway:
entilso I can just emit the numbers without assigning them first23:01
*** John24 has quit IRC23:03
*** joecool has quit IRC23:03
wickwireentil: what I had on my app was as follows:23:04
wickwire    Q_PROPERTY(QString qmlQRimg READ getQRImg NOTIFY qRImgUpdated) on the C++ header file23:05
wickwirethe following signal there as well:23:05
wickwire    QVariant qRImgUpdated(QVariant signal_qrimg);23:05
entilsimilar to what I got23:05
wickwireQVariant is relevant23:05
entilnever heard of QVariant :/23:05
wickwirethen on main.cpp23:06
wickwire    QObject *qrFrame = rootObject->findChild<QObject *>(QString("QRFrame"));23:06
wickwire    QObject::connect(snapp, SIGNAL(qRImgUpdated(QVariant)), qrFrame, SLOT(updateQRFrame(QVariant)));23:06
*** b0bben has joined #sailfishos23:06
wickwireSo C++ would find the QML element "QRFrame" and update it23:06
wickwireon QML,23:07
wickwireI have an Image element23:07
entilI didn't use SIGNAL() or SLOT() macros23:07
entilconnect(csvWorker, &CSVWorker::readBytesChanged, this, &CSVHandler::setReadBytes);23:07
wickwirewith the following property:23:07
wickwire            objectName: "QRFrame"23:07
wickwirehang on, let me see how I handled QThreads23:08
*** Almehdin has joined #sailfishos23:08
wickwirethis was quite a while ago,23:08
wickwireI'll need to to some refreshing prior to learning :p23:08
*** kostola has quit IRC23:08
entilso you're just emitting signals there, without qthreads?23:08
*** kostola has joined #sailfishos23:09
*** Tuilu_ has quit IRC23:10
*** b0bben has quit IRC23:11
wickwireok so from what I'm reviewing,23:11
*** Tuilu has joined #sailfishos23:11
wickwireI have QThread on main.cpp23:12
wickwireI create a thread,23:12
wickwireI move the slot that handles the sensor/takes the picture to it23:12
*** jstaniek_ has quit IRC23:13
entillike the moveToThread() call or something?23:13
entilso you have a thread and it creates a new thread and moves code to it?23:13
*** louisdk has quit IRC23:15
wickwire    snapp->moveToThread(thread);23:15
wickwireyep, I create the snapp instance23:15
wickwirefrom the photo management class I have23:15
wickwireI move it to a thread23:15
*** Andy80 has joined #sailfishos23:15
wickwire    QObject::connect(thread, SIGNAL(started()), snapp, SLOT(doStuff()),Qt::QueuedConnection);23:16
wickwireand I start the thread23:16
wickwire    thread->start();23:16
wickwireC++ is polling the GPIO every second23:16
wickwiretrying to figure out what is the sensor state23:17
wickwireat the time, I couldn't find a proper way to have the GPIO push events to Qt C++ (inotify or something like that)23:17
wickwireso C++ was polling the GPIO prot23:17
wickwireonce it had a changed state,23:17
wickwireon its thread23:17
wickwireit would snap the picture23:18
wickwireusing QProcess23:18
wickwireand another linux app: "streamer"23:18
*** matt_197_ has joined #sailfishos23:19
wickwirethis was because at the time, QtMultimedia wasn't working properly with Qt5 and RPi and USB Webcams23:19
wickwireso I had to rely on a 3rd party app23:19
wickwireand invoke it on Qt23:19
wickwireusing QProcess23:19
wickwireso streamer is called23:19
wickwiresnaps the pic23:19
wickwirethen Qt C++ proceeds to analyze it with QZXing23:20
wickwireif a string is successfully decoded from the pic,23:20
wickwirethe slot emits the result23:20
entilthis is probably still in the other thread apart from main.cpp/qthread23:20
*** Andy80 has quit IRC23:20
wickwire... and from what I'm seeing,23:20
wickwirethe emit is able to find its way out of the thread and into the main event loop23:21
wickwireand from there, to QML23:21
wickwireyes, the slot doing the picture snapping/analyzing also emits the result23:21
wickwireand is working inside the thread23:21
wickwireI know for a fact that I had issues getting the value back23:22
entilthat sounds pretty much like what I'm doing, except for my main being qobject, not qthread23:22
wickwireprecisely because once the slot was delegated to the thread, it would get "lost"23:22
wickwirebut it got solved23:22
*** Almehdin has quit IRC23:23
entilI pass mainly integers, for counts, except when I pass the actual results, but that was never a problem23:23
entilthe only problem would be to have the worker thread emit signals straight to qml23:23
*** Almehdin has joined #sailfishos23:23
wickwireI can't say for sure, but I think that the QVariant is related23:23
wickwireI'm just emitting a string23:23
entilI'd have to set up the slots so qml understands them and I lost interest when it seemed easier for the worker to emit so the handler picks them up, and the handler emits again and qml picks that up23:23
wickwireI would have used QString for that23:24
wickwirenot QVariant23:24
wickwirewell in any case I can't say that my solution should serve as an example23:25
wickwirebut I'd say that perhaps you'd get more understanding on #qt23:25
wickwireand with qtproject.org23:25
wickwirebecause these are qt concepts, not so much sailfish specifics23:26
entilthinking of joining23:26
*** pyksy has quit IRC23:26
entilgot enough channels on my hands and the code is coming along smoothly enough that I dunno23:26
*** pyksy has joined #sailfishos23:26
wickwirein any case, I did resort to threads23:26
*** faenil has quit IRC23:26
wickwireI did get into trouble exchanging data between QML and C++23:27
wickwireboth ways23:27
entilyou guys are great and I'm afraid a more general channel might be upset about the people not knowing possible silica peculiarities or something ;P23:27
wickwire#qt will probably steer clear of silica issues, but as I said, maybe getting help there with generic signals and slots23:28
*** b0bben has joined #sailfishos23:28
wickwireand c++/qml interoperability23:28
wickwireI'm not a part of the developer teams on either side, I'm just an enthusiast like you, and while I haven't yet messed around with sailfishOS on a jollamobile,23:29
wickwireI'm hoping that using standard qt5/qml23:29
wickwireand best practices from that23:30
wickwirewill get me most of the way23:30
*** rcg has quit IRC23:30
entilI think that'll happen23:30
wickwireand then, complete the set using the silica specifics23:30
entilsilica seems trivial on top of qt23:30
*** Almehdin has quit IRC23:32
*** b0bben has quit IRC23:32
*** Almehdin has joined #sailfishos23:33
entilanyway, got to sleep(); gnight->23:33
*** Kabouik has joined #sailfishos23:34
wickwiretake care and good luck!23:36
*** Kabouik_ has quit IRC23:36
*** rcg has joined #sailfishos23:38
*** Andy80 has joined #sailfishos23:48
*** zmc has joined #sailfishos23:49
*** spider-mario has quit IRC23:49
*** pixraider_ has quit IRC23:54
*** amonk has joined #sailfishos23:55
*** tango_ has joined #sailfishos23:55
*** RoKenn has quit IRC23:56
tango_I just noticed that if I use anchors.* layout in a silicagridview it stops responding to orientation changes23:56
tango_this is my current qml
tango_if I remove the anchors.* from the labels in the backgrounditem, rotating the phones gives me a rotate layout23:59
tango_with the anchors, it doesn't23:59

Generated by 2.17.1 by Marius Gedminas - find it at!