author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kstandarddirs_old.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
-rw-r--r-- | microkde/kstandarddirs_old.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/microkde/kstandarddirs_old.h b/microkde/kstandarddirs_old.h new file mode 100644 index 0000000..87f8d69 --- a/dev/null +++ b/microkde/kstandarddirs_old.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef MINIKDE_KSTANDARDDIRS_H | ||
2 | #define MINIKDE_KSTANDARDDIRS_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qstringlist.h> | ||
6 | |||
7 | QString locate( const char *type, const QString& filename ); | ||
8 | QString locateLocal( const char *type, const QString& filename ); | ||
9 | |||
10 | class KStandardDirs | ||
11 | { | ||
12 | public: | ||
13 | QStringList findAllResources( const QString &, const QString &, bool, bool); | ||
14 | QString findResourceDir( const QString &, const QString & ); | ||
15 | |||
16 | static void setAppDir( const QString & ); | ||
17 | static QString appDir() { return mAppDir; } | ||
18 | |||
19 | /** | ||
20 | * Recursively creates still-missing directories in the given path. | ||
21 | * | ||
22 | * The resulting permissions will depend on the current umask setting. | ||
23 | * permission = mode & ~umask. | ||
24 | * | ||
25 | * @param dir Absolute path of the directory to be made. | ||
26 | * @param mode Directory permissions. | ||
27 | * @return true if successful, false otherwise | ||
28 | */ | ||
29 | static bool makeDir(const QString& dir, int mode = 0755); | ||
30 | |||
31 | private: | ||
32 | static QString mAppDir; | ||
33 | }; | ||
34 | |||
35 | #endif | ||