mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
--------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: ebbit1q <ebbit1q@gmail.com>
32 lines
754 B
C++
32 lines
754 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();
|
|
void clearRecentlyOpenedDeckPaths();
|
|
void updateRecentlyOpenedDeckPaths(const QString &deckPath);
|
|
|
|
QString getLatestDeckDirPath();
|
|
void setLatestDeckDirPath(const QString &dirPath);
|
|
|
|
signals:
|
|
void recentlyOpenedDeckPathsChanged();
|
|
};
|
|
|
|
#endif // RECENTS_SETTINGS_H
|