2021-07-08 05:41:34 +00:00
|
|
|
#ifndef SIMPLE_RENAME_HPP
|
|
|
|
#define SIMPLE_RENAME_HPP
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "rename_object.hpp"
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
|
|
using string = std::wstring;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
using string = std::string;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2022-03-06 14:03:06 +00:00
|
|
|
#define STRING_TYPE "string"
|
|
|
|
#define NUM_TYPE "number"
|
|
|
|
#define YEAR_TYPE "year"
|
|
|
|
#define DATE_TYPE "date"
|
|
|
|
#define BOOL_TYPE "bool"
|
2022-03-06 15:40:15 +00:00
|
|
|
#define MULTICHOICE_TYPE "multichoice"
|
2022-03-06 14:03:06 +00:00
|
|
|
|
2021-07-08 05:41:34 +00:00
|
|
|
extern "C" {
|
|
|
|
bool init(const string &configuration);
|
|
|
|
std::vector< RenameObject > getOptions( const RenameObject &search );
|
|
|
|
bool renamePath( const string &path, const RenameObject &renamer );
|
2022-03-12 14:30:21 +00:00
|
|
|
// TODO create object
|
2022-03-06 15:40:15 +00:00
|
|
|
std::vector< std::unordered_map<string, string> > getCustomKeys();
|
|
|
|
// option internal representation, option display value
|
|
|
|
std::vector< std::pair<string, string> > getCustomKeyOptions(const string &key);
|
|
|
|
const string getCustomKeyDefault(const string &key);
|
2021-07-09 11:01:45 +00:00
|
|
|
const string getName();
|
2022-02-27 18:24:35 +00:00
|
|
|
const bool canRenameMultipleFiles();
|
2021-07-08 05:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TV_RENAME_HPP
|