Diffstat (limited to 'noncore/apps/opie-console/default.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/default.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/default.cpp b/noncore/apps/opie-console/default.cpp index b092273..4853785 100644 --- a/noncore/apps/opie-console/default.cpp +++ b/noncore/apps/opie-console/default.cpp | |||
@@ -1,7 +1,10 @@ | |||
1 | #include "io_serial.h" | 1 | #include "io_serial.h" |
2 | #include "io_irda.h" | ||
3 | #include "io_bt.h" | ||
2 | #include "filetransfer.h" | 4 | #include "filetransfer.h" |
3 | #include "serialconfigwidget.h" | 5 | #include "serialconfigwidget.h" |
4 | #include "irdaconfigwidget.h" | 6 | #include "irdaconfigwidget.h" |
5 | #include "btconfigwidget.h" | 7 | #include "btconfigwidget.h" |
8 | #include "modemconfigwidget.h" | ||
6 | #include "terminalwidget.h" | 9 | #include "terminalwidget.h" |
7 | #include "vt102emulation.h" | 10 | #include "vt102emulation.h" |
@@ -25,9 +28,9 @@ extern "C" { | |||
25 | return new IOSerial( prof ); | 28 | return new IOSerial( prof ); |
26 | } | 29 | } |
27 | IOLayer* newBTLayer( const Profile& ) { | 30 | IOLayer* newBTLayer( const Profile& prof ) { |
28 | return 0l; | 31 | return new IOBt( prof ); |
29 | } | 32 | } |
30 | IOLayer* newIrDaLayer( const Profile& ) { | 33 | IOLayer* newIrDaLayer( const Profile& prof ) { |
31 | return 0l; | 34 | return new IOIrda( prof ); |
32 | } | 35 | } |
33 | 36 | ||
@@ -39,8 +42,12 @@ extern "C" { | |||
39 | return new IrdaConfigWidget( str, wid ); | 42 | return new IrdaConfigWidget( str, wid ); |
40 | } | 43 | } |
44 | ProfileDialogWidget* newModemWidget( const QString& str, QWidget* wid ) { | ||
45 | return new ModemConfigWidget(str, wid ); | ||
46 | } | ||
41 | ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) { | 47 | ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) { |
42 | return new BTConfigWidget(str, wid ); | 48 | return new BTConfigWidget(str, wid ); |
43 | } | 49 | } |
44 | 50 | ||
51 | |||
45 | // Terminal Widget(s) | 52 | // Terminal Widget(s) |
46 | ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) { | 53 | ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) { |
@@ -66,4 +73,5 @@ Default::Default( MetaFactory* fact ) { | |||
66 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); | 73 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); |
67 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); | 74 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); |
75 | fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); | ||
68 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); | 76 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); |
69 | 77 | ||