summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/default.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/default.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/default.cpp16
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,2 +1,4 @@
#include "io_serial.h"
+#include "io_irda.h"
+#include "io_bt.h"
#include "filetransfer.h"
@@ -5,2 +7,3 @@
#include "btconfigwidget.h"
+#include "modemconfigwidget.h"
#include "terminalwidget.h"
@@ -26,7 +29,7 @@ extern "C" {
}
- IOLayer* newBTLayer( const Profile& ) {
- return 0l;
+ IOLayer* newBTLayer( const Profile& prof ) {
+ return new IOBt( prof );
}
- IOLayer* newIrDaLayer( const Profile& ) {
- return 0l;
+ IOLayer* newIrDaLayer( const Profile& prof ) {
+ return new IOIrda( prof );
}
@@ -40,2 +43,5 @@ extern "C" {
}
+ ProfileDialogWidget* newModemWidget( const QString& str, QWidget* wid ) {
+ return new ModemConfigWidget(str, wid );
+ }
ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) {
@@ -44,2 +50,3 @@ extern "C" {
+
// Terminal Widget(s)
@@ -67,2 +74,3 @@ Default::Default( MetaFactory* fact ) {
fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget );
+ fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget );
fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget );