#ifndef COMMON_H #define COMMON_H #include #include #include #define UKUI_SEARCH_PIPE_PATH (QDir::homePath()+"/.config/org.ukui/ukui-search/ukuisearch").toLocal8Bit().constData() #define FILE_SEARCH_VALUE "0" #define DIR_SEARCH_VALUE "1" #define LABEL_MAX_WIDTH 300 #define HOME_PATH QDir::homePath() static const QStringList allAppPath = { QDir::homePath()+"/.local/share/applications/", "/usr/share/applications/" }; static const QMap targetFileTypeMap = { std::map::value_type("doc", true), std::map::value_type("docx", true), std::map::value_type("ppt", true), std::map::value_type("pptx", true), std::map::value_type("xls", true), std::map::value_type("xlsx", true), std::map::value_type("txt", true), std::map::value_type("dot", true), std::map::value_type("wps", true), std::map::value_type("pps", true), std::map::value_type("dps", true), std::map::value_type("et", true), std::map::value_type("pdf", true) }; //TODO Put things that needed to be put here here. #endif // COMMON_H