1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : validate / fix ui files
9
* Copyright (C) 2009 by Andi Clemens <andi dot clemens at gmx dot net>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#ifndef UIFILEVALIDATOR_H
25
#define UIFILEVALIDATOR_H
29
#include <QXmlDefaultHandler>
34
#include "digikam_export.h"
42
class UiFileValidatorPriv;
44
class DIGIKAM_EXPORT UiFileValidator
48
UiFileValidator(const QString& filename);
53
QByteArray getFixedContent();
55
bool fixConfigFile(const QString& destination);
59
bool isReadable(QFile& file) const;
60
bool isWritable(QFile& file) const;
64
UiFileValidatorPriv* const d;
67
} // namespace Digikam
69
#endif // UIFILEVALIDATOR_H