2
This file is part of kdepim.
4
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
5
Copyright (c) 2004 Till Adam <adam@kde.org>
6
Copyright (c) 2005 Reinhold Kainhofer <reinhold@kainhofer.com>
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Library General Public
10
License as published by the Free Software Foundation; either
11
version 2 of the License, or (at your option) any later version.
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Library General Public License for more details.
18
You should have received a copy of the GNU Library General Public License
19
along with this library; see the file COPYING.LIB. If not, write to
20
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
Boston, MA 02110-1301, USA.
24
#include "groupdavaddressbookadaptor.h"
25
#include "groupdavglobals.h"
26
#include "davgroupwareglobals.h"
27
#include "webdavhandler.h"
29
#include <kabc/addressee.h>
30
#include <kabc/vcardconverter.h>
31
#include <kabc/resourcecached.h>
38
GroupDavAddressBookAdaptor::GroupDavAddressBookAdaptor() : DavAddressBookAdaptor()
42
void GroupDavAddressBookAdaptor::customAdaptDownloadUrl( KUrl &url )
44
url = WebdavHandler::toDAV( url );
47
void GroupDavAddressBookAdaptor::customAdaptUploadUrl( KUrl &url )
49
kDebug()<<"GroupDavAddressBookAdaptor::adaptUploadUrl("<<url.url()<<")";
50
url = WebdavHandler::toDAV( url );
51
// url.setPath( url.path() + "/new.vcf" );
52
// url.addPath( "new.vcf" );
53
kDebug()<<"after GroupDavAddressBookAdaptor::adaptUploadUrl("<<url.url()<<")";