author | zecke <zecke> | 2002-09-10 12:09:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-10 12:09:49 (UTC) |
commit | 6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4 (patch) (unidiff) | |
tree | 6ebc93c6432f4ed9d00ef1448b6a047ef522a79a /library/applnk.h | |
parent | d10cddb3c9ce75bc90b14add14bc133737fe35aa (diff) | |
download | opie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.zip opie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.tar.gz opie-6b77a1cdb9536b1c135eb86d53a6b2c22c19b0a4.tar.bz2 |
Qtopia1-6 merge
still to test
bic changes to be resolved
more changes to be made?
-rw-r--r-- | library/applnk.h | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/library/applnk.h b/library/applnk.h index 9b5523e..71b62ef 100644 --- a/library/applnk.h +++ b/library/applnk.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
@@ -49,2 +49,3 @@ public: | |||
49 | const QPixmap& bigPixmap() const; | 49 | const QPixmap& bigPixmap() const; |
50 | QString icon() const { return mIconFile; } | ||
50 | virtual QString exec() const { return mExec; } | 51 | virtual QString exec() const { return mExec; } |
@@ -60,2 +61,3 @@ public: | |||
60 | 61 | ||
62 | bool fileKnown() const { return !mFile.isNull(); } | ||
61 | bool linkFileKnown() const { return !mLinkFile.isNull(); } | 63 | bool linkFileKnown() const { return !mLinkFile.isNull(); } |
@@ -80,6 +82,10 @@ public: | |||
80 | 82 | ||
81 | //#ifdef QTOPIA_INTERNAL_PRELOADACCESS | 83 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS |
82 | bool isPreloaded() const; | 84 | bool isPreloaded() const; |
83 | void setPreloaded(bool yesNo); | 85 | void setPreloaded(bool yesNo); |
84 | //#endif | 86 | #endif |
87 | |||
88 | #ifdef QTOPIA_INTERNAL_APPLNKASSIGN | ||
89 | AppLnk &operator=(const AppLnk &other); | ||
90 | #endif | ||
85 | 91 | ||
@@ -87,4 +93,9 @@ protected: | |||
87 | QString mName; | 93 | QString mName; |
94 | |||
95 | /* remove for Qtopia 3.0 -zecke */ | ||
88 | QPixmap mPixmap; | 96 | QPixmap mPixmap; |
97 | |||
98 | /* remove for Qtopia 3.0 -zecke */ | ||
89 | QPixmap mBigPixmap; | 99 | QPixmap mBigPixmap; |
100 | |||
90 | QString mExec; | 101 | QString mExec; |
@@ -106,2 +117,5 @@ protected: | |||
106 | void storeLink() const; | 117 | void storeLink() const; |
118 | |||
119 | private: | ||
120 | const QPixmap& pixmap(int pos, int size) const; | ||
107 | }; | 121 | }; |
@@ -117,2 +131,7 @@ public: | |||
117 | 131 | ||
132 | |||
133 | #ifdef QTOPIA_INTERNAL_APPLNKASSIGN | ||
134 | DocLnk &operator=(const DocLnk &other) { AppLnk::operator=(other); return *this; } | ||
135 | #endif | ||
136 | |||
118 | QString exec() const; | 137 | QString exec() const; |
@@ -143,2 +162,13 @@ public: | |||
143 | bool remove(AppLnk*); | 162 | bool remove(AppLnk*); |
163 | void clear() { | ||
164 | QListIterator<AppLnk> it( mApps ); | ||
165 | for ( ; it.current(); ) { | ||
166 | AppLnk* a = *it; | ||
167 | ++it; | ||
168 | a->mId = 0; | ||
169 | delete a; | ||
170 | } | ||
171 | mApps.clear(); | ||
172 | typs.clear(); | ||
173 | } | ||
144 | 174 | ||