author | alwin <alwin> | 2004-02-24 02:49:02 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-24 02:49:02 (UTC) |
commit | 7fd2bb984be7f227902374e1033d73780d6ffe3a (patch) (unidiff) | |
tree | 4f952e10f5d4aced550810baf0b51328b7d99a9a | |
parent | f196130d43642f2397ddadeed72e3ea062cda281 (diff) | |
download | opie-7fd2bb984be7f227902374e1033d73780d6ffe3a.zip opie-7fd2bb984be7f227902374e1033d73780d6ffe3a.tar.gz opie-7fd2bb984be7f227902374e1033d73780d6ffe3a.tar.bz2 |
changed keyword "autocheck" to "check" in checkStorage()
-rw-r--r-- | library/global.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/global.cpp b/library/global.cpp index 6182de8..4aca08b 100644 --- a/library/global.cpp +++ b/library/global.cpp | |||
@@ -31,67 +31,67 @@ | |||
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qlabel.h> | 32 | #include <qlabel.h> |
33 | #include <qtimer.h> | 33 | #include <qtimer.h> |
34 | #include <qmap.h> | 34 | #include <qmap.h> |
35 | #include <qdict.h> | 35 | #include <qdict.h> |
36 | #include <qdir.h> | 36 | #include <qdir.h> |
37 | #include <qmessagebox.h> | 37 | #include <qmessagebox.h> |
38 | #include <qregexp.h> | 38 | #include <qregexp.h> |
39 | 39 | ||
40 | #include <stdlib.h> | 40 | #include <stdlib.h> |
41 | #include <sys/stat.h> | 41 | #include <sys/stat.h> |
42 | #include <sys/wait.h> | 42 | #include <sys/wait.h> |
43 | #include <sys/types.h> | 43 | #include <sys/types.h> |
44 | #include <fcntl.h> | 44 | #include <fcntl.h> |
45 | #include <unistd.h> | 45 | #include <unistd.h> |
46 | #include <errno.h> | 46 | #include <errno.h> |
47 | 47 | ||
48 | #include <qwindowsystem_qws.h> // for qwsServer | 48 | #include <qwindowsystem_qws.h> // for qwsServer |
49 | #include <qdatetime.h> | 49 | #include <qdatetime.h> |
50 | 50 | ||
51 | #include <qfile.h> | 51 | #include <qfile.h> |
52 | 52 | ||
53 | namespace { | 53 | namespace { |
54 | // checks if the storage should be searched | 54 | // checks if the storage should be searched |
55 | bool checkStorage(const QString &path ){ // this is a small Config replacement cause config is too limited -zecke | 55 | bool checkStorage(const QString &path ){ // this is a small Config replacement cause config is too limited -zecke |
56 | QFile file(path ); | 56 | QFile file(path ); |
57 | if(!file.open(IO_ReadOnly ) ) | 57 | if(!file.open(IO_ReadOnly ) ) |
58 | return true; | 58 | return true; |
59 | 59 | ||
60 | QByteArray array = file.readAll(); | 60 | QByteArray array = file.readAll(); |
61 | QStringList list = QStringList::split('\n', QString( array ) ); | 61 | QStringList list = QStringList::split('\n', QString( array ) ); |
62 | for(QStringList::Iterator it = list.begin(); it != list.end(); ++it ){ | 62 | for(QStringList::Iterator it = list.begin(); it != list.end(); ++it ){ |
63 | if( (*it).startsWith("autocheck = 0" ) ){ | 63 | if( (*it).startsWith("check = 0" ) ){ |
64 | return false; | 64 | return false; |
65 | }else if( (*it).startsWith("autocheck = 1" ) ){ | 65 | }else if( (*it).startsWith("check = 1" ) ){ |
66 | return true; | 66 | return true; |
67 | } | 67 | } |
68 | } | 68 | } |
69 | return true; | 69 | return true; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | //#include "quickexec_p.h" | 73 | //#include "quickexec_p.h" |
74 | 74 | ||
75 | class Emitter : public QObject { | 75 | class Emitter : public QObject { |
76 | Q_OBJECT | 76 | Q_OBJECT |
77 | public: | 77 | public: |
78 | Emitter( QWidget* receiver, const QString& document ) | 78 | Emitter( QWidget* receiver, const QString& document ) |
79 | { | 79 | { |
80 | connect(this, SIGNAL(setDocument(const QString&)), | 80 | connect(this, SIGNAL(setDocument(const QString&)), |
81 | receiver, SLOT(setDocument(const QString&))); | 81 | receiver, SLOT(setDocument(const QString&))); |
82 | emit setDocument(document); | 82 | emit setDocument(document); |
83 | disconnect(this, SIGNAL(setDocument(const QString&)), | 83 | disconnect(this, SIGNAL(setDocument(const QString&)), |
84 | receiver, SLOT(setDocument(const QString&))); | 84 | receiver, SLOT(setDocument(const QString&))); |
85 | } | 85 | } |
86 | 86 | ||
87 | signals: | 87 | signals: |
88 | void setDocument(const QString&); | 88 | void setDocument(const QString&); |
89 | }; | 89 | }; |
90 | 90 | ||
91 | 91 | ||
92 | class StartingAppList : public QObject { | 92 | class StartingAppList : public QObject { |
93 | Q_OBJECT | 93 | Q_OBJECT |
94 | public: | 94 | public: |
95 | static void add( const QString& name ); | 95 | static void add( const QString& name ); |
96 | static bool isStarting( const QString name ); | 96 | static bool isStarting( const QString name ); |
97 | private slots: | 97 | private slots: |