46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/*
|
|
* Beware of this preprocessor hack used to redefine the settingCache class
|
|
* instead of including it and all of its dependencies.
|
|
*/
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
#include "../../cockatrice/src/carddatabase.h"
|
|
|
|
#define SETTINGSCACHE_H
|
|
|
|
class CardDatabaseSettings
|
|
{
|
|
public:
|
|
void setSortKey(QString shortName, unsigned int sortKey);
|
|
void setEnabled(QString shortName, bool enabled);
|
|
void setIsKnown(QString shortName, bool isknown);
|
|
|
|
unsigned int getSortKey(QString shortName);
|
|
bool isEnabled(QString shortName);
|
|
bool isKnown(QString shortName);
|
|
};
|
|
|
|
class SettingsCache: public QObject {
|
|
Q_OBJECT
|
|
private:
|
|
CardDatabaseSettings *cardDatabaseSettings;
|
|
public:
|
|
SettingsCache();
|
|
~SettingsCache();
|
|
QString getCustomCardDatabasePath() const;
|
|
QString getCardDatabasePath() const;
|
|
QString getTokenDatabasePath() const;
|
|
QString getSpoilerCardDatabasePath() const;
|
|
CardDatabaseSettings& cardDatabase() const;
|
|
signals:
|
|
void cardDatabasePathChanged();
|
|
};
|
|
|
|
|
|
#define PICTURELOADER_H
|
|
|
|
class PictureLoader {
|
|
void clearPixmapCache(CardInfoPtr card);
|
|
};
|