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 | ||