aboutsummaryrefslogtreecommitdiff
path: root/src/kconf_update/kconfigutils.h
blob: 5b07c4fe975d5e536c78f91ad458d03e67d5d127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
    This file is part of the KDE libraries

    SPDX-FileCopyrightText: 2010 Canonical Ltd
    SPDX-FileContributor: Aurélien Gâteau <aurelien.gateau@canonical.com>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KCONFIGUTILS_H
#define KCONFIGUTILS_H

#include <QStringList>

class QString;

class KConfig;
class KConfigGroup;

namespace KConfigUtils
{

bool hasGroup(KConfig *, const QStringList &);

KConfigGroup openGroup(KConfig *, const QStringList &);

QStringList parseGroupString(const QString &str, bool *ok, QString *error);

QString unescapeString(const QString &str, bool *ok, QString *error);

} // namespace

#endif /* KCONFIGUTILS_H */