Diffstat (limited to 'noncore/net/opietooth/manager/pppdialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/pppdialog.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/opietooth/manager/pppdialog.h b/noncore/net/opietooth/manager/pppdialog.h index e0ffc7f..d55c15f 100644 --- a/noncore/net/opietooth/manager/pppdialog.h +++ b/noncore/net/opietooth/manager/pppdialog.h | |||
@@ -1,51 +1,61 @@ | |||
1 | /* $Id$ */ | ||
2 | /* PPP/rfcomm connection dialog */ | ||
3 | /*************************************************************************** | ||
4 | * * | ||
5 | * This program is free software; you can redistribute it and/or modify * | ||
6 | * it under the terms of the GNU General Public License as published by * | ||
7 | * the Free Software Foundation; either version 2 of the License, or * | ||
8 | * (at your option) any later version. * | ||
9 | * * | ||
10 | ***************************************************************************/ | ||
1 | #ifndef PPPDIALOG_H | 11 | #ifndef PPPDIALOG_H |
2 | #define PPPDIALOG_H | 12 | #define PPPDIALOG_H |
3 | 13 | ||
4 | 14 | ||
5 | #include <qdialog.h> | 15 | #include <qdialog.h> |
6 | #include <opie2/oprocess.h> | 16 | #include <opie2/oprocess.h> |
7 | 17 | ||
8 | class QVBoxLayout; | 18 | class QVBoxLayout; |
9 | class QPushButton; | 19 | class QPushButton; |
10 | class QMultiLineEdit; | 20 | class QMultiLineEdit; |
11 | class QLineEdit; | 21 | class QLineEdit; |
12 | class QComboBox; | 22 | class QComboBox; |
13 | #define NCONNECTS 10 //Maximal | 23 | #define NCONNECTS 10 //Maximal |
14 | 24 | ||
15 | namespace OpieTooth { | 25 | namespace OpieTooth { |
16 | typedef struct { | 26 | typedef struct { |
17 | Opie::Core::OProcess proc; //Connection process | 27 | Opie::Core::OProcess proc; //Connection process |
18 | QString btAddr; //MAC address | 28 | QString btAddr; //MAC address |
19 | int port; //port | 29 | int port; //port |
20 | } Connection; | 30 | } Connection; |
21 | 31 | ||
22 | class PPPDialog : public QDialog { | 32 | class PPPDialog : public QDialog { |
23 | 33 | ||
24 | Q_OBJECT | 34 | Q_OBJECT |
25 | 35 | ||
26 | public: | 36 | public: |
27 | PPPDialog(const QString& device = 0, int port = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); | 37 | PPPDialog(const QString& device = 0, int port = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); |
28 | ~PPPDialog(); | 38 | ~PPPDialog(); |
29 | 39 | ||
30 | private slots: | 40 | private slots: |
31 | void connectToDevice(); | 41 | void connectToDevice(); |
32 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); | 42 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); |
33 | void fillErr(Opie::Core::OProcess*, char*, int); | 43 | void fillErr(Opie::Core::OProcess*, char*, int); |
34 | void slotProcessExited(Opie::Core::OProcess* proc); | 44 | void slotProcessExited(Opie::Core::OProcess* proc); |
35 | void closeEvent(QCloseEvent* e); | 45 | void closeEvent(QCloseEvent* e); |
36 | public: | 46 | public: |
37 | //Array of connections indexed by rfcomm device number | 47 | //Array of connections indexed by rfcomm device number |
38 | static Connection conns[NCONNECTS]; | 48 | static Connection conns[NCONNECTS]; |
39 | protected: | 49 | protected: |
40 | QVBoxLayout* layout; | 50 | QVBoxLayout* layout; |
41 | QLineEdit* cmdLine; | 51 | QComboBox* cmdLine; |
42 | QPushButton* connectButton; | 52 | QPushButton* connectButton; |
43 | QMultiLineEdit* outPut; | 53 | QMultiLineEdit* outPut; |
44 | QComboBox* serPort; | 54 | QComboBox* serPort; |
45 | 55 | ||
46 | private: | 56 | private: |
47 | QString m_device; | 57 | QString m_device; |
48 | int m_port; | 58 | int m_port; |
49 | }; | 59 | }; |
50 | } | 60 | } |
51 | #endif | 61 | #endif |