ukui-search/file-utils.h

37 lines
856 B
C
Raw Normal View History

2020-12-21 18:50:54 +08:00
#ifndef FILEUTILS_H
#define FILEUTILS_H
#include "gobject-template.h"
2020-12-21 18:50:54 +08:00
#include <QString>
#include <QCryptographicHash>
#include <QIcon>
#include <QMap>
2020-12-21 18:50:54 +08:00
class FileUtils
{
public:
static std::string makeDocUterm(QString );
static QIcon getFileIcon(const QString &, bool checkValid = true);
static QIcon getAppIcon(const QString &);
static QIcon getSettingIcon(const QString &, const bool&);
static QString getFileName(const QString &);
static QString getAppName(const QString &);
static QString getSettingName(const QString &);
static QMap<QString, QStringList> map_chinese2pinyin;
//chinese character to pinyin
static QString find(const QString&);
static QStringList findMultiToneWords(const QString&);
static void loadHanziTable(const QString&);
2020-12-21 18:50:54 +08:00
private:
FileUtils();
};
#endif // FILEUTILS_H