Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
22 lines
475 B
C++
22 lines
475 B
C++
#pragma once
|
|
#include "common/String.h"
|
|
#include "common/ExplicitSingleton.h"
|
|
#include <vector>
|
|
|
|
class Favorite : public ExplicitSingleton<Favorite>
|
|
{
|
|
std::vector<ByteString> favoritesList;
|
|
public:
|
|
Favorite();
|
|
|
|
std::vector<ByteString> GetFavoritesList();
|
|
bool IsFavorite(ByteString identifier);
|
|
bool AnyFavorites();
|
|
|
|
void AddFavorite(ByteString identifier);
|
|
void RemoveFavorite(ByteString identifier);
|
|
|
|
void SaveFavoritesToPrefs();
|
|
void LoadFavoritesFromPrefs();
|
|
};
|