Active Topics

 


Reply
Thread Tools
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#1
I want to develop an homescreen widget using calendar data but I can't compile it. It seams the organizer module of QtMobility is missing for the official mobility version in our N900 and I have checked both in the include path of QtCreator and in the packages installed on n900.

There is organizer library in 1.1 and 1.2 mobility versions in extras-devel, so I may compile it on autobuilder, but I'd like to compile it directly on my own. Any hint?

Last edited by gionni88; 2011-05-09 at 07:47.
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#2
I don't think anything beyond 1.0.x is available for Maemo. For instance. the latest Qt SDK 1.1 shows mobility is at 1.0.2 for Maemo here:
http://labs.qt.nokia.com/2011/05/04/...-1-1-released/.

1.0.2 wouldn't seem to have the organizer module as it does not exist in the API for that version here:
http://doc.qt.nokia.com/qtmobility-1.0/index.html.

I'm not sure if the versions in extras-dev work or not, but there are packages for Qt Mobility 1.1. For example, this package may be the organizer API you need:
libqtm-11-organizer_1.1.0-0fn~fremantle11_armel.deb, where I found here:
http://repository.maemo.org/extras-d...qt-mobility11/

You can always fall back on the calendar-backend official API.
 

The Following User Says Thank You to jackburton For This Useful Post:
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#3
Perhaps this thread has what you need and you should post there:
http://talk.maemo.org/showthread.php...ght=qtmobility

It shows how to use Qt Mobility in your Qt config for building apps.
 

The Following 2 Users Say Thank You to jackburton For This Useful Post:
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#4
Originally Posted by jackburton View Post
Perhaps this thread has what you need and you should post there:
http://talk.maemo.org/showthread.php...ght=qtmobility

It shows how to use Qt Mobility in your Qt config for building apps.
First post in that thread has wiki link on how to include 1.1mobility into QtCreator, couldn't ask more, thanks!
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#5
Let us know how well the organizer module works in mobility 1.1. I haven't tried it myself as I use calendar-backend, but would like to plan to change if it works.
 
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#6
Organizer module works well. Functionality is similar to contacts one, so there is a manager to query to get events from, filter classes and so on. I have not found any problem except one: I can't get birthdays calendar events. I can see as a collection, but it has 0 items. I guess it's because birthdays is an automatic calendar so physically it may not be stored in calendar sql db.
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#7
Originally Posted by gionni88 View Post
Organizer module works well. Functionality is similar to contacts one, so there is a manager to query to get events from, filter classes and so on. I have not found any problem except one: I can't get birthdays calendar events. I can see as a collection, but it has 0 items. I guess it's because birthdays is an automatic calendar so physically it may not be stored in calendar sql db.
Birthdays are stored in the calendar db, yet maintained in the address hash db. Do the following:

Code:
sqlite3 /home/user/.calendar/calendardb 'select * from Components;'
and notice the differences in fields 2 - 4. Here's the schema:

Code:
CREATE TABLE Components(Id INTEGER PRIMARY KEY AUTOINCREMENT,CalendarId INTEGER,                 ComponentType INTEGER, Flags INTEGER, DateStart INTEGER, DateEnd INTEGER,                 Summary TEXT, Location TEXT, Description TEXT, Status INTEGER,Uid TEXT ,                  Until INTEGER,AllDay INTEGER,CreatedTime INTEGER,ModifiedTime INTEGER,Tzid TEXT, TzOffset INTEGER);
CREATE INDEX IDX_COMPONENT on Components(Id,ComponentType,DateStart,DateEnd,status,Until,ModifiedTime);
CREATE TRIGGER delete_component after delete on components     begin     delete from ComponentDetails where componentdetails.Id=OLD.Id;     delete from Recursive where recursive.Id=OLD.Id;     delete from Alarm where alarm.Id=OLD.Id;     delete from Parameters where parameters.ComponentId=OLD.Id;     delete from XProperties where xproperties.ComponentId=OLD.Id;     delete from Instances where Instances.Id=OLD.Id;     end;
__________________
N9: Go white or go home
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:02.