Libkdav2

davprotocolbase.cpp
1 /*
2  Copyright (c) 2009 GrĂ©gory Oestreicher <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
19 #include "davprotocolbase.h"
20 
21 #include <QVariant>
22 
23 using namespace KDAV2;
24 
25 XMLQueryBuilder::~XMLQueryBuilder()
26 {
27 }
28 
29 void XMLQueryBuilder::setParameter(const QString &key, const QVariant &value)
30 {
31  mParameters[key] = value;
32 }
33 
34 QVariant XMLQueryBuilder::parameter(const QString &key) const
35 {
36  QVariant ret;
37  if (mParameters.contains(key)) {
38  ret = mParameters.value(key);
39  }
40  return ret;
41 }
42 
44 {
45 }
46 
48 {
49  return QString();
50 }
51 
53 {
54  return QString();
55 }
virtual QString principalHomeSet() const
Returns the home set that this protocol supports.
virtual ~DavProtocolBase()
Destroys the dav protocol base.
bool contains(const Key &key) const const
const T value(const Key &key, const T &defaultValue) const const
virtual QString principalHomeSetNS() const
Returns the namespace of the home set.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:21:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.