summaryrefslogtreecommitdiff
path: root/libslcompat/slmisc.h
Unidiff
Diffstat (limited to 'libslcompat/slmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libslcompat/slmisc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libslcompat/slmisc.h b/libslcompat/slmisc.h
index 20ba988..442b098 100644
--- a/libslcompat/slmisc.h
+++ b/libslcompat/slmisc.h
@@ -5,49 +5,49 @@
5#define _SLMISC_H_INCLUDED 5#define _SLMISC_H_INCLUDED
6 6
7#include <qpe/qpeapplication.h> 7#include <qpe/qpeapplication.h>
8#include <qfileinfo.h> 8#include <qfileinfo.h>
9#include <qpe/global.h> 9#include <qpe/global.h>
10#include <qmessagebox.h> 10#include <qmessagebox.h>
11 11
12 12
13#define _SLPOWER 13#define _SLPOWER
14 14
15class QPopupMenu; 15class QPopupMenu;
16class QListView; 16class QListView;
17#if !defined(_SLPOWER) 17#if !defined(_SLPOWER)
18class PowerStatus; 18class PowerStatus;
19#else 19#else
20class SlPowerStatus; 20class SlPowerStatus;
21#endif 21#endif
22class Config; 22class Config;
23 23
24typedef ulong SlResolutionScale; 24typedef ulong SlResolutionScale;
25 25
26class SlMisc { 26class SlMisc {
27public: 27public:
28 static bool isExecutable(const QString &c) { 28 static bool isExecutable(const QString &c) {
29 QFileInfo exec(QPEApplication::qpeDir() + "/bin/" + c); 29 QFileInfo exec(QPEApplication::qpeDir() + "bin/" + c);
30 return exec.isExecutable(); 30 return exec.isExecutable();
31 }; 31 };
32 static ulong availableMemory(); 32 static ulong availableMemory();
33 static bool invalidFileName(QString &fName); 33 static bool invalidFileName(QString &fName);
34 static QString getValidFileName(const QString &baseName); 34 static QString getValidFileName(const QString &baseName);
35 static QString getCanonicalPath(const QString &fName); 35 static QString getCanonicalPath(const QString &fName);
36 static void enableAutoPowerOff(bool isOn); 36 static void enableAutoPowerOff(bool isOn);
37 static void enableAutoPowerOff(bool isOn,bool DimAlso,bool ScreenSaverAlso=FALSE); 37 static void enableAutoPowerOff(bool isOn,bool DimAlso,bool ScreenSaverAlso=FALSE);
38 static void enableLockApplication(bool); 38 static void enableLockApplication(bool);
39 static bool isTheSmbShareFileHasWriteEntry(const QString &shareFName); 39 static bool isTheSmbShareFileHasWriteEntry(const QString &shareFName);
40 static bool isTheSmbShareFileNowCopy(const QString &shareFName); 40 static bool isTheSmbShareFileNowCopy(const QString &shareFName);
41 static bool checkTheSmbShareFileMode(const QString &shareFName, 41 static bool checkTheSmbShareFileMode(const QString &shareFName,
42 char modeMask, char checkMode, bool equality); 42 char modeMask, char checkMode, bool equality);
43 static bool isTheFileLockedBySmbd(const QString &fName); 43 static bool isTheFileLockedBySmbd(const QString &fName);
44 static bool isSambaForked(); 44 static bool isSambaForked();
45 static void startSamba(); 45 static void startSamba();
46 static void stopSamba(); 46 static void stopSamba();
47 enum ListType { Pid, CmdLine, Both }; 47 enum ListType { Pid, CmdLine, Both };
48 static QStringList procList (const QRegExp& re, uint max = 0, enum ListType type = Pid); 48 static QStringList procList (const QRegExp& re, uint max = 0, enum ListType type = Pid);
49 static void dumpMemInfo(bool isShowHeap); 49 static void dumpMemInfo(bool isShowHeap);
50 static bool canCreateTheFile(const QString&); 50 static bool canCreateTheFile(const QString&);
51 static QString getLanguage(); 51 static QString getLanguage();
52 static QSize getMaximizedWidgetInfo(); 52 static QSize getMaximizedWidgetInfo();
53 static QSize SlMisc::getScrollbarMetrics(); 53 static QSize SlMisc::getScrollbarMetrics();