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