[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/kresources/kolab/kabc
From: Allen Winter <winter () kde ! org>
Date: 2010-06-11 22:59:39
Message-ID: 20100611225939.CFBAEAC8CF () svn ! kde ! org
[Download RAW message or body]
SVN commit 1137200 by winterz:
write the free-busy-url attribute if the contact has a Free/Busy URL.
kolab/issue4401
MERGE: trunk,4.4
M +6 -3 contact.cpp
--- branches/kdepim/enterprise/kdepim/kresources/kolab/kabc/contact.cpp #1137199:1137200
@@ -35,6 +35,7 @@
#include <kabc/addressee.h>
#include <kabc/stdaddressbook.h>
+#include <libkcal/freebusyurlstore.h>
#include <libkdepim/distributionlist.h>
#include <kio/netaccess.h>
#include <kdebug.h>
@@ -1129,6 +1130,11 @@
}
}
+ QString url = KCal::FreeBusyUrlStore::self()->readUrl( addressee->preferredEmail() );
+ if ( !url.isEmpty() ) {
+ setFreeBusyUrl( url );
+ }
+
// Those fields, although defined in Addressee, are not used in KDE
// (e.g. not visible in kaddressbook/addresseeeditorwidget.cpp)
// So it doesn't matter much if we don't have them in the XML.
@@ -1136,9 +1142,6 @@
// Things KAddressBook can't handle, so they are saved as unhandled tags:
// initials, children, gender, language
-
- // TODO: Free/Busy URL. This is done rather awkward in KAddressBook -
- // it stores it in a local file through a korganizer file :-(
}
// The loading is: xml -> Contact -> addressee, this is the second part
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic