File indexing completed on 2024-04-21 04:05:22
0001 /* 0002 This file is part of the KDE games library 0003 SPDX-FileCopyrightText: 2008 Andreas Pakulat <apaku@gmx.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #ifndef CARDDECKINFO_P_H 0009 #define CARDDECKINFO_P_H 0010 0011 #include <QPixmap> 0012 #include <QString> 0013 0014 /** 0015 * Stores the information for one card front or back side. 0016 */ 0017 class KCardThemeInfo 0018 { 0019 public: 0020 /** The translated name. */ 0021 QString name; 0022 0023 /** The untranslated name. */ 0024 QString noi18Name; 0025 0026 /** The comment (author and description). */ 0027 QString comment; 0028 0029 /** The full path information. */ 0030 QString path; 0031 0032 /** The translated name of the back side. */ 0033 QString back; 0034 0035 /** The preview image. */ 0036 QPixmap preview; 0037 0038 /** The full filename of the SVG file. */ 0039 QString svgfile; 0040 0041 /** Is this a default deck or set. */ 0042 bool isDefault; 0043 }; 0044 0045 QDebug operator<<(QDebug debug, const KCardThemeInfo &cn); 0046 0047 namespace CardDeckInfo 0048 { 0049 KCardThemeInfo deckInfo(const QString &name); 0050 KCardThemeInfo backInfo(const QString &name); 0051 } 0052 0053 #endif