Diffstat (limited to 'noncore/apps/opie-console/profileeditorplugins.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditorplugins.h | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/noncore/apps/opie-console/profileeditorplugins.h b/noncore/apps/opie-console/profileeditorplugins.h index 591163a..4ca780e 100644 --- a/noncore/apps/opie-console/profileeditorplugins.h +++ b/noncore/apps/opie-console/profileeditorplugins.h | |||
@@ -1,93 +1,93 @@ | |||
1 | #ifndef PROFILE_EDITOR_PLUGINS_H | 1 | #ifndef PROFILE_EDITOR_PLUGINS_H |
2 | #define PROFILE_EDITOR_PLUGINS_H | 2 | #define PROFILE_EDITOR_PLUGINS_H |
3 | 3 | ||
4 | #include "profile.h" | 4 | #include "profile.h" |
5 | 5 | ||
6 | #include "qobject.h" | 6 | #include <qobject.h> |
7 | 7 | ||
8 | class QWidget; | 8 | class QWidget; |
9 | 9 | ||
10 | class ProfileEditorPlugin : public QObject | 10 | class ProfileEditorPlugin : public QObject |
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | public: | 13 | public: |
14 | ProfileEditorPlugin(QWidget *parent, Profile *p); | 14 | ProfileEditorPlugin(QWidget *parent); |
15 | 15 | ||
16 | virtual ~ProfileEditorPlugin(); | 16 | virtual ~ProfileEditorPlugin(); |
17 | 17 | ||
18 | virtual void save() = 0; | 18 | virtual void save() = 0; |
19 | 19 | ||
20 | virtual QWidget *widget() = 0; | 20 | virtual QWidget *widget() = 0; |
21 | 21 | ||
22 | QWidget *connection_widget(); | 22 | QWidget *connection_widget(); |
23 | QWidget *terminal_widget(); | 23 | QWidget *terminal_widget(); |
24 | 24 | ||
25 | public slots: | 25 | public slots: |
26 | void slotConnFlow(int id); | 26 | void slotConnFlow(int id); |
27 | void slotConnParity(int id); | 27 | void slotConnParity(int id); |
28 | void slotConnSpeed(int id); | 28 | void slotConnSpeed(int id); |
29 | void slotTermTerm(int id); | 29 | void slotTermTerm(int id); |
30 | void slotTermColour(int id); | 30 | void slotTermColour(int id); |
31 | void slotTermFont(int id); | 31 | void slotTermFont(int id); |
32 | void slotTermEcho(bool on); | 32 | void slotTermEcho(bool on); |
33 | void slotTermWrap(bool on); | 33 | void slotTermWrap(bool on); |
34 | void slotTermInbound(bool on); | 34 | void slotTermInbound(bool on); |
35 | void slotTermOutbound(bool on); | 35 | void slotTermOutbound(bool on); |
36 | 36 | ||
37 | protected: | 37 | protected: |
38 | QWidget *m_parent, *m_widget; | 38 | QWidget *m_parent, *m_widget; |
39 | Profile *m_profile; | 39 | Profile *m_profile; |
40 | 40 | ||
41 | private: | 41 | private: |
42 | enum ParityIds | 42 | enum ParityIds |
43 | { | 43 | { |
44 | id_parity_odd, | 44 | id_parity_odd, |
45 | id_parity_even | 45 | id_parity_even |
46 | }; | 46 | }; |
47 | 47 | ||
48 | enum FlowIds | 48 | enum FlowIds |
49 | { | 49 | { |
50 | id_flow_hw, | 50 | id_flow_hw, |
51 | id_flow_sw | 51 | id_flow_sw |
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum SpeedIds | 54 | enum SpeedIds |
55 | { | 55 | { |
56 | id_baud_115200, | 56 | id_baud_115200, |
57 | id_baud_57600, | 57 | id_baud_57600, |
58 | id_baud_38400, | 58 | id_baud_38400, |
59 | id_baud_19200, | 59 | id_baud_19200, |
60 | id_baud_9600 | 60 | id_baud_9600 |
61 | }; | 61 | }; |
62 | 62 | ||
63 | enum TermIds | 63 | enum TermIds |
64 | { | 64 | { |
65 | id_term_vt100, | 65 | id_term_vt100, |
66 | id_term_vt220, | 66 | id_term_vt220, |
67 | id_term_ansi | 67 | id_term_ansi |
68 | }; | 68 | }; |
69 | 69 | ||
70 | enum ColourIds | 70 | enum ColourIds |
71 | { | 71 | { |
72 | id_term_black, | 72 | id_term_black, |
73 | id_term_white | 73 | id_term_white |
74 | }; | 74 | }; |
75 | 75 | ||
76 | enum FontIds | 76 | enum FontIds |
77 | { | 77 | { |
78 | id_size_small, | 78 | id_size_small, |
79 | id_size_medium, | 79 | id_size_medium, |
80 | id_size_large | 80 | id_size_large |
81 | }; | 81 | }; |
82 | }; | 82 | }; |
83 | 83 | ||
84 | //#ifdef __cplusplus | 84 | //#ifdef __cplusplus |
85 | //extern "C" { | 85 | //extern "C" { |
86 | //#endif | 86 | //#endif |
87 | 87 | ||
88 | ProfileEditorPlugin *factory_serial(QWidget *parent, Profile *p); | 88 | ProfileEditorPlugin *factory_serial(QWidget *parent, Profile *p); |
89 | ProfileEditorPlugin *factory_irda(QWidget *parent, Profile *p); | 89 | ProfileEditorPlugin *factory_irda(QWidget *parent, Profile *p); |
90 | ProfileEditorPlugin *factory_modem(QWidget *parent, Profile *p); | 90 | ProfileEditorPlugin *factory_modem(QWidget *parent, Profile *p); |
91 | 91 | ||
92 | //#ifdef __cplusplus | 92 | //#ifdef __cplusplus |
93 | //} | 93 | //} |