author | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
commit | 59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 (patch) (unidiff) | |
tree | f148d4858859dac3b413e675c760acfdab24b8e6 /noncore/apps/opie-reader/main.cpp | |
parent | c08be8ae22dcc1bfb83cfdec807149b161d770f5 (diff) | |
download | opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.zip opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.gz opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.bz2 |
initial
Diffstat (limited to 'noncore/apps/opie-reader/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/main.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/main.cpp b/noncore/apps/opie-reader/main.cpp new file mode 100644 index 0000000..e37f12c --- a/dev/null +++ b/noncore/apps/opie-reader/main.cpp | |||
@@ -0,0 +1,38 @@ | |||
1 | #include <qpe/qpeapplication.h> | ||
2 | //#include <qmainwindow.h> | ||
3 | #include "QTReaderApp.h" | ||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | /* | ||
10 | class myapp : public QPEApplication | ||
11 | { | ||
12 | public slots: | ||
13 | void receive( const QCString& msg, const QByteArray& data ) | ||
14 | { | ||
15 | |||
16 | QDataStream stream( data, IO_ReadOnly ); | ||
17 | if ( msg == "someMessage(int,int,int)" ) { | ||
18 | int a,b,c; | ||
19 | stream >> a >> b >> c; | ||
20 | ... | ||
21 | } else if ( msg == "otherMessage(QString)" ) { | ||
22 | ... | ||
23 | } | ||
24 | |||
25 | } | ||
26 | } | ||
27 | */ | ||
28 | |||
29 | int main( int argc, char ** argv ) | ||
30 | { | ||
31 | QPEApplication a( argc, argv ); | ||
32 | |||
33 | QTReaderApp m; | ||
34 | a.showMainDocumentWidget( &m ); | ||
35 | |||
36 | return a.exec(); | ||
37 | } | ||
38 | |||