Diffstat (limited to 'noncore/apps/opie-console/default.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/default.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/default.cpp b/noncore/apps/opie-console/default.cpp index ce5c870..5c1c05a 100644 --- a/noncore/apps/opie-console/default.cpp +++ b/noncore/apps/opie-console/default.cpp | |||
@@ -1,9 +1,10 @@ | |||
1 | #include "io_serial.h" | 1 | #include "io_serial.h" |
2 | #include "io_irda.h" | 2 | #include "io_irda.h" |
3 | #include "io_bt.h" | 3 | #include "io_bt.h" |
4 | #include "io_modem.h" | ||
4 | #include "filetransfer.h" | 5 | #include "filetransfer.h" |
5 | #include "filereceive.h" | 6 | #include "filereceive.h" |
6 | #include "serialconfigwidget.h" | 7 | #include "serialconfigwidget.h" |
7 | #include "irdaconfigwidget.h" | 8 | #include "irdaconfigwidget.h" |
8 | #include "btconfigwidget.h" | 9 | #include "btconfigwidget.h" |
9 | #include "modemconfigwidget.h" | 10 | #include "modemconfigwidget.h" |
@@ -42,12 +43,15 @@ extern "C" { | |||
42 | IOLayer* newBTLayer( const Profile& prof ) { | 43 | IOLayer* newBTLayer( const Profile& prof ) { |
43 | return new IOBt( prof ); | 44 | return new IOBt( prof ); |
44 | } | 45 | } |
45 | IOLayer* newIrDaLayer( const Profile& prof ) { | 46 | IOLayer* newIrDaLayer( const Profile& prof ) { |
46 | return new IOIrda( prof ); | 47 | return new IOIrda( prof ); |
47 | } | 48 | } |
49 | IOLayer* newModemLayer( const Profile& prof ) { | ||
50 | return new IOModem( prof ); | ||
51 | } | ||
48 | 52 | ||
49 | // Connection Widgets | 53 | // Connection Widgets |
50 | ProfileDialogWidget* newSerialWidget( const QString& str, QWidget* wid ) { | 54 | ProfileDialogWidget* newSerialWidget( const QString& str, QWidget* wid ) { |
51 | return new SerialConfigWidget( str, wid ); | 55 | return new SerialConfigWidget( str, wid ); |
52 | } | 56 | } |
53 | ProfileDialogWidget* newIrDaWidget( const QString& str, QWidget* wid ) { | 57 | ProfileDialogWidget* newIrDaWidget( const QString& str, QWidget* wid ) { |
@@ -82,12 +86,13 @@ Default::Default( MetaFactory* fact ) { | |||
82 | fact->addReceiveLayer( "SY", QObject::tr("Y-Modem"), newSYReceive ); | 86 | fact->addReceiveLayer( "SY", QObject::tr("Y-Modem"), newSYReceive ); |
83 | fact->addReceiveLayer( "SX", QObject::tr("X-Modem"), newSXReceive ); | 87 | fact->addReceiveLayer( "SX", QObject::tr("X-Modem"), newSXReceive ); |
84 | 88 | ||
85 | fact->addIOLayerFactory( "serial", QObject::tr("Serial"), newSerialLayer ); | 89 | fact->addIOLayerFactory( "serial", QObject::tr("Serial"), newSerialLayer ); |
86 | fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer ); | 90 | fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer ); |
87 | fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); | 91 | fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); |
92 | fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer ); | ||
88 | 93 | ||
89 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); | 94 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); |
90 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); | 95 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); |
91 | fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); | 96 | fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); |
92 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); | 97 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); |
93 | 98 | ||