qmaemo5homescreenadaptor build fails
Hi all, another episode of coding for maemo drives me crazy: I followed the tutorial which demonstrates how to build a Home widget for maemo. However, building qmaemo5homescreenadaptor fails in Qt Creator: ./ToDoWidget/qmaemo5homescreenadaptor.cpp:213: error: ‘class QWidget’ has no member named ‘x11Info’ In the docs, QWidget's member x11Info is present. However, QT Creator doesn't think so. What keeps me thinking that it's not my fault is that i checked out qt4-maemo5-homescreen from git and it won't build... Any ideas? Thanks in advance, guys. best, filip ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: calendar-backend API: CCalendar's entries empty
Hi Nicolai, thanks for the valuable hint. The problem, as it turned out, was a classical PEBCAK (*). In Qt Developer, I used user developer to deploy on my N900. Therefore, this user's calendar was queried, returning zero entries ;) So switching to user solved the problem. However, thanks for your answer! Best, Filip --- (*) Problem Exists Between Chair And Keyboard ;) On Fri, 2010-11-05 at 17:22 +0100, Nicolai Hess wrote: 2010/11/5 Filip-M. Brinkmann filip.brinkm...@gmail.com Hi all, I'd like to code a small Todo-list widget, which shows all due to-dos on the desktop. I started today, but I cannot access the to-dos because the CCalendar instances don't return any entries. I have 2 Calendars on my N900 and I get two calendar instances back, which is fine. They return the correct names and attributes, but are otherwise unresponsive. ;) so, for instance the following code returns 0 as to-do count: ... QString output; int count=0; int error; CMulticalendar* mcal = CMulticalendar::MCInstance(); vectorCCalendar* cals = mcal-getListCalFromMc(); for(std::vectorCCalendar*::iterator it = cals.begin(); it != cals.end(); ++it){ // here, I get those 2 calendars correctly // next line sums up to 0 all the time count += (dynamic_castCCalendar*(*it))-getTodos(error).size(); // next line shows the calendar names cerr (dynamic_castCCalendar*(*it))-getCalendarName(); } output= QString(Found %1 todos.).arg(count); // count is 0 here, although I have like 20 todos in one calendar return output; -- Same behaviour shows on getEvents() and so on... Since documentation is...ehm... not very complete: does anyone know what happens there? cheers, filip ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers For debugging purpose you can create an empty file: /home/user/.calendar/log (reboot may necessary) This file indicates the calendar-backend to log ALL sql and results as syslog messages. Now you can see which sql and parameters are called for example to retrive all todos with getTodos() Btw pay attention, that methods like this one: (dynamic_castCCalendar*(*it))-getTodos(error).size(); create a vector with dynamically allocated objects, and you have to free them. regards nicolai signature.asc Description: This is a digitally signed message part ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
calendar-backend API: CCalendar's entries empty
Hi all, I'd like to code a small Todo-list widget, which shows all due to-dos on the desktop. I started today, but I cannot access the to-dos because the CCalendar instances don't return any entries. I have 2 Calendars on my N900 and I get two calendar instances back, which is fine. They return the correct names and attributes, but are otherwise unresponsive. ;) so, for instance the following code returns 0 as to-do count: ... QString output; int count=0; int error; CMulticalendar* mcal = CMulticalendar::MCInstance(); vectorCCalendar* cals = mcal-getListCalFromMc(); for(std::vectorCCalendar*::iterator it = cals.begin(); it != cals.end(); ++it){ // here, I get those 2 calendars correctly // next line sums up to 0 all the time count += (dynamic_castCCalendar*(*it))-getTodos(error).size(); // next line shows the calendar names cerr (dynamic_castCCalendar*(*it))-getCalendarName(); } output= QString(Found %1 todos.).arg(count); // count is 0 here, although I have like 20 todos in one calendar return output; -- Same behaviour shows on getEvents() and so on... Since documentation is...ehm... not very complete: does anyone know what happens there? cheers, filip ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Trying to switch GSM provider by API
Hi Faheem, thanks for the awesome answer. Due to several reasons, I got into coding not until this week. Your code led to much insight on my side ;) However, It seems that the get_operator_name method on com.nokia.phone.net does not exist (anymore). I verified by issuing dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_operator_name Seems like my problem got a lot more difficult now. You have any idea what happened? Maybe the Nokia DBus API changed in PR1.3? Best, Filip On Wed, 2010-06-16 at 13:04 +0100, Faheem Pervez wrote: Oh, it's probably a good idea to call g_strfreev and g_array_free in on_list_recieved in the file get_networks.c... On 16/06/2010, Faheem Pervez tripp...@gmail.com wrote: Hiya, Nokia, being the Kings of Open Source that they are, won't release the headers for libconnui - the library used by the Phone Control Panel applet to perform this stuff. However, libconnui is a wrapper around DBus-GLib/Mission Control etc. Graham Cobb produced a brilliant Wiki page on working out the D-Bus method calls: https://garage.maemo.org/plugins/wiki/index.php?Toolsid=1106type=g I've attached three DBus-GLib examples which I believe should be enough for you to perform what you asked for. I'm not sure what all the values represent so... maybe looking at www.bleb.org/software/maemo/telephony-maemo.c and http://repository.maemo.org/extras-devel/pool/fremantle/free/source/n/netmon/ will help. One will print a list of the available networks around you; this is done in the way the CPA does it. One will tell you the current Network Selection mode (Manual/Automatic); the current cell information; and operator name. The other will set the mode into automatic or manual (hardcoded for my provider, T-Mobile UK). Best regards, Faheem On 24 May 2010 12:20, Filip-Martin Brinkmann filip.brinkm...@gmail.com wrote: Hi guys, I'm trying to write a small widget that allows to switch back to a defined GSM provider. Point is, I'm commuting everyday to switzerland and back to germany the same day. When I reach covering area of my german provider, the N900 won't switch back unless I go to settings-phone-search and switch to manual search etc... I therefore wanted to shortcut this. However, after browser all possible documentation, I still have no clue where to search - what API can I use? Or is there no such possibility at all? I'd be very grateful for someone pointing me in the right direction. best, filip ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers