Tianchi  v0.0.2 build 20130701
C++ library for Qt with VC & mingW
tcfile.h
1 // **************************************************************************
2 // Tianchi C++ library for Qt (open source)
3 // 天池共享源码库
4 // 版权所有 (C) 天池共享源码库开发组
5 // 授权协议:请阅读天池共享源码库附带的授权协议
6 // **************************************************************************
7 // 文档说明:文件操作常用处理类
8 // ==========================================================================
9 // 开发日志:
10 // 日期 人员 说明
11 // --------------------------------------------------------------------------
12 // 2013.04.15 圣域天子 建立
13 // 2013.06.14 XChinux 为loadFromFile()函数增加codec参数
14 // ==========================================================================
16 // ==========================================================================
17 #ifndef TIANCHI_TCFILE_H
18 #define TIANCHI_TCFILE_H
19 
20 #include <tianchi/tcglobal.h>
21 
22 #include <QString>
23 
27 class TIANCHI_API TcFile
28 {
29 public:
31  static bool loadFromFile(QString &context, const QString &filename,
32  const QString &codec = QString());
33 
37  static QString uniqueFileName(const QString &dir,
38  const QString &fileTemplate, const QString &suffix= QString());
39 
43  static QString fileVersion(const QString& exeFile);
44 
46  static QStringList searchFiles(const QString& path);
47 };
48 
49 #endif // TIANCHI_TCFILE_H