Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
1.1.0, 1.2.0
-
None
-
Compiled on Windows 7 and Ubuntu 10.10 with QtSDK 1.1. N900 with PR 1.3 and QtMobility 1.1 and 1.2 from extras-devel since Organizer module is not included in 1.0.2 version.
Description
I'm not able to get the entries in the automatic Birthdays calendar.
I have coded a test software with the following code:
#include <QtCore/QCoreApplication> #include <QDebug> #include <QOrganizerManager> #include <QTime> using namespace QtMobility; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug()<<"Available managers: "<<QOrganizerManager::availableManagers(); QOrganizerManager defaultManager("maemo5"); QList<QOrganizerCollection> collections = defaultManager.collections(); qDebug()<<"Number of collections: "<<collections.size(); qDebug()<<"Collection keyname is: "<<collections.at(0).KeyName.latin1(); qDebug()<<"Collection keycolor is: "<<collections.at(0).KeyColor.latin1(); qDebug()<<"Collection keydescription is: "<<collections.at(0).KeyDescription.latin1(); qDebug()<<"Collection keyimage is: "<<collections.at(0).KeyImage.latin1(); for (int i=0; i<collections.size(); i++) { QTime time; time.start(); qDebug()<<"Collection "<<i<<" name is: "<<collections.at(i).metaData("Name").toString(); qDebug()<<"Collection "<<i<<" color is: "<<collections.at(i).metaData("Color").toString(); qDebug()<<"Collection "<<i<<" description is: "<<collections.at(i).metaData("Description").toString(); qDebug()<<"Collection "<<i<<" Image is: "<<collections.at(i).metaData("Image"); QOrganizerItemCollectionFilter collectionFilter; collectionFilter.setCollectionId(collections.at(i).id()); QList<QOrganizerItem> entries; entries = defaultManager.items(collectionFilter); qDebug()<<"Number of Collection "<<i<<" Entries = "<<entries.size(); qDebug()<<"Time to load the entries: "<<time.elapsed(); } }
but the birthdays collection return always zero entries. The only way to show those elements is to export the collection from the Maemo Calendar app and to import it into a custom calendar. It seams the automatic calendar doesn't get searched at all. Tried also creating a date filter seeking in the entire manager: no birthday entry is shown.