aboutsummaryrefslogtreecommitdiff
path: root/src/kconf_update/kconfigutils.h
blob: 4656be1d058655795fbda4706b80458cf37e73b8 (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
/*
    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

class QString;
class QStringList;

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 */