author | mickeyl <mickeyl> | 2005-01-02 15:20:41 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-02 15:20:41 (UTC) |
commit | 71232a4e45f78041c2ab138edf45903bbf2b34ce (patch) (unidiff) | |
tree | 6c51dc86163e656c7ac6a3cd6ea7e7e0f1ab89c0 /library | |
parent | 226a83c4b4334648de408249dba61bd1f7e6dba3 (diff) | |
download | opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.zip opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.tar.gz opie-71232a4e45f78041c2ab138edf45903bbf2b34ce.tar.bz2 |
Add the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers
-rw-r--r-- | library/qpeapplication.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 00d3d31..849d5b3 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -220,6 +220,19 @@ inline void QPEApplication::setCurrentRotation( int r ) | |||
220 | #endif | 220 | #endif |
221 | } | 221 | } |
222 | 222 | ||
223 | /* | ||
224 | * Qtopia 1.7 SDK compatibility macros | ||
225 | * FIXME: Support Opie Quicklaunch Interface | ||
226 | */ | ||
227 | #define QTOPIA_ADD_APPLICATION(NAME,IMPLEMENTATION) \ | ||
228 | int main( int argc, char** argv ) \ | ||
229 | { \ | ||
230 | QPEApplication app = QPEApplication( argc, argv );\ | ||
231 | IMPLEMENTATION* mw = new IMPLEMENTATION(); \ | ||
232 | app.showMainWidget( mw ); \ | ||
233 | app.exec(); \ | ||
234 | } | ||
235 | #define QTOPIA_MAIN // Bee-Bop-Alula | ||
223 | 236 | ||
224 | /* | 237 | /* |
225 | * -remove me | 238 | * -remove me |