Fix debian/rules in places where the move to BUILD/ dir was not complete.
[tagua/yd.git] / src / themeinfo.h
blobd13cc958a153e81b034cf7d16359d205bed10803
1 /*
2 Copyright (c) 2006-2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006-2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef THEMEINFO_H
12 #define THEMEINFO_H
14 #include <QStringList>
15 #include <QDateTime>
17 class Settings;
19 struct ThemeInfo {
20 QString file_name;
21 QString name;
22 QString description;
23 QString desktopFile;
24 QStringList variants;
25 QDateTime last_modified;
27 operator bool() const;
29 bool operator==(const ThemeInfo& info) const;
31 void save(Settings& s);
32 static ThemeInfo fromSettings(const Settings& s);
33 static ThemeInfo fromDesktopFile(const QString& f);
36 uint qHash(const ThemeInfo& info);
38 #endif // THEMEINFO_H