-rw-r--r-- | noncore/net/opietooth/manager/dundialog.cpp | 11 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/dundialog.h | 10 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/dunpopup.cpp | 10 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/dunpopup.h | 10 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/pandialog.cpp | 11 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/pandialog.h | 10 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/panpopup.cpp | 10 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/panpopup.h | 10 |
8 files changed, 80 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/dundialog.cpp b/noncore/net/opietooth/manager/dundialog.cpp index 033534c..7aac271 100644 --- a/noncore/net/opietooth/manager/dundialog.cpp +++ b/noncore/net/opietooth/manager/dundialog.cpp | |||
@@ -1,25 +1,34 @@ | |||
1 | 1 | /* $Id$ */ | |
2 | /* DUN 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 | ***************************************************************************/ | ||
2 | #include "dundialog.h" | 11 | #include "dundialog.h" |
3 | #include <qpushbutton.h> | 12 | #include <qpushbutton.h> |
4 | #include <qmultilineedit.h> | 13 | #include <qmultilineedit.h> |
5 | #include <qlineedit.h> | 14 | #include <qlineedit.h> |
6 | #include <qlayout.h> | 15 | #include <qlayout.h> |
7 | #include <qcheckbox.h> | 16 | #include <qcheckbox.h> |
8 | #include <qlabel.h> | 17 | #include <qlabel.h> |
9 | #include <qstring.h> | 18 | #include <qstring.h> |
10 | #include <opie2/oprocess.h> | 19 | #include <opie2/oprocess.h> |
11 | #include <opie2/odebug.h> | 20 | #include <opie2/odebug.h> |
12 | using namespace Opie::Core; | 21 | using namespace Opie::Core; |
13 | 22 | ||
14 | using namespace OpieTooth; | 23 | using namespace OpieTooth; |
15 | 24 | ||
16 | using namespace Opie::Core; | 25 | using namespace Opie::Core; |
17 | 26 | ||
18 | DunDialog::DunDialog( const QString& device, int port, QWidget* parent, | 27 | DunDialog::DunDialog( const QString& device, int port, QWidget* parent, |
19 | const char* name, bool modal, WFlags fl ) | 28 | const char* name, bool modal, WFlags fl ) |
20 | : QDialog( parent, name, modal, fl ) { | 29 | : QDialog( parent, name, modal, fl ) { |
21 | if ( !name ) | 30 | if ( !name ) |
22 | setName( "DUNDialog" ); | 31 | setName( "DUNDialog" ); |
23 | setCaption( tr( "DUN connection " ) ) ; | 32 | setCaption( tr( "DUN connection " ) ) ; |
24 | 33 | ||
25 | m_device = device; | 34 | m_device = device; |
diff --git a/noncore/net/opietooth/manager/dundialog.h b/noncore/net/opietooth/manager/dundialog.h index 746c8a3..9e219cd 100644 --- a/noncore/net/opietooth/manager/dundialog.h +++ b/noncore/net/opietooth/manager/dundialog.h | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* DUN 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 DUNDIALOG_H | 11 | #ifndef DUNDIALOG_H |
2 | #define DUNDIALOG_H | 12 | #define DUNDIALOG_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 QCheckBox; | 22 | class QCheckBox; |
13 | 23 | ||
14 | namespace OpieTooth { | 24 | namespace OpieTooth { |
15 | class DunDialog : public QDialog { | 25 | class DunDialog : public QDialog { |
16 | 26 | ||
17 | Q_OBJECT | 27 | Q_OBJECT |
18 | 28 | ||
19 | public: | 29 | public: |
20 | DunDialog(const QString& device = 0, int port = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); | 30 | DunDialog(const QString& device = 0, int port = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); |
21 | ~DunDialog(); | 31 | ~DunDialog(); |
22 | 32 | ||
23 | private slots: | 33 | private slots: |
24 | void connectToDevice(); | 34 | void connectToDevice(); |
diff --git a/noncore/net/opietooth/manager/dunpopup.cpp b/noncore/net/opietooth/manager/dunpopup.cpp index 3017d63..c304b2d 100644 --- a/noncore/net/opietooth/manager/dunpopup.cpp +++ b/noncore/net/opietooth/manager/dunpopup.cpp | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* DUN context menu */ | ||
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 | #include <qpe/qcopenvelope_qws.h> | 11 | #include <qpe/qcopenvelope_qws.h> |
2 | #include <qmessagebox.h> | 12 | #include <qmessagebox.h> |
3 | #include <opie2/odebug.h> | 13 | #include <opie2/odebug.h> |
4 | #include <opie2/oprocess.h> | 14 | #include <opie2/oprocess.h> |
5 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
6 | using namespace Opie::Core; | 16 | using namespace Opie::Core; |
7 | 17 | ||
8 | #include "dunpopup.h" | 18 | #include "dunpopup.h" |
9 | #include "dundialog.h" | 19 | #include "dundialog.h" |
10 | 20 | ||
11 | using namespace OpieTooth; | 21 | using namespace OpieTooth; |
12 | 22 | ||
13 | /* | 23 | /* |
14 | * c'tor init the QAction | 24 | * c'tor init the QAction |
15 | */ | 25 | */ |
16 | DunPopup::DunPopup( const Services& service, | 26 | DunPopup::DunPopup( const Services& service, |
17 | BTDeviceItem* item ) : QPopupMenu(), m_service(service) { | 27 | BTDeviceItem* item ) : QPopupMenu(), m_service(service) { |
18 | 28 | ||
19 | owarn << "DunPopup c'tor" << oendl; | 29 | owarn << "DunPopup c'tor" << oendl; |
20 | 30 | ||
21 | m_item = item; | 31 | m_item = item; |
22 | QAction *a, *b, *c; | 32 | QAction *a, *b, *c; |
23 | 33 | ||
24 | a = new QAction(); // so it's get deleted | 34 | a = new QAction(); // so it's get deleted |
diff --git a/noncore/net/opietooth/manager/dunpopup.h b/noncore/net/opietooth/manager/dunpopup.h index 6058b20..9fecf06 100644 --- a/noncore/net/opietooth/manager/dunpopup.h +++ b/noncore/net/opietooth/manager/dunpopup.h | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* DUN context menu */ | ||
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 DUNPOPUP_H | 11 | #ifndef DUNPOPUP_H |
2 | #define DUNPOPUP_H | 12 | #define DUNPOPUP_H |
3 | 13 | ||
4 | #include <qpopupmenu.h> | 14 | #include <qpopupmenu.h> |
5 | #include <qaction.h> | 15 | #include <qaction.h> |
6 | #include <services.h> | 16 | #include <services.h> |
7 | 17 | ||
8 | #include "btdeviceitem.h" | 18 | #include "btdeviceitem.h" |
9 | 19 | ||
10 | 20 | ||
11 | namespace OpieTooth { | 21 | namespace OpieTooth { |
12 | 22 | ||
13 | class DunPopup : public QPopupMenu { | 23 | class DunPopup : public QPopupMenu { |
14 | 24 | ||
15 | Q_OBJECT | 25 | Q_OBJECT |
16 | 26 | ||
17 | public: | 27 | public: |
18 | DunPopup(const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); | 28 | DunPopup(const OpieTooth::Services&, OpieTooth::BTDeviceItem* ); |
19 | ~DunPopup(); | 29 | ~DunPopup(); |
20 | 30 | ||
21 | private: | 31 | private: |
22 | QAction* m_push; | 32 | QAction* m_push; |
23 | OpieTooth::BTDeviceItem *m_item; //device item | 33 | OpieTooth::BTDeviceItem *m_item; //device item |
24 | Services m_service; //device service (port) | 34 | Services m_service; //device service (port) |
diff --git a/noncore/net/opietooth/manager/pandialog.cpp b/noncore/net/opietooth/manager/pandialog.cpp index ca6f491..10ca7a8 100644 --- a/noncore/net/opietooth/manager/pandialog.cpp +++ b/noncore/net/opietooth/manager/pandialog.cpp | |||
@@ -1,25 +1,34 @@ | |||
1 | 1 | /* $Id$ */ | |
2 | /* PAN 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 | ***************************************************************************/ | ||
2 | #include "pandialog.h" | 11 | #include "pandialog.h" |
3 | #include <qpushbutton.h> | 12 | #include <qpushbutton.h> |
4 | #include <qlayout.h> | 13 | #include <qlayout.h> |
5 | #include <qcheckbox.h> | 14 | #include <qcheckbox.h> |
6 | #include <qlabel.h> | 15 | #include <qlabel.h> |
7 | #include <qstring.h> | 16 | #include <qstring.h> |
8 | #include <qmultilineedit.h> | 17 | #include <qmultilineedit.h> |
9 | #include <opie2/oprocess.h> | 18 | #include <opie2/oprocess.h> |
10 | #include <opie2/odebug.h> | 19 | #include <opie2/odebug.h> |
11 | using namespace Opie::Core; | 20 | using namespace Opie::Core; |
12 | 21 | ||
13 | using namespace OpieTooth; | 22 | using namespace OpieTooth; |
14 | 23 | ||
15 | using namespace Opie::Core; | 24 | using namespace Opie::Core; |
16 | 25 | ||
17 | PanDialog::PanDialog( const QString& device, QWidget* parent, | 26 | PanDialog::PanDialog( const QString& device, QWidget* parent, |
18 | const char* name, bool modal, WFlags fl ) | 27 | const char* name, bool modal, WFlags fl ) |
19 | : QDialog( parent, name, modal, fl ) { | 28 | : QDialog( parent, name, modal, fl ) { |
20 | m_panConnect = NULL; | 29 | m_panConnect = NULL; |
21 | 30 | ||
22 | if ( !name ) | 31 | if ( !name ) |
23 | setName( "PANDialog" ); | 32 | setName( "PANDialog" ); |
24 | setCaption( tr( "PAN connection " ) ) ; | 33 | setCaption( tr( "PAN connection " ) ) ; |
25 | 34 | ||
diff --git a/noncore/net/opietooth/manager/pandialog.h b/noncore/net/opietooth/manager/pandialog.h index 02363d2..b11a026 100644 --- a/noncore/net/opietooth/manager/pandialog.h +++ b/noncore/net/opietooth/manager/pandialog.h | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* PAN 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 PANDIALOG_H | 11 | #ifndef PANDIALOG_H |
2 | #define DUNDIALOG_H | 12 | #define DUNDIALOG_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 QMultiLineEdit; | 19 | class QMultiLineEdit; |
10 | class QPushButton; | 20 | class QPushButton; |
11 | class QCheckBox; | 21 | class QCheckBox; |
12 | 22 | ||
13 | namespace OpieTooth { | 23 | namespace OpieTooth { |
14 | class PanDialog : public QDialog { | 24 | class PanDialog : public QDialog { |
15 | 25 | ||
16 | Q_OBJECT | 26 | Q_OBJECT |
17 | 27 | ||
18 | public: | 28 | public: |
19 | PanDialog(const QString& device = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); | 29 | PanDialog(const QString& device = 0, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0); |
20 | ~PanDialog(); | 30 | ~PanDialog(); |
21 | 31 | ||
22 | private slots: | 32 | private slots: |
23 | void connectToDevice(); | 33 | void connectToDevice(); |
24 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); | 34 | void fillOutPut( Opie::Core::OProcess* pppDial, char* cha, int len ); |
diff --git a/noncore/net/opietooth/manager/panpopup.cpp b/noncore/net/opietooth/manager/panpopup.cpp index 2fd9eaf..d16bf0c 100644 --- a/noncore/net/opietooth/manager/panpopup.cpp +++ b/noncore/net/opietooth/manager/panpopup.cpp | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* PAN context menu */ | ||
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 | #include <qpe/qcopenvelope_qws.h> | 11 | #include <qpe/qcopenvelope_qws.h> |
2 | #include <qmessagebox.h> | 12 | #include <qmessagebox.h> |
3 | #include <opie2/odebug.h> | 13 | #include <opie2/odebug.h> |
4 | #include <opie2/oprocess.h> | 14 | #include <opie2/oprocess.h> |
5 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
6 | #include "pandialog.h" | 16 | #include "pandialog.h" |
7 | using namespace Opie::Core; | 17 | using namespace Opie::Core; |
8 | 18 | ||
9 | #include <qtimer.h> | 19 | #include <qtimer.h> |
10 | 20 | ||
11 | #include "panpopup.h" | 21 | #include "panpopup.h" |
12 | 22 | ||
13 | using namespace OpieTooth; | 23 | using namespace OpieTooth; |
14 | 24 | ||
15 | /* | 25 | /* |
16 | * c'tor init the QAction | 26 | * c'tor init the QAction |
17 | */ | 27 | */ |
18 | PanPopup::PanPopup( OpieTooth::BTDeviceItem* item ) : QPopupMenu() { | 28 | PanPopup::PanPopup( OpieTooth::BTDeviceItem* item ) : QPopupMenu() { |
19 | 29 | ||
20 | owarn << "PanPopup c'tor" << oendl; | 30 | owarn << "PanPopup c'tor" << oendl; |
21 | 31 | ||
22 | m_item = item; | 32 | m_item = item; |
23 | QAction *a, *b, *c; | 33 | QAction *a, *b, *c; |
24 | 34 | ||
diff --git a/noncore/net/opietooth/manager/panpopup.h b/noncore/net/opietooth/manager/panpopup.h index 3e535e3..7d41dfa 100644 --- a/noncore/net/opietooth/manager/panpopup.h +++ b/noncore/net/opietooth/manager/panpopup.h | |||
@@ -1,24 +1,34 @@ | |||
1 | /* $Id$ */ | ||
2 | /* PAN context menu */ | ||
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 PANPOPUP_H | 11 | #ifndef PANPOPUP_H |
2 | #define PANPOPUP_H | 12 | #define PANPOPUP_H |
3 | 13 | ||
4 | #include <qpopupmenu.h> | 14 | #include <qpopupmenu.h> |
5 | #include <qaction.h> | 15 | #include <qaction.h> |
6 | 16 | ||
7 | #include <startpanconnection.h> | 17 | #include <startpanconnection.h> |
8 | 18 | ||
9 | #include "btdeviceitem.h" | 19 | #include "btdeviceitem.h" |
10 | 20 | ||
11 | 21 | ||
12 | namespace OpieTooth { | 22 | namespace OpieTooth { |
13 | 23 | ||
14 | class PanPopup : public QPopupMenu { | 24 | class PanPopup : public QPopupMenu { |
15 | 25 | ||
16 | Q_OBJECT | 26 | Q_OBJECT |
17 | 27 | ||
18 | public: | 28 | public: |
19 | PanPopup( OpieTooth::BTDeviceItem* ); | 29 | PanPopup( OpieTooth::BTDeviceItem* ); |
20 | ~PanPopup(); | 30 | ~PanPopup(); |
21 | 31 | ||
22 | private: | 32 | private: |
23 | QAction* m_push; | 33 | QAction* m_push; |
24 | OpieTooth::StartPanConnection* m_panconnection; | 34 | OpieTooth::StartPanConnection* m_panconnection; |