Diffstat (limited to 'core/applets/clipboardapplet/clipboard.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/clipboardapplet/clipboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/applets/clipboardapplet/clipboard.h b/core/applets/clipboardapplet/clipboard.h index 84743d9..ec87d39 100644 --- a/core/applets/clipboardapplet/clipboard.h +++ b/core/applets/clipboardapplet/clipboard.h | |||
@@ -3,51 +3,55 @@ | |||
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef __CLIPBOARD_APPLET_H__ | 20 | #ifndef __CLIPBOARD_APPLET_H__ |
21 | #define __CLIPBOARD_APPLET_H__ | 21 | #define __CLIPBOARD_APPLET_H__ |
22 | 22 | ||
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | #include <qpixmap.h> | 24 | #include <qpixmap.h> |
25 | #include <qstringlist.h> | 25 | #include <qstringlist.h> |
26 | 26 | ||
27 | class QTimer; | ||
28 | |||
27 | class ClipboardApplet : public QWidget | 29 | class ClipboardApplet : public QWidget |
28 | { | 30 | { |
29 | Q_OBJECT | 31 | Q_OBJECT |
30 | public: | 32 | public: |
31 | ClipboardApplet ( QWidget *parent = 0, const char *name=0 ); | 33 | ClipboardApplet ( QWidget *parent = 0, const char *name=0 ); |
32 | ~ClipboardApplet ( ); | 34 | ~ClipboardApplet ( ); |
33 | 35 | ||
34 | protected: | 36 | protected: |
35 | void mousePressEvent ( QMouseEvent *); | 37 | void mousePressEvent ( QMouseEvent *); |
36 | void paintEvent ( QPaintEvent* ); | 38 | void paintEvent ( QPaintEvent* ); |
37 | 39 | ||
38 | private slots: | 40 | private slots: |
39 | void action ( int ); | 41 | void action ( int ); |
40 | void newData ( ); | 42 | void newData ( ); |
43 | void shutdown ( ); | ||
41 | 44 | ||
42 | private: | 45 | private: |
43 | QPopupMenu * m_menu; | 46 | QPopupMenu * m_menu; |
44 | QStringList m_history; | 47 | QStringList m_history; |
45 | bool m_dirty; | 48 | bool m_dirty; |
46 | QString m_lasttext; | 49 | QString m_lasttext; |
50 | QTimer * m_timer; | ||
47 | 51 | ||
48 | QPixmap m_clipboardPixmap; | 52 | QPixmap m_clipboardPixmap; |
49 | }; | 53 | }; |
50 | 54 | ||
51 | 55 | ||
52 | #endif // __CLIPBOARD_APPLET_H__ | 56 | #endif // __CLIPBOARD_APPLET_H__ |
53 | 57 | ||