blob: 87f8d69acf42ec342dfbf22ed9d4cea5fbae96e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef MINIKDE_KSTANDARDDIRS_H
#define MINIKDE_KSTANDARDDIRS_H
#include <qstring.h>
#include <qstringlist.h>
QString locate( const char *type, const QString& filename );
QString locateLocal( const char *type, const QString& filename );
class KStandardDirs
{
public:
QStringList findAllResources( const QString &, const QString &, bool, bool);
QString findResourceDir( const QString &, const QString & );
static void setAppDir( const QString & );
static QString appDir() { return mAppDir; }
/**
* Recursively creates still-missing directories in the given path.
*
* The resulting permissions will depend on the current umask setting.
* permission = mode & ~umask.
*
* @param dir Absolute path of the directory to be made.
* @param mode Directory permissions.
* @return true if successful, false otherwise
*/
static bool makeDir(const QString& dir, int mode = 0755);
private:
static QString mAppDir;
};
#endif
|