~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kresources/groupdav/groupdavaddressbookadaptor.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of kdepim.
3
 
 
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>
7
 
 
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.
12
 
 
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.
17
 
 
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.
22
 
*/
23
 
 
24
 
#include "groupdavaddressbookadaptor.h"
25
 
#include "groupdavglobals.h"
26
 
#include "davgroupwareglobals.h"
27
 
#include "webdavhandler.h"
28
 
 
29
 
#include <kabc/addressee.h>
30
 
#include <kabc/vcardconverter.h>
31
 
#include <kabc/resourcecached.h>
32
 
 
33
 
#include <kio/job.h>
34
 
#include <kdebug.h>
35
 
 
36
 
using namespace KABC;
37
 
 
38
 
GroupDavAddressBookAdaptor::GroupDavAddressBookAdaptor() : DavAddressBookAdaptor()
39
 
{
40
 
}
41
 
 
42
 
void GroupDavAddressBookAdaptor::customAdaptDownloadUrl( KUrl &url )
43
 
{
44
 
  url = WebdavHandler::toDAV( url );
45
 
}
46
 
 
47
 
void GroupDavAddressBookAdaptor::customAdaptUploadUrl( KUrl &url )
48
 
{
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()<<")";
54
 
}