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 5c1c05a..64c9542 100644 --- a/noncore/apps/opie-console/default.cpp +++ b/noncore/apps/opie-console/default.cpp | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "btconfigwidget.h" | 9 | #include "btconfigwidget.h" |
10 | #include "modemconfigwidget.h" | 10 | #include "modemconfigwidget.h" |
11 | #include "terminalwidget.h" | 11 | #include "terminalwidget.h" |
12 | #include "vt102emulation.h" | 12 | #include "MyPty.h" |
13 | 13 | ||
14 | #include "default.h" | 14 | #include "default.h" |
15 | 15 | ||
@@ -49,6 +49,9 @@ extern "C" { | |||
49 | IOLayer* newModemLayer( const Profile& prof ) { | 49 | IOLayer* newModemLayer( const Profile& prof ) { |
50 | return new IOModem( prof ); | 50 | return new IOModem( prof ); |
51 | } | 51 | } |
52 | IOLayer* newConsole( const Profile& prof ) { | ||
53 | return new MyPty(prof ); | ||
54 | } | ||
52 | 55 | ||
53 | // Connection Widgets | 56 | // Connection Widgets |
54 | ProfileDialogWidget* newSerialWidget( const QString& str, QWidget* wid ) { | 57 | ProfileDialogWidget* newSerialWidget( const QString& str, QWidget* wid ) { |
@@ -63,13 +66,16 @@ extern "C" { | |||
63 | ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) { | 66 | ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) { |
64 | return new BTConfigWidget(str, wid ); | 67 | return new BTConfigWidget(str, wid ); |
65 | } | 68 | } |
69 | ProfileDialogWidget* newConsoleWid( const QString& str, QWidget* wid ) { | ||
70 | return 0l; | ||
71 | } | ||
66 | 72 | ||
67 | 73 | ||
68 | // Terminal Widget(s) | 74 | // Terminal Widget(s) |
69 | /* ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) { | 75 | ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) { |
70 | return new TerminalWidget(na, wid,0 ); | 76 | return new TerminalWidget(na, wid,0 ); |
71 | } | 77 | } |
72 | */ | 78 | |
73 | /* // VT Emulations | 79 | /* // VT Emulations |
74 | EmulationLayer* newVT102( WidgetLayer* wid ) { | 80 | EmulationLayer* newVT102( WidgetLayer* wid ) { |
75 | return new Vt102Emulation( wid ); | 81 | return new Vt102Emulation( wid ); |
@@ -90,13 +96,15 @@ Default::Default( MetaFactory* fact ) { | |||
90 | fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer ); | 96 | fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer ); |
91 | fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); | 97 | fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); |
92 | fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer ); | 98 | fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer ); |
99 | fact->addIOLayerFactory( "console", QObject::tr("Console"), newConsole ); | ||
93 | 100 | ||
94 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); | 101 | fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); |
95 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); | 102 | fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); |
96 | fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); | 103 | fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); |
97 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); | 104 | fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); |
105 | fact->addConnectionWidgetFactory( "console", QObject::tr("Console"), newConsoleWid ); | ||
98 | 106 | ||
99 | // fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget ); | 107 | fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget ); |
100 | 108 | ||
101 | // fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 ); | 109 | // fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 ); |
102 | } | 110 | } |