summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/default.cpp
Unidiff
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, 16 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/default.cpp b/noncore/apps/opie-console/default.cpp
index 4853785..dd9681d 100644
--- a/noncore/apps/opie-console/default.cpp
+++ b/noncore/apps/opie-console/default.cpp
@@ -1,37 +1,49 @@
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 "filetransfer.h" 4#include "filetransfer.h"
5#include "filereceive.h"
5#include "serialconfigwidget.h" 6#include "serialconfigwidget.h"
6#include "irdaconfigwidget.h" 7#include "irdaconfigwidget.h"
7#include "btconfigwidget.h" 8#include "btconfigwidget.h"
8#include "modemconfigwidget.h" 9#include "modemconfigwidget.h"
9#include "terminalwidget.h" 10#include "terminalwidget.h"
10#include "vt102emulation.h" 11#include "vt102emulation.h"
11 12
12#include "default.h" 13#include "default.h"
13 14
14extern "C" { 15extern "C" {
15 // FILE Transfer Stuff 16 // FILE Transfer Stuff
16 FileTransferLayer* newSZTransfer(IOLayer* lay) { 17 FileTransferLayer* newSZTransfer(IOLayer* lay) {
17 return new FileTransfer( FileTransfer::SZ, lay ); 18 return new FileTransfer( FileTransfer::SZ, lay );
18 } 19 }
19 FileTransferLayer* newSYTransfer(IOLayer* lay) { 20 FileTransferLayer* newSYTransfer(IOLayer* lay) {
20 return new FileTransfer( FileTransfer::SY, lay ); 21 return new FileTransfer( FileTransfer::SY, lay );
21 } 22 }
22 FileTransferLayer* newSXTransfer(IOLayer* lay) { 23 FileTransferLayer* newSXTransfer(IOLayer* lay) {
23 return new FileTransfer(FileTransfer ::SX, lay ); 24 return new FileTransfer(FileTransfer ::SX, lay );
24 } 25 }
25 26
27 // FILE Transfer Receive Stuff
28 ReceiveLayer* newSZReceive(IOLayer* lay) {
29 return new FileReceive( FileReceive::SZ, lay );
30 }
31 ReceiveLayer* newSYReceive(IOLayer* lay) {
32 return new FileReceive( FileReceive::SY, lay );
33 }
34 ReceiveLayer* newSXReceive(IOLayer* lay) {
35 return new FileReceive(FileReceive::SX, lay );
36 }
37
26 // Layer stuff 38 // Layer stuff
27 IOLayer* newSerialLayer( const Profile& prof) { 39 IOLayer* newSerialLayer( const Profile& prof) {
28 return new IOSerial( prof ); 40 return new IOSerial( prof );
29 } 41 }
30 IOLayer* newBTLayer( const Profile& prof ) { 42 IOLayer* newBTLayer( const Profile& prof ) {
31 return new IOBt( prof ); 43 return new IOBt( prof );
32 } 44 }
33 IOLayer* newIrDaLayer( const Profile& prof ) { 45 IOLayer* newIrDaLayer( const Profile& prof ) {
34 return new IOIrda( prof ); 46 return new IOIrda( prof );
35 } 47 }
36 48
37 // Connection Widgets 49 // Connection Widgets
@@ -57,24 +69,28 @@ extern "C" {
57 // VT Emulations 69 // VT Emulations
58 EmulationLayer* newVT102( WidgetLayer* wid ) { 70 EmulationLayer* newVT102( WidgetLayer* wid ) {
59 return new Vt102Emulation( wid ); 71 return new Vt102Emulation( wid );
60 } 72 }
61 73
62}; 74};
63 75
64Default::Default( MetaFactory* fact ) { 76Default::Default( MetaFactory* fact ) {
65 fact->addFileTransferLayer( "SZ", QObject::tr("Z-Modem"), newSZTransfer ); 77 fact->addFileTransferLayer( "SZ", QObject::tr("Z-Modem"), newSZTransfer );
66 fact->addFileTransferLayer( "SY", QObject::tr("Y-Modem"), newSYTransfer ); 78 fact->addFileTransferLayer( "SY", QObject::tr("Y-Modem"), newSYTransfer );
67 fact->addFileTransferLayer( "SX", QObject::tr("X-Modem"), newSXTransfer ); 79 fact->addFileTransferLayer( "SX", QObject::tr("X-Modem"), newSXTransfer );
68 80
81 fact->addReceiveLayer( "SZ", QObject::tr("Z-Modem"), newSZReceive );
82 fact->addReceiveLayer( "SY", QObject::tr("Y-Modem"), newSYReceive );
83 fact->addReceiveLayer( "SX", QObject::tr("X-Modem"), newSXReceive );
84
69 fact->addIOLayerFactory( "serial", QObject::tr("Serial"), newSerialLayer ); 85 fact->addIOLayerFactory( "serial", QObject::tr("Serial"), newSerialLayer );
70 fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer ); 86 fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer );
71 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); 87 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer );
72 88
73 fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); 89 fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget );
74 fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget ); 90 fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget );
75 fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); 91 fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget );
76 fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); 92 fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget );
77 93
78 fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget ); 94 fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget );
79 95
80 fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 ); 96 fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 );