author | korovkin <korovkin> | 2006-03-19 14:57:44 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-03-19 14:57:44 (UTC) |
commit | a71b86fe8ca57753e8209786691b9c7a33d1c1c9 (patch) (unidiff) | |
tree | 7463f566a86c5bdff0e4e1380300edc327ebcada /noncore/net/opietooth/manager/pppdialog.h | |
parent | bf4d4b814d514762748fe602aeef6c43da102c3a (diff) | |
download | opie-a71b86fe8ca57753e8209786691b9c7a33d1c1c9.zip opie-a71b86fe8ca57753e8209786691b9c7a33d1c1c9.tar.gz opie-a71b86fe8ca57753e8209786691b9c7a33d1c1c9.tar.bz2 |
PPP dialog calls rfcomm connect 0 <device MAC address> <port> if ppp script name
is empty.
Diffstat (limited to 'noncore/net/opietooth/manager/pppdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/pppdialog.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/pppdialog.h b/noncore/net/opietooth/manager/pppdialog.h index 05894e2..565fe1e 100644 --- a/noncore/net/opietooth/manager/pppdialog.h +++ b/noncore/net/opietooth/manager/pppdialog.h | |||
@@ -9,21 +9,32 @@ class QVBoxLayout; | |||
9 | class QPushButton; | 9 | class QPushButton; |
10 | class QMultiLineEdit; | 10 | class QMultiLineEdit; |
11 | class QLineEdit; | 11 | class QLineEdit; |
12 | 12 | #define NCONNECTS 10 //Maximal | |
13 | 13 | ||
14 | namespace OpieTooth { | 14 | namespace OpieTooth { |
15 | typedef struct { | ||
16 | Opie::Core::OProcess proc; //Connection process | ||
17 | QString btAddr; //MAC address | ||
18 | int port; //port | ||
19 | } Connection; | ||
15 | 20 | ||
16 | class PPPDialog : public QDialog { | 21 | class PPPDialog : public QDialog { |
17 | 22 | ||
18 | Q_OBJECT | 23 | Q_OBJECT |
19 | 24 | ||
20 | public: | 25 | public: |
21 | PPPDialog( QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0, const QString& device = 0); | 26 | PPPDialog(const QString& device = 0, int port = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); |
22 | ~PPPDialog(); | 27 | ~PPPDialog(); |
23 | 28 | ||
24 | private slots: | 29 | private slots: |
25 | void connectToDevice(); | 30 | void connectToDevice(); |
26 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); | 31 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); |
32 | void fillErr(Opie::Core::OProcess*, char*, int); | ||
33 | void slotProcessExited(Opie::Core::OProcess* proc); | ||
34 | void closeEvent(QCloseEvent* e); | ||
35 | public: | ||
36 | //Array of connections indexed by rfcomm device number | ||
37 | static Connection conns[NCONNECTS]; | ||
27 | protected: | 38 | protected: |
28 | QVBoxLayout* layout; | 39 | QVBoxLayout* layout; |
29 | QLineEdit* cmdLine; | 40 | QLineEdit* cmdLine; |
@@ -32,6 +43,7 @@ namespace OpieTooth { | |||
32 | 43 | ||
33 | private: | 44 | private: |
34 | QString m_device; | 45 | QString m_device; |
46 | int m_port; | ||
35 | }; | 47 | }; |
36 | } | 48 | } |
37 | #endif | 49 | #endif |