mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
49 lines
2.1 KiB
C++
49 lines
2.1 KiB
C++
// SPDX-License-Identifier: MIT
|
|
//
|
|
// ES-DE Frontend
|
|
// FileSorts.h
|
|
//
|
|
// Gamelist sorting functions.
|
|
// Actual sorting takes place in FileData.
|
|
//
|
|
|
|
#ifndef ES_APP_FILE_SORTS_H
|
|
#define ES_APP_FILE_SORTS_H
|
|
|
|
#include "FileData.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace FileSorts
|
|
{
|
|
bool compareName(const FileData* file1, const FileData* file2);
|
|
bool compareNameDescending(const FileData* file1, const FileData* file2);
|
|
bool compareRating(const FileData* file1, const FileData* file2);
|
|
bool compareRatingDescending(const FileData* file1, const FileData* file2);
|
|
bool compareReleaseDate(const FileData* file1, const FileData* file2);
|
|
bool compareReleaseDateDescending(const FileData* file1, const FileData* file2);
|
|
bool compareDeveloper(const FileData* file1, const FileData* file2);
|
|
bool compareDeveloperDescending(const FileData* file1, const FileData* file2);
|
|
bool comparePublisher(const FileData* file1, const FileData* file2);
|
|
bool comparePublisherDescending(const FileData* file1, const FileData* file2);
|
|
bool compareGenre(const FileData* file1, const FileData* file2);
|
|
bool compareGenreDescending(const FileData* file1, const FileData* file2);
|
|
bool compareNumPlayers(const FileData* file1, const FileData* file2);
|
|
bool compareNumPlayersDescending(const FileData* file1, const FileData* file2);
|
|
bool compareLastPlayed(const FileData* file1, const FileData* file2);
|
|
bool compareLastPlayedDescending(const FileData* file1, const FileData* file2);
|
|
bool compareTimesPlayed(const FileData* file1, const FileData* fil2);
|
|
bool compareTimesPlayedDescending(const FileData* file1, const FileData* fil2);
|
|
bool compareSystem(const FileData* file1, const FileData* file2);
|
|
bool compareSystemDescending(const FileData* file1, const FileData* file2);
|
|
|
|
#if defined(GETTEXT_DUMMY_ENTRIES)
|
|
// This is just to get gettext msgid entries added to the PO message catalog files.
|
|
void gettextMessageCatalogEntries();
|
|
#endif
|
|
|
|
extern const std::vector<FileData::SortType> SortTypes;
|
|
} // namespace FileSorts
|
|
|
|
#endif // ES_APP_FILE_SORTS_H
|