-rw-r--r-- | libopie/odevicebutton.h | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/libopie/odevicebutton.h b/libopie/odevicebutton.h deleted file mode 100644 index 1621526..0000000 --- a/libopie/odevicebutton.h +++ b/dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
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 | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
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. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef DEVICE_BUTTON_H | ||
21 | #define DEVICE_BUTTON_H | ||
22 | |||
23 | #include <qpixmap.h> | ||
24 | #include <qstring.h> | ||
25 | |||
26 | class OQCopMessageData; | ||
27 | |||
28 | namespace Opie | ||
29 | { | ||
30 | |||
31 | class OQCopMessage { | ||
32 | public: | ||
33 | OQCopMessage ( ); | ||
34 | OQCopMessage ( const OQCopMessage © ); | ||
35 | OQCopMessage ( const QCString &m_channel, const QCString &message, const QByteArray &args = QByteArray ( )); | ||
36 | |||
37 | OQCopMessage &operator = ( const OQCopMessage &assign ); | ||
38 | |||
39 | void setChannel ( const QCString &channel ); | ||
40 | void setMessage ( const QCString &message ); | ||
41 | void setData ( const QByteArray &ba ); | ||
42 | |||
43 | QCString channel ( ) const; | ||
44 | QCString message ( ) const; | ||
45 | QByteArray data ( ) const; | ||
46 | |||
47 | bool isNull()const; | ||
48 | |||
49 | bool send ( ); | ||
50 | |||
51 | private: | ||
52 | void init ( const QCString &m_channel, const QCString &message, const QByteArray &args ); | ||
53 | |||
54 | OQCopMessageData *d; | ||
55 | class Private; | ||
56 | Private* m_data; | ||
57 | }; | ||
58 | |||
59 | |||
60 | /** | ||
61 | * This class represents a physical button on a Qtopia device. A device may | ||
62 | * have n "user programmable" buttons, which are number 1..n. The location | ||
63 | * and number of buttons will vary from device to device. userText() and pixmap() | ||
64 | * may be used to describe this button to the user in help documentation. | ||
65 | * | ||
66 | * @version 1.0 | ||
67 | * @author Trolltech | ||
68 | * @short A representation of buttons | ||
69 | */ | ||
70 | |||
71 | class ODeviceButton | ||
72 | { | ||
73 | public: | ||
74 | ODeviceButton(); | ||
75 | virtual ~ODeviceButton(); | ||
76 | |||
77 | ushort keycode ( ) const; | ||
78 | QString userText ( ) const; | ||
79 | QPixmap pixmap ( ) const; | ||
80 | OQCopMessage factoryPresetPressedAction ( ) const; | ||
81 | OQCopMessage pressedAction ( ) const; | ||
82 | OQCopMessage factoryPresetHeldAction ( ) const; | ||
83 | OQCopMessage heldAction ( ) const; | ||
84 | |||
85 | void setKeycode ( ushort keycode ); | ||
86 | void setUserText ( const QString& text ); | ||
87 | void setPixmap ( const QPixmap& picture ); | ||
88 | void setFactoryPresetPressedAction ( const OQCopMessage& qcopMessage ); | ||
89 | void setPressedAction ( const OQCopMessage& qcopMessage ); | ||
90 | void setFactoryPresetHeldAction ( const OQCopMessage& qcopMessage ); | ||
91 | void setHeldAction ( const OQCopMessage& qcopMessage ); | ||
92 | |||
93 | private: | ||
94 | ushort m_Keycode; | ||
95 | QString m_UserText; | ||
96 | QPixmap m_Pixmap; | ||
97 | OQCopMessage m_FactoryPresetPressedAction; | ||
98 | OQCopMessage m_PressedAction; | ||
99 | OQCopMessage m_FactoryPresetHeldAction; | ||
100 | OQCopMessage m_HeldAction; | ||
101 | class Private; | ||
102 | Private *d; | ||
103 | }; | ||
104 | |||
105 | } | ||
106 | |||
107 | #endif | ||