2021-05-13 11:17:07 +08:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
2021-06-10 20:43:57 +08:00
|
|
|
#include <QMap>
|
2021-05-13 11:17:07 +08:00
|
|
|
#define UKUI_SEARCH_PIPE_PATH (QDir::homePath()+"/.config/org.ukui/ukui-search/ukuisearch").toLocal8Bit().constData()
|
2021-09-13 20:43:30 +08:00
|
|
|
#define LABEL_MAX_WIDTH 320
|
2021-06-10 20:43:57 +08:00
|
|
|
#define HOME_PATH QDir::homePath()
|
|
|
|
static const QMap<QString, bool> targetFileTypeMap = {
|
|
|
|
std::map<QString, bool>::value_type("doc", true),
|
|
|
|
std::map<QString, bool>::value_type("docx", true),
|
|
|
|
std::map<QString, bool>::value_type("ppt", true),
|
|
|
|
std::map<QString, bool>::value_type("pptx", true),
|
|
|
|
std::map<QString, bool>::value_type("xls", true),
|
|
|
|
std::map<QString, bool>::value_type("xlsx", true),
|
|
|
|
std::map<QString, bool>::value_type("txt", true),
|
|
|
|
std::map<QString, bool>::value_type("dot", true),
|
|
|
|
std::map<QString, bool>::value_type("wps", true),
|
|
|
|
std::map<QString, bool>::value_type("pps", true),
|
|
|
|
std::map<QString, bool>::value_type("dps", true),
|
|
|
|
std::map<QString, bool>::value_type("et", true),
|
|
|
|
std::map<QString, bool>::value_type("pdf", true)
|
|
|
|
};
|
2021-05-13 11:17:07 +08:00
|
|
|
//TODO Put things that needed to be put here here.
|
|
|
|
#endif // COMMON_H
|