Files
create/src/App/Branding.h

55 lines
2.1 KiB
C++

/***************************************************************************
* Copyright (c) 2015 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 51 Franklin Street, *
* Fifth Floor, Boston, MA 02110-1301, USA *
* *
***************************************************************************/
#ifndef APP_BRANDING_H
#define APP_BRANDING_H
#include <string>
#include <QMap>
#include <QVector>
#include <QString>
#include <QDomDocument>
class QIODevice;
namespace App {
class Branding
{
public:
typedef QMap<std::string, std::string> XmlConfig;
Branding();
bool readFile(const QString& fn);
XmlConfig getUserDefines() const;
private:
QVector<std::string> filter;
bool evaluateXML(QIODevice *device, QDomDocument& xmlDocument);
QDomDocument domDocument;
};
}
#endif // APP_BRANDING_H