Libkdav2

davprotocolbase.cpp
1/*
2 Copyright (c) 2009 Grégory Oestreicher <greg@kamago.net>
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
23using namespace KDAV2;
24
25XMLQueryBuilder::~XMLQueryBuilder()
26{
27}
28
29void XMLQueryBuilder::setParameter(const QString &key, const QVariant &value)
30{
31 mParameters[key] = value;
32}
33
34QVariant 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
46
51
virtual QString principalHomeSetNS() const
Returns the namespace of the home set.
virtual ~DavProtocolBase()
Destroys the dav protocol base.
virtual QString principalHomeSet() const
Returns the home set that this protocol supports.
bool contains(const Key &key) const const
T value(const Key &key, const T &defaultValue) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.