Hi,

I fixed my patch for the qt-mobility package so that tracker is used as
fallback if the qtcontacts-eds package is not installed (patch attached).
I have just uploaded the fixed package to devel:meego-ux.

Note that qt-mobility has a build dependency on qttracker at the moment for
some reason. I did not remove it.
I did not add qtcontacts-eds as a run-time dependency either because we want
to be able to remove it.
A clean solution for this would be to use package "Provides" and make
qt-mobility depend on the meta-package provided by qtcontacts-tracker and
qtcontacts-eds (e.g. qtcontacts-backend).
Unfortunately, this would certainly require to update the qtcontacts-tracker
packaging.

Kr,
Chris.

On Mon, Jun 6, 2011 at 3:10 PM, Robin Burchell <[email protected]>wrote:

> On 6 June 2011 13:03, Patrick Ohly <[email protected]> wrote:
> > IMHO QtContact should have a configuration mechanism for these
> > priorities instead of hard-coding them.
>
> I'd agree, and it shouldn't be that hard to do, surely. Might be worth
> opening a bug for so it doesn't get forgotten?
>
> --
> Robin Burchell
> http://rburchell.com
>



-- 
Dr. Christophe Dumez
Linux Software Engineer
Intel Finland Oy - Open Source Technology Center
From e87aab8ccd9507b0a1456a97c8c0eb33826e89fb Mon Sep 17 00:00:00 2001
From: Christophe Dumez <[email protected]>
Date: Mon, 6 Jun 2011 15:06:07 +0300
Subject: [PATCH] contacts: Use eds as default engine and tracker and fallback

Use EDS as default backend for contacts if present, fallback
to tracker otherwise.
---
 src/contacts/contacts.pro        |    3 ++-
 src/contacts/qcontactmanager.cpp |    7 +++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/contacts/contacts.pro b/src/contacts/contacts.pro
index 72bee8e..39e9e17 100644
--- a/src/contacts/contacts.pro
+++ b/src/contacts/contacts.pro
@@ -91,7 +91,8 @@ maemo5 {
 }
 
 maemo6|meego {
-    isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=tracker
+    isEmpty(CONTACTS_DEFAULT_ENGINE): CONTACTS_DEFAULT_ENGINE=eds
+    isEmpty(CONTACTS_FALLBACK_ENGINE): CONTACTS_FALLBACK_ENGINE=tracker
 }
 
 
diff --git a/src/contacts/qcontactmanager.cpp b/src/contacts/qcontactmanager.cpp
index 2380b22..1ef52a7 100644
--- a/src/contacts/qcontactmanager.cpp
+++ b/src/contacts/qcontactmanager.cpp
@@ -144,6 +144,13 @@ QStringList QContactManager::availableManagers()
     QContactManagerData::loadFactories();
     ret.append(QContactManagerData::m_engines.keys());
 
+    // Move the fallback engine to second position
+#if defined(Q_CONTACTS_FALLBACK_ENGINE)
+    if (ret.removeAll(QLatin1String(makename(Q_CONTACTS_FALLBACK_ENGINE)))) {
+        ret.prepend(QLatin1String(makename(Q_CONTACTS_FALBACK_ENGINE)));
+    }
+#endif
+
     // now swizzle the default engine to pole position
 #if defined(Q_CONTACTS_DEFAULT_ENGINE)
     if (ret.removeAll(QLatin1String(makename(Q_CONTACTS_DEFAULT_ENGINE)))) {
-- 
1.7.4.4

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to