mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
32 lines
766 B
C++
32 lines
766 B
C++
/**
|
|
* @file recents_settings.h
|
|
* @ingroup DeckSettings
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef RECENTS_SETTINGS_H
|
|
#define RECENTS_SETTINGS_H
|
|
|
|
#include "settings_manager.h"
|
|
|
|
class RecentsSettings : public SettingsManager
|
|
{
|
|
Q_OBJECT
|
|
friend class SettingsCache;
|
|
|
|
explicit RecentsSettings(const QString &settingPath, QObject *parent = nullptr);
|
|
RecentsSettings(const RecentsSettings & /*other*/);
|
|
|
|
public:
|
|
QStringList getRecentlyOpenedDeckPaths() const;
|
|
void clearRecentlyOpenedDeckPaths();
|
|
void updateRecentlyOpenedDeckPaths(const QString &deckPath);
|
|
|
|
QString getLatestDeckDirPath() const;
|
|
void setLatestDeckDirPath(const QString &dirPath);
|
|
|
|
signals:
|
|
void recentlyOpenedDeckPathsChanged();
|
|
};
|
|
|
|
#endif // RECENTS_SETTINGS_H
|