author | zecke <zecke> | 2004-10-16 00:01:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 00:01:01 (UTC) |
commit | df14f647ff1a60ca82e0fa9bd91458be146153b8 (patch) (unidiff) | |
tree | 4859961352851a4392e1442f2080c15bff8ad7bc /libslcompat | |
parent | 419f9710c488f56a7a117eb1529970d3371e0094 (diff) | |
download | opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.zip opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.tar.gz opie-df14f647ff1a60ca82e0fa9bd91458be146153b8.tar.bz2 |
Replace QPEApplication::qpeDir() + "/ with
QPEApplication::qpeDir() + "
as it is guranteed that qpeDir() will have '/' as the last
charachter
-rw-r--r-- | libslcompat/slmisc.h | 2 |
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 | |||
@@ -1,77 +1,77 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. | 2 | * Copyright (C) 2002 SHARP CORPORATION All rights reserved. |
3 | */ | 3 | */ |
4 | #ifndef _SLMISC_H_INCLUDED | 4 | #ifndef _SLMISC_H_INCLUDED |
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 | ||
15 | class QPopupMenu; | 15 | class QPopupMenu; |
16 | class QListView; | 16 | class QListView; |
17 | #if !defined(_SLPOWER) | 17 | #if !defined(_SLPOWER) |
18 | class PowerStatus; | 18 | class PowerStatus; |
19 | #else | 19 | #else |
20 | class SlPowerStatus; | 20 | class SlPowerStatus; |
21 | #endif | 21 | #endif |
22 | class Config; | 22 | class Config; |
23 | 23 | ||
24 | typedef ulong SlResolutionScale; | 24 | typedef ulong SlResolutionScale; |
25 | 25 | ||
26 | class SlMisc { | 26 | class SlMisc { |
27 | public: | 27 | public: |
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(); |
54 | static int getDpi(); | 54 | static int getDpi(); |
55 | static SlResolutionScale getResolutionScale(); | 55 | static SlResolutionScale getResolutionScale(); |
56 | static int getMaximizedWidgetContentsWidth(); | 56 | static int getMaximizedWidgetContentsWidth(); |
57 | static bool isLandscape(); | 57 | static bool isLandscape(); |
58 | static void requestCloseFile(const QString&); | 58 | static void requestCloseFile(const QString&); |
59 | static void requestOpenFile(const QString&); | 59 | static void requestOpenFile(const QString&); |
60 | 60 | ||
61 | static void insertStandardFontMenu(QPopupMenu *pm); | 61 | static void insertStandardFontMenu(QPopupMenu *pm); |
62 | static void insertAllFontMenu(QPopupMenu *pm); | 62 | static void insertAllFontMenu(QPopupMenu *pm); |
63 | static int getLogicalSizeFromMenuId(int id); | 63 | static int getLogicalSizeFromMenuId(int id); |
64 | static void setFontSizeItemChecked(QPopupMenu *pm,int logicalSize); | 64 | static void setFontSizeItemChecked(QPopupMenu *pm,int logicalSize); |
65 | static int getFontPointSize(int logicalSize); | 65 | static int getFontPointSize(int logicalSize); |
66 | static void toggleFontSize(QPopupMenu *pm,int &logicalSize,bool isLarge=true); | 66 | static void toggleFontSize(QPopupMenu *pm,int &logicalSize,bool isLarge=true); |
67 | static void toggleAllFontSize(QPopupMenu *pm,int *fontSize,bool isLarge=true); | 67 | static void toggleAllFontSize(QPopupMenu *pm,int *fontSize,bool isLarge=true); |
68 | 68 | ||
69 | static void SlFontArrange (QWidget* widget); | 69 | static void SlFontArrange (QWidget* widget); |
70 | static void SlLayoutSpaceArrange (QObject* object); | 70 | static void SlLayoutSpaceArrange (QObject* object); |
71 | 71 | ||
72 | static bool checkBatteryError(const QString &module_name, bool force); | 72 | static bool checkBatteryError(const QString &module_name, bool force); |
73 | static bool checkBatteryErrorWithoutDialog(const QString &module_name, bool force); | 73 | static bool checkBatteryErrorWithoutDialog(const QString &module_name, bool force); |
74 | 74 | ||
75 | 75 | ||
76 | enum InputDeviceType { | 76 | enum InputDeviceType { |
77 | BuiltinKeyboard = 1, | 77 | BuiltinKeyboard = 1, |