Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1238

Can't fetch todo items using mkcal backend

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.0
    • 1.1.0
    • Organizer
    • None
    • 6de270628a9ec63309b5fe1175ca86b9499860c8

    Description

      Lin Quan (Nomovok) 2011-01-26 15:52:40 EET

      Application package libmessagingwidgets0_0.0.54.13+0m6_armel.deb is using
      interface

      • libmkcal
        api_interface :libmkcal
        api_state :unstable
        api_scope :Platform

      which is unwanted according to
      https://projects.maemo.org/mediawiki/index.php/Harmattan_API_Analysis.

      The dependencies are unwanted because they prevent easy porting to Ilmatar. The
      dependency should be removed if possible.

      [reply] [-] Comment 1 Marek Kamil (Comarch) error_managers 2011-01-26 17:07:09 EET

      Moving to messaging-ui

      [reply] [-] Comment 2 Hirvela Alvi (Nokia) H_TPO 2011-01-26 22:55:54 EET

      Andrey, please check this. You added this when you patched mui with new contact
      picking stuff. If there is no replacement for this, wontfix it.

      [reply] [-] Comment 3 Kozhanov Andrey (Teleca) 2011-01-27 08:40:00 EET

      (In reply to comment #2)
      > Andrey, please check this. You added this when you patched mui with new contact
      > picking stuff. If there is no replacement for this, wontfix it.

      Moving to Calendar, they suggested to use this API.

      The problem is: we need to get calendar item (Event or ToDo) from tracker and
      export it as vCalendar.

      Currently this is done by the following code:

      KDateTime local = KDateTime::currentDateTime(KDateTime::Spec::LocalZone());
      mKCal::ExtendedCalendar::Ptr calendar(new mKCal::ExtendedCalendar(
      local.timeZone().name()));
      mKCal::ExtendedStorage::Ptr
      storage(mKCal::ExtendedCalendar::defaultStorage(calendar));
      storage->open();
      storage->load(cal->getUid());

      //Export
      QTemporaryFile
      tmpFile(QString("%1/vcalendarXXXXXX.vcs").arg(QDir::tempPath()));
      tmpFile.open();
      tmpFile.setAutoRemove(false);
      KCalCore::FileStorage exportStore(calendar, tmpFile.fileName(), new
      KCalCore::VCalFormat());
      exportStore.save();
      exportStore.close();

      Please clarify if there are some other API for accessing calendar or we have to
      use libmkcal.

      [reply] [-] Comment 4 Palonen Timo (Nokia) 2011-01-27 11:00:27 EET

      Does Qt Mobility Organizer API suit your needs?
      http://doc.trolltech.com/qtmobility-1.1.0/organizer.html

      [reply] [-] Comment 5 Manera Alvaro (Nokia) 2011-01-27 14:42:48 EET

      Last time I checked QOrganiser didn't have bindings to mkcal yet. I don't know
      if they have provided them.

      But we don't have any other api to access calendar. So if you cannot use
      QOrganiser you are out of luck. Moving back.

      [reply] [-] Comment 6 Marek Kamil (Comarch) error_managers 2011-01-27 16:39:50 EET

      [setting MEDIUM priority on behalf of TPO]

      [reply] [-] Comment 7 Hirvela Alvi (Nokia) H_TPO 2011-01-31 20:48:11 EET

      Andrey, please comment.

      [reply] [-] Comment 8 Kozhanov Andrey (Teleca) 2011-02-01 07:59:15 EET

      (In reply to comment #7)
      > Andrey, please comment.

      From the first look it should be possible to use QOrganiser for accessing
      calendar items and then use QVersitOrganizerExporter to export data as
      vCalendar.

      I can try this approach, keep it assigned to me.

      [reply] [-] Comment 9 Kozhanov Andrey (Teleca) 2011-02-03 11:56:48 EET

      can't check this until bug 223114 is fixed, adding dependency

      [reply] [-] Comment 10 Kozhanov Andrey (Teleca) 2011-02-07 13:39:17 EET

      I've checked, and it works fine for Events, but not for Todos.
      I've tried to fetch OrganizerItem by GUID or just fetch all available items.

      E.g. when I try to fetch all items using QOrganizerManager::items() it returns
      only Events.

      However where are some debug output which seems to deal with Todo items, so I
      assume that it might be a bug in QOrganiser-mkcal bindings.

      Here is debug output:

      Jan 1 11:28:09 (none) MESSAGING-UI: [09:780] sqlitestorage.cpp: 2899 - SQL
      query: select * from Version
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:781] sqlitestorage.cpp: 2984 - SQL
      query: select * from Timezones where TzId=1
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:782] sqlitestorage.cpp: 2783 - SQL
      query: select * from Calendars order by Name
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:786] sqlitestorage.cpp: 2786 - loaded
      notebook "11111111-2222-3333-4444-555555555555" "Personal" from database
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:788] sqlitestorage.cpp: 408 - SQL
      query: select * from Components where DateDeleted=0
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:790] sqlitestorage.cpp: 1735 - SQL
      query: select * from Customproperties where ComponentId=?
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:791] sqlitestorage.cpp: 1736 - SQL
      query: select * from Attendee where ComponentId=?
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:792] sqlitestorage.cpp: 1737 - SQL
      query: select * from Alarm where ComponentId=?
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:793] sqlitestorage.cpp: 1738 - SQL
      query: select * from Recursive where ComponentId=?
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:794] sqlitestorage.cpp: 1739 - SQL
      query: select * from Rdates where ComponentId=?
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:800] sqlitestorage.cpp: 1772 - adding
      event "c6364c11-de98-4c0f-a492-c8bf1d68ea67" "" "" in calendar
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:803] sqlitestorage.cpp: 2260 -
      calendarModified called: true
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:804] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "c6364c11-de98-4c0f-a492-c8bf1d68ea67"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:805] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "c6364c11-de98-4c0f-a492-c8bf1d68ea67"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:808] sqlitestorage.cpp: 1772 - adding
      event "9325125c-b038-4675-a1c5-394b4a8e1492" "2011-01-01T10:00:00+02:00"
      "2011-01-01T11:00:00+02:00" in calendar
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:809] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "9325125c-b038-4675-a1c5-394b4a8e1492"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:810] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "9325125c-b038-4675-a1c5-394b4a8e1492"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:812] sqlitestorage.cpp: 1810 - adding
      todo "81add459-e917-4089-82dd-6a3c80154221" "" "2011-01-01T08:32:13Z" in
      calendar
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:813] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "81add459-e917-4089-82dd-6a3c80154221"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:814] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "81add459-e917-4089-82dd-6a3c80154221"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:815] sqlitestorage.cpp: 1772 - adding
      event "d8cd797b-7b28-4ac5-9117-b04a4f6fd9e8" "" "" in calendar
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:816] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "d8cd797b-7b28-4ac5-9117-b04a4f6fd9e8"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:816] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "d8cd797b-7b28-4ac5-9117-b04a4f6fd9e8"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:818] sqlitestorage.cpp: 1772 - adding
      event "62bac446-b610-4d64-b017-1d3b68c06179" "2011-01-01T12:00:00+02:00"
      "2011-01-01T13:00:00+02:00" in calendar
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:819] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "62bac446-b610-4d64-b017-1d3b68c06179"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:819] calendar.cpp: 556 - setting
      notebook "11111111-2222-3333-4444-555555555555" for
      "62bac446-b610-4d64-b017-1d3b68c06179"
      Jan 1 11:28:09 (none) MESSAGING-UI: [09:841] void
      MessagingAttachmentPickerPrivate::handleContentItemSelected(const QString&)
      "############Could not fetch item
      urn:x-ical:81add459-e917-4089-82dd-6a3c80154221 "

      Todo item with id "81add459-e917-4089-82dd-6a3c80154221" appears in the log,
      but could not be fetched for some reason.

      Moving to H-Calendar for clarification.

      [reply] [-] Comment 11 Manera Alvaro (Nokia) 2011-02-09 20:50:05 EET

      I don't know, we are not implementing the QOrganiser, Qt in Brisbane is doing
      the bindings.

      [reply] [-] Comment 12 Kozhanov Andrey (Teleca) 2011-02-10 10:30:38 EET

      (In reply to comment #11)
      > I don't know, we are not implementing the QOrganiser, Qt in Brisbane is doing
      > the bindings.

      and what is correct component in Bugzilla to assign this to them?

      [reply] [-] Comment 13 Marek Kamil (Comarch) error_managers 2011-02-10 17:34:35 EET

      [setting MEDIUM priority on behalf of TPO]

      [reply] [-] Comment 14 Manera Alvaro (Nokia) 2011-02-11 00:49:11 EET

      I don't know if there is a generic QtMobility component. If not, try with Qt.

      [reply] [-] Comment 15 Marek Kamil (Comarch) error_managers 2011-02-11 11:49:55 EET

      (In reply to comment #14)
      > I don't know if there is a generic QtMobility component. If not, try with Qt.

      There is H-Qt Mobility component, moving there.

      Attachments

        1. organizer-test.tar.gz
          0.5 kB
          Andrey Kozhanov

        Activity

          People

            pairajal Paivi Rajala
            asifzubair Asif Zubair Bhatti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: