author | kergoth <kergoth> | 2002-11-04 00:32:59 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-04 00:32:59 (UTC) |
commit | dc44b0babe9ffa7b29cc6269596703bab8edf6ab (patch) (unidiff) | |
tree | d1a3e10c58737597832b3d34e4fe3173f307c324 /noncore/todayplugins/fortune/fortunepluginwidget.h | |
parent | 829eeff0374389891aa88b12fcafffb55f480797 (diff) | |
download | opie-dc44b0babe9ffa7b29cc6269596703bab8edf6ab.zip opie-dc44b0babe9ffa7b29cc6269596703bab8edf6ab.tar.gz opie-dc44b0babe9ffa7b29cc6269596703bab8edf6ab.tar.bz2 |
fortune plugin, though it doesnt like me
Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.h b/noncore/todayplugins/fortune/fortunepluginwidget.h new file mode 100644 index 0000000..dd3cd6f --- a/dev/null +++ b/noncore/todayplugins/fortune/fortunepluginwidget.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * fortunepluginwidget.h | ||
3 | * | ||
4 | * copyright : (c) 2002 by Chris Larson | ||
5 | * email : kergoth@handhelds.org | ||
6 | * | ||
7 | */ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License as published by * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
16 | |||
17 | #ifndef FORTUNE_PLUGIN_WIDGET_H | ||
18 | #define FORTUNE_PLUGIN_WIDGET_H | ||
19 | |||
20 | #include <qstring.h> | ||
21 | #include <qwidget.h> | ||
22 | |||
23 | #include <opie/oticker.h> | ||
24 | #include <opie/oprocess.h> | ||
25 | |||
26 | |||
27 | class FortunePluginWidget : public QWidget | ||
28 | { | ||
29 | |||
30 | Q_OBJECT | ||
31 | |||
32 | public: | ||
33 | FortunePluginWidget( QWidget *parent, const char *name ); | ||
34 | ~FortunePluginWidget(); | ||
35 | |||
36 | protected slots: | ||
37 | void startFortune(); | ||
38 | |||
39 | private: | ||
40 | OTicker *fortune; | ||
41 | OProcess *fortuneProcess; | ||
42 | |||
43 | void getFortune(); | ||
44 | |||
45 | private slots: | ||
46 | void slotStdOut( OProcess*, char*, int ); | ||
47 | }; | ||
48 | |||
49 | #endif | ||