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 | |||
@@ -11,5 +11,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 | ||
@@ -20,3 +25,3 @@ namespace OpieTooth { | |||
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(); |
@@ -26,2 +31,8 @@ namespace OpieTooth { | |||
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: |
@@ -34,2 +45,3 @@ namespace OpieTooth { | |||
34 | QString m_device; | 45 | QString m_device; |
46 | int m_port; | ||
35 | }; | 47 | }; |