-rw-r--r-- | noncore/apps/opie-console/io_modem.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_modem.h | 3 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 10 | ||||
-rw-r--r-- | noncore/apps/opie-console/opie-console.pro | 4 |
4 files changed, 19 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp index eb0aeb7..56147d8 100644 --- a/noncore/apps/opie-console/io_modem.cpp +++ b/noncore/apps/opie-console/io_modem.cpp | |||
@@ -1,73 +1,75 @@ | |||
1 | 1 | ||
2 | #include "io_modem.h" | 2 | #include "io_modem.h" |
3 | 3 | ||
4 | #include "dialer.h" | 4 | #include "dialer.h" |
5 | 5 | ||
6 | IOModem:IOModem( const Profile &config ) : IOSerial( config ) { | 6 | IOModem::IOModem( const Profile &profile ) |
7 | m_config = config; | 7 | : IOSerial( profile ), m_profile( profile ) { |
8 | } | 8 | } |
9 | 9 | ||
10 | 10 | ||
11 | IOModem::~IOModem() { | 11 | IOModem::~IOModem() { |
12 | 12 | ||
13 | } | 13 | } |
14 | 14 | ||
15 | 15 | ||
16 | void IOModem::close() { | 16 | void IOModem::close() { |
17 | 17 | ||
18 | IOSerial::close(); | 18 | IOSerial::close(); |
19 | 19 | ||
20 | } | 20 | } |
21 | 21 | ||
22 | bool IOModem::open() { | 22 | bool IOModem::open() { |
23 | qWarning("IOModem::open"); | ||
23 | IOSerial::open(); | 24 | IOSerial::open(); |
24 | 25 | ||
25 | Dialer d(m_profile); | 26 | Dialer d(m_profile); |
26 | int result = d.exec(); | 27 | int result = d.exec(); |
27 | if(result == QDialog::Accepted) | 28 | if(result == QDialog::Accepted) |
28 | { | 29 | { |
29 | return true; | 30 | return true; |
30 | } | 31 | } |
31 | else return false; | 32 | else return false; |
32 | } | 33 | } |
33 | 34 | ||
34 | void IOModem::reload( const Profile &config ) { | 35 | void IOModem::reload( const Profile &config ) { |
35 | m_device = config.readEntry("Device", MODEM_DEFAULT_DEVICE); | 36 | m_device = config.readEntry("Device", MODEM_DEFAULT_DEVICE); |
36 | m_baud = config.readNumEntry("Baud", MODEM_DEFAULT_BAUD); | 37 | m_baud = config.readNumEntry("Baud", MODEM_DEFAULT_BAUD); |
37 | m_parity = config.readNumEntry("Parity", MODEM_DEFAULT_PARITY); | 38 | m_parity = config.readNumEntry("Parity", MODEM_DEFAULT_PARITY); |
38 | m_dbits = config.readNumEntry("DataBits", MODEM_DEFAULT_DBITS); | 39 | m_dbits = config.readNumEntry("DataBits", MODEM_DEFAULT_DBITS); |
39 | m_sbits = config.readNumEntry("StopBits", MODEM_DEFAULT_SBITS); | 40 | m_sbits = config.readNumEntry("StopBits", MODEM_DEFAULT_SBITS); |
40 | m_flow = config.readNumEntry("Flow", MODEM_DEFAULT_FLOW); | 41 | m_flow = config.readNumEntry("Flow", MODEM_DEFAULT_FLOW); |
41 | 42 | ||
42 | m_initString = config.readEntry("InitString", MODEM_DEFAULT_INIT_STRING ); | 43 | m_initString = config.readEntry("InitString", MODEM_DEFAULT_INIT_STRING ); |
43 | m_resetString = config.readEntry("ResetString", MODEM_DEFAULT_RESET_STRING ); | 44 | m_resetString = config.readEntry("ResetString", MODEM_DEFAULT_RESET_STRING ); |
44 | m_dialPref1 = config.readEntry("DialPrefix1", MODEM_DEFAULT_DIAL_PREFIX1 ); | 45 | m_dialPref1 = config.readEntry("DialPrefix1", MODEM_DEFAULT_DIAL_PREFIX1 ); |
45 | m_dialSuf1 = config.readEntry("DialSuffix1", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 46 | m_dialSuf1 = config.readEntry("DialSuffix1", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
46 | m_dialPref2 = config.readEntry("DialPrefix2", MODEM_DEFAULT_DIAL_PREFIX1 ); | 47 | m_dialPref2 = config.readEntry("DialPrefix2", MODEM_DEFAULT_DIAL_PREFIX1 ); |
47 | m_dialSuf2 = config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 48 | m_dialSuf2 = config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
48 | m_dialPref3 = config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ); | 49 | m_dialPref3 = config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ); |
49 | m_dialSuf3 = config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 50 | m_dialSuf3 = config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
50 | m_connect = config.readEntry("DefaultConnect" MODEM_DEFAULT_CONNECT_STRING ); | 51 | m_connect = config.readEntry("DefaultConnect" MODEM_DEFAULT_CONNECT_STRING ); |
51 | m_hangup = config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ); | 52 | m_hangup = config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ); |
52 | m_cancel = config.readEntry("CancelString", MODEM_DEFAULT_CANCEL_STRING ); | 53 | m_cancel = config.readEntry("CancelString", MODEM_DEFAULT_CANCEL_STRING ); |
53 | m_dialTime = config.readNumEntry("DialTime", MODEM_DEFAULT_DIAL_TIME ); | 54 | m_dialTime = config.readNumEntry("DialTime", MODEM_DEFAULT_DIAL_TIME ); |
54 | m_delayRedial = config.readNumEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ); | 55 | m_delayRedial = config.readNumEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ); |
55 | m_numberTries = config.readNumEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ); | 56 | m_numberTries = config.readNumEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ); |
56 | m_dtrDropTime = config.readNumEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ); | 57 | m_dtrDropTime = config.readNumEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ); |
57 | m_bpsDetect = config.readBoolEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ); | 58 | m_bpsDetect = config.readBoolEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ); |
58 | m_dcdLines = config.readBoolEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ); | 59 | m_dcdLines = config.readBoolEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ); |
59 | m_multiLineUntag = config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); | 60 | m_multiLineUntag = config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); |
60 | } | 61 | } |
61 | 62 | ||
62 | 63 | ||
63 | QString IOModem::identifier() const { | 64 | QString IOModem::identifier() const { |
64 | return "modem"; | 65 | return "modem"; |
65 | } | 66 | } |
66 | 67 | ||
67 | QString IOModem::name() const { | 68 | QString IOModem::name() const { |
68 | return "Modem IO Layer"; | 69 | return "Modem IO Layer"; |
69 | } | 70 | } |
70 | 71 | ||
71 | void IOIrda::slotExited(OProcess* proc ){ | 72 | void IOModem::slotExited(OProcess* proc ){ |
72 | close(); | 73 | close(); |
73 | } | 74 | } |
75 | |||
diff --git a/noncore/apps/opie-console/io_modem.h b/noncore/apps/opie-console/io_modem.h index 6d44349..d681f66 100644 --- a/noncore/apps/opie-console/io_modem.h +++ b/noncore/apps/opie-console/io_modem.h | |||
@@ -1,70 +1,71 @@ | |||
1 | #ifndef OPIE_IO_MODEM | 1 | #ifndef OPIE_IO_MODEM |
2 | #define OPIE_IO_MODEM | 2 | #define OPIE_IO_MODEM |
3 | 3 | ||
4 | #include <opie/oprocess.h> | 4 | #include <opie/oprocess.h> |
5 | #include "io_serial.h" | 5 | #include "io_serial.h" |
6 | #include "profile.h" | ||
6 | 7 | ||
7 | /* Default values to be used if the profile information is incomplete */ | 8 | /* Default values to be used if the profile information is incomplete */ |
8 | #define MODEM_DEFAULT_DEVICE "/dev/ttyS0" | 9 | #define MODEM_DEFAULT_DEVICE "/dev/ttyS0" |
9 | #define MODEM_DEFAULT_BAUD 9600 | 10 | #define MODEM_DEFAULT_BAUD 9600 |
10 | #define MODEM_DEFAULT_PARITY 0 | 11 | #define MODEM_DEFAULT_PARITY 0 |
11 | #define MODEM_DEFAULT_DBITS 8 | 12 | #define MODEM_DEFAULT_DBITS 8 |
12 | #define MODEM_DEFAULT_SBITS 1 | 13 | #define MODEM_DEFAULT_SBITS 1 |
13 | #define MODEM_DEFAULT_FLOW 0 | 14 | #define MODEM_DEFAULT_FLOW 0 |
14 | 15 | ||
15 | #define MODEM_DEFAULT_INIT_STRING "~^M~ATZ^M~" | 16 | #define MODEM_DEFAULT_INIT_STRING "~^M~ATZ^M~" |
16 | #define MODEM_DEFAULT_RESET_STRING "~^M~ATZ^M~" | 17 | #define MODEM_DEFAULT_RESET_STRING "~^M~ATZ^M~" |
17 | #define MODEM_DEFAULT_DIAL_PREFIX1 "ATDT" | 18 | #define MODEM_DEFAULT_DIAL_PREFIX1 "ATDT" |
18 | #define MODEM_DEFAULT_DIAL_SUFFIX1 "^M" | 19 | #define MODEM_DEFAULT_DIAL_SUFFIX1 "^M" |
19 | #define MODEM_DEFAULT_DIAL_PREFIX2 "ATDP" | 20 | #define MODEM_DEFAULT_DIAL_PREFIX2 "ATDP" |
20 | #define MODEM_DEFAULT_DIAL_SUFFIX2 "^M" | 21 | #define MODEM_DEFAULT_DIAL_SUFFIX2 "^M" |
21 | #define MODEM_DEFAULT_DIAL_PREFIX3 "ATX1DT" | 22 | #define MODEM_DEFAULT_DIAL_PREFIX3 "ATX1DT" |
22 | #define MODEM_DEFAULT_DIAL_SUFFIX3 ";X4D^M" | 23 | #define MODEM_DEFAULT_DIAL_SUFFIX3 ";X4D^M" |
23 | #define MODEM_DEFAULT_CONNECT_STRING "CONNECT" | 24 | #define MODEM_DEFAULT_CONNECT_STRING "CONNECT" |
24 | #define MODEM_DEFAULT_HANGUP_STRING "~~+++~~ATH^M" | 25 | #define MODEM_DEFAULT_HANGUP_STRING "~~+++~~ATH^M" |
25 | #define MODEM_DEFAULT_CANCEL_STRING "^M" | 26 | #define MODEM_DEFAULT_CANCEL_STRING "^M" |
26 | #define MODEM_DEFAULT_DIAL_TIME 45 | 27 | #define MODEM_DEFAULT_DIAL_TIME 45 |
27 | #define MODEM_DEFAULT_DELAY_REDIAL 2 | 28 | #define MODEM_DEFAULT_DELAY_REDIAL 2 |
28 | #define MODEM_DEFAULT_NUMBER_TRIES 10 | 29 | #define MODEM_DEFAULT_NUMBER_TRIES 10 |
29 | #define MODEM_DEFAULT_DTR_DROP_TIME 1 | 30 | #define MODEM_DEFAULT_DTR_DROP_TIME 1 |
30 | #define MODEM_DEFAULT_BPS_DETECT 0 // bool | 31 | #define MODEM_DEFAULT_BPS_DETECT 0 // bool |
31 | #define MODEM_DEFAULT_DCD_LINES 1 //bool | 32 | #define MODEM_DEFAULT_DCD_LINES 1 //bool |
32 | #define MODEM_DEFAULT_MULTI_LINE_UNTAG 0 // bool | 33 | #define MODEM_DEFAULT_MULTI_LINE_UNTAG 0 // bool |
33 | 34 | ||
34 | /* IOSerial implements a RS232 IO Layer */ | 35 | /* IOSerial implements a RS232 IO Layer */ |
35 | 36 | ||
36 | class IOModem : public IOSerial { | 37 | class IOModem : public IOSerial { |
37 | 38 | ||
38 | Q_OBJECT | 39 | Q_OBJECT |
39 | 40 | ||
40 | public: | 41 | public: |
41 | 42 | ||
42 | IOModem(const Profile &); | 43 | IOModem(const Profile &); |
43 | ~IOModem(); | 44 | ~IOModem(); |
44 | 45 | ||
45 | QString identifier() const; | 46 | QString identifier() const; |
46 | QString name() const; | 47 | QString name() const; |
47 | 48 | ||
48 | signals: | 49 | signals: |
49 | void received(const QByteArray &); | 50 | void received(const QByteArray &); |
50 | void error(int, const QString &); | 51 | void error(int, const QString &); |
51 | 52 | ||
52 | public slots: | 53 | public slots: |
53 | bool open(); | 54 | bool open(); |
54 | void close(); | 55 | void close(); |
55 | void reload(const Profile &); | 56 | void reload(const Profile &); |
56 | 57 | ||
57 | private: | 58 | private: |
58 | 59 | ||
59 | QString m_initString, m_resetString, m_dialPref1, m_dialSuf1, m_dialPref2, | 60 | QString m_initString, m_resetString, m_dialPref1, m_dialSuf1, m_dialPref2, |
60 | m_dialSuf2, dialPref3, m_dialSuf3, m_connect, m_hangup, m_cancel; | 61 | m_dialSuf2, m_dialPref3, m_dialSuf3, m_connect, m_hangup, m_cancel; |
61 | int m_dialTime, m_delayRedial, m_numberTries, m_dtrDropTime, | 62 | int m_dialTime, m_delayRedial, m_numberTries, m_dtrDropTime, |
62 | m_bpsDetect, m_dcdLines, m_multiLineUntag; | 63 | m_bpsDetect, m_dcdLines, m_multiLineUntag; |
63 | const Profile& m_profile; | 64 | const Profile& m_profile; |
64 | 65 | ||
65 | private slots: | 66 | private slots: |
66 | void slotExited(OProcess* proc); | 67 | void slotExited(OProcess* proc); |
67 | 68 | ||
68 | }; | 69 | }; |
69 | 70 | ||
70 | #endif | 71 | #endif |
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 415259e..1adb43d 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -1,56 +1,57 @@ | |||
1 | 1 | ||
2 | #include <qaction.h> | 2 | #include <qaction.h> |
3 | #include <qmenubar.h> | 3 | #include <qmenubar.h> |
4 | #include <qlabel.h> | 4 | #include <qlabel.h> |
5 | #include <qpopupmenu.h> | 5 | #include <qpopupmenu.h> |
6 | #include <qtoolbar.h> | 6 | #include <qtoolbar.h> |
7 | #include <qpe/resource.h> | 7 | #include <qpe/resource.h> |
8 | #include <opie/ofiledialog.h> | 8 | #include <opie/ofiledialog.h> |
9 | #include <qmessagebox.h> | ||
9 | 10 | ||
10 | #include "profileeditordialog.h" | 11 | #include "profileeditordialog.h" |
11 | #include "configdialog.h" | 12 | #include "configdialog.h" |
12 | #include "default.h" | 13 | #include "default.h" |
13 | #include "metafactory.h" | 14 | #include "metafactory.h" |
14 | #include "profile.h" | 15 | #include "profile.h" |
15 | #include "profilemanager.h" | 16 | #include "profilemanager.h" |
16 | #include "mainwindow.h" | 17 | #include "mainwindow.h" |
17 | #include "tabwidget.h" | 18 | #include "tabwidget.h" |
18 | #include "transferdialog.h" | 19 | #include "transferdialog.h" |
19 | #include "function_keyboard.h" | 20 | #include "function_keyboard.h" |
20 | #include "script.h" | 21 | #include "script.h" |
21 | 22 | ||
22 | MainWindow::MainWindow() { | 23 | MainWindow::MainWindow() { |
23 | m_factory = new MetaFactory(); | 24 | m_factory = new MetaFactory(); |
24 | Default def(m_factory); | 25 | Default def(m_factory); |
25 | m_sessions.setAutoDelete( TRUE ); | 26 | m_sessions.setAutoDelete( TRUE ); |
26 | m_curSession = 0; | 27 | m_curSession = 0; |
27 | m_manager = new ProfileManager( m_factory ); | 28 | m_manager = new ProfileManager( m_factory ); |
28 | m_manager->load(); | 29 | m_manager->load(); |
29 | 30 | ||
30 | initUI(); | 31 | initUI(); |
31 | populateProfiles(); | 32 | populateProfiles(); |
32 | } | 33 | } |
33 | void MainWindow::initUI() { | 34 | void MainWindow::initUI() { |
34 | setToolBarsMovable( FALSE ); | 35 | setToolBarsMovable( FALSE ); |
35 | 36 | ||
36 | /* tool bar for the menu */ | 37 | /* tool bar for the menu */ |
37 | m_tool = new QToolBar( this ); | 38 | m_tool = new QToolBar( this ); |
38 | m_tool->setHorizontalStretchable( TRUE ); | 39 | m_tool->setHorizontalStretchable( TRUE ); |
39 | 40 | ||
40 | m_bar = new QMenuBar( m_tool ); | 41 | m_bar = new QMenuBar( m_tool ); |
41 | m_console = new QPopupMenu( this ); | 42 | m_console = new QPopupMenu( this ); |
42 | m_scripts = new QPopupMenu( this ); | 43 | m_scripts = new QPopupMenu( this ); |
43 | m_sessionsPop= new QPopupMenu( this ); | 44 | m_sessionsPop= new QPopupMenu( this ); |
44 | m_settings = new QPopupMenu( this ); | 45 | m_settings = new QPopupMenu( this ); |
45 | 46 | ||
46 | /* add a toolbar for icons */ | 47 | /* add a toolbar for icons */ |
47 | m_icons = new QToolBar(this); | 48 | m_icons = new QToolBar(this); |
48 | 49 | ||
49 | /* | 50 | /* |
50 | * new Action for new sessions | 51 | * new Action for new sessions |
51 | */ | 52 | */ |
52 | QAction* a = new QAction(tr("New Connection"), | 53 | QAction* a = new QAction(tr("New Connection"), |
53 | Resource::loadPixmap( "new" ), | 54 | Resource::loadPixmap( "new" ), |
54 | QString::null, 0, this, 0); | 55 | QString::null, 0, this, 0); |
55 | a->addTo( m_console ); | 56 | a->addTo( m_console ); |
56 | a->addTo( m_icons ); | 57 | a->addTo( m_icons ); |
@@ -264,76 +265,85 @@ void MainWindow::slotTerminate() { | |||
264 | /* FIXME move to the next session */ | 265 | /* FIXME move to the next session */ |
265 | } | 266 | } |
266 | 267 | ||
267 | void MainWindow::slotConfigure() { | 268 | void MainWindow::slotConfigure() { |
268 | qWarning("configure"); | 269 | qWarning("configure"); |
269 | ConfigDialog conf( manager()->all(), factory() ); | 270 | ConfigDialog conf( manager()->all(), factory() ); |
270 | conf.showMaximized(); | 271 | conf.showMaximized(); |
271 | 272 | ||
272 | int ret = conf.exec(); | 273 | int ret = conf.exec(); |
273 | 274 | ||
274 | if ( QDialog::Accepted == ret ) { | 275 | if ( QDialog::Accepted == ret ) { |
275 | qWarning("conf %d", conf.list().count() ); | 276 | qWarning("conf %d", conf.list().count() ); |
276 | manager()->setProfiles( conf.list() ); | 277 | manager()->setProfiles( conf.list() ); |
277 | manager()->save(); | 278 | manager()->save(); |
278 | populateProfiles(); | 279 | populateProfiles(); |
279 | } | 280 | } |
280 | } | 281 | } |
281 | /* | 282 | /* |
282 | * we will remove | 283 | * we will remove |
283 | * this window from the tabwidget | 284 | * this window from the tabwidget |
284 | * remove it from the list | 285 | * remove it from the list |
285 | * delete it | 286 | * delete it |
286 | * and set the currentSession() | 287 | * and set the currentSession() |
287 | */ | 288 | */ |
288 | void MainWindow::slotClose() { | 289 | void MainWindow::slotClose() { |
289 | qWarning("close"); | 290 | qWarning("close"); |
290 | if (!currentSession() ) | 291 | if (!currentSession() ) |
291 | return; | 292 | return; |
292 | 293 | ||
293 | tabWidget()->remove( currentSession() ); | 294 | tabWidget()->remove( currentSession() ); |
294 | /*it's autodelete */ | 295 | /*it's autodelete */ |
295 | m_sessions.remove( m_curSession ); | 296 | m_sessions.remove( m_curSession ); |
296 | m_curSession = m_sessions.first(); | 297 | m_curSession = m_sessions.first(); |
297 | tabWidget()->setCurrent( m_curSession ); | 298 | tabWidget()->setCurrent( m_curSession ); |
298 | } | 299 | } |
299 | 300 | ||
300 | /* | 301 | /* |
301 | * We will get the name | 302 | * We will get the name |
302 | * Then the profile | 303 | * Then the profile |
303 | * and then we will make a profile | 304 | * and then we will make a profile |
304 | */ | 305 | */ |
305 | void MainWindow::slotProfile( int id) { | 306 | void MainWindow::slotProfile( int id) { |
306 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); | 307 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); |
307 | create( prof ); | 308 | create( prof ); |
308 | } | 309 | } |
309 | void MainWindow::create( const Profile& prof ) { | 310 | void MainWindow::create( const Profile& prof ) { |
310 | Session *ses = manager()->fromProfile( prof, tabWidget() ); | 311 | Session *ses = manager()->fromProfile( prof, tabWidget() ); |
311 | 312 | ||
313 | if((!ses) || (!ses->layer()) || (!ses->widgetStack())) | ||
314 | { | ||
315 | QMessageBox::warning(this, | ||
316 | QObject::tr("Session failed"), | ||
317 | QObject::tr("Cannot open session: Not all components were found.")); | ||
318 | //if(ses) delete ses; | ||
319 | return; | ||
320 | } | ||
321 | |||
312 | m_sessions.append( ses ); | 322 | m_sessions.append( ses ); |
313 | tabWidget()->add( ses ); | 323 | tabWidget()->add( ses ); |
314 | m_curSession = ses; | 324 | m_curSession = ses; |
315 | 325 | ||
316 | } | 326 | } |
317 | 327 | ||
318 | void MainWindow::slotTransfer() | 328 | void MainWindow::slotTransfer() |
319 | { | 329 | { |
320 | // if ( currentSession() ) { | 330 | // if ( currentSession() ) { |
321 | TransferDialog dlg(this); | 331 | TransferDialog dlg(this); |
322 | dlg.showMaximized(); | 332 | dlg.showMaximized(); |
323 | dlg.exec(); | 333 | dlg.exec(); |
324 | // } | 334 | // } |
325 | } | 335 | } |
326 | 336 | ||
327 | 337 | ||
328 | void MainWindow::slotOpenKeb(bool state) { | 338 | void MainWindow::slotOpenKeb(bool state) { |
329 | 339 | ||
330 | if (state) m_keyBar->show(); | 340 | if (state) m_keyBar->show(); |
331 | else m_keyBar->hide(); | 341 | else m_keyBar->hide(); |
332 | 342 | ||
333 | } | 343 | } |
334 | void MainWindow::slotSessionChanged( Session* ses ) { | 344 | void MainWindow::slotSessionChanged( Session* ses ) { |
335 | if ( ses ) { | 345 | if ( ses ) { |
336 | qWarning("changing %s", ses->name().latin1() ); | 346 | qWarning("changing %s", ses->name().latin1() ); |
337 | m_curSession = ses; | 347 | m_curSession = ses; |
338 | } | 348 | } |
339 | } | 349 | } |
diff --git a/noncore/apps/opie-console/opie-console.pro b/noncore/apps/opie-console/opie-console.pro index ef6bc21..26bce83 100644 --- a/noncore/apps/opie-console/opie-console.pro +++ b/noncore/apps/opie-console/opie-console.pro | |||
@@ -1,74 +1,74 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | #CONFIG = qt warn_on release | 2 | #CONFIG = qt warn_on release |
3 | CONFIG = qt debug | 3 | CONFIG = qt debug |
4 | DESTDIR = $(OPIEDIR)/bin | 4 | DESTDIR = $(OPIEDIR)/bin |
5 | HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h\ | 5 | HEADERS = io_layer.h io_serial.h io_irda.h io_bt.h io_modem.h \ |
6 | file_layer.h filetransfer.h \ | 6 | file_layer.h filetransfer.h \ |
7 | metafactory.h \ | 7 | metafactory.h \ |
8 | session.h \ | 8 | session.h \ |
9 | mainwindow.h \ | 9 | mainwindow.h \ |
10 | profile.h \ | 10 | profile.h \ |
11 | profileconfig.h \ | 11 | profileconfig.h \ |
12 | profilemanager.h \ | 12 | profilemanager.h \ |
13 | configwidget.h \ | 13 | configwidget.h \ |
14 | tabwidget.h \ | 14 | tabwidget.h \ |
15 | configdialog.h \ | 15 | configdialog.h \ |
16 | emulation_layer.h \ | 16 | emulation_layer.h \ |
17 | vt102emulation.h \ | 17 | vt102emulation.h \ |
18 | common.h \ | 18 | common.h \ |
19 | history.h \ | 19 | history.h \ |
20 | screen.h \ | 20 | screen.h \ |
21 | keytrans.h \ | 21 | keytrans.h \ |
22 | widget_layer.h \ | 22 | widget_layer.h \ |
23 | transferdialog.h \ | 23 | transferdialog.h \ |
24 | profiledialogwidget.h \ | 24 | profiledialogwidget.h \ |
25 | profileeditordialog.h \ | 25 | profileeditordialog.h \ |
26 | default.h \ | 26 | default.h \ |
27 | terminalwidget.h \ | 27 | terminalwidget.h \ |
28 | iolayerbase.h \ | 28 | iolayerbase.h \ |
29 | serialconfigwidget.h irdaconfigwidget.h \ | 29 | serialconfigwidget.h irdaconfigwidget.h \ |
30 | btconfigwidget.h modemconfigwidget.h \ | 30 | btconfigwidget.h modemconfigwidget.h \ |
31 | atconfigdialog.h dialdialog.h \ | 31 | atconfigdialog.h dialdialog.h \ |
32 | emulation_widget.h procctl.h \ | 32 | emulation_widget.h procctl.h \ |
33 | function_keyboard.h \ | 33 | function_keyboard.h \ |
34 | receive_layer.h filereceive.h \ | 34 | receive_layer.h filereceive.h \ |
35 | script.h \ | 35 | script.h \ |
36 | dialer.h | 36 | dialer.h |
37 | 37 | ||
38 | SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp \ | 38 | SOURCES = io_layer.cpp io_serial.cpp io_irda.cpp io_bt.cpp io_modem.cpp \ |
39 | file_layer.cpp filetransfer.cpp \ | 39 | file_layer.cpp filetransfer.cpp \ |
40 | main.cpp \ | 40 | main.cpp \ |
41 | metafactory.cpp \ | 41 | metafactory.cpp \ |
42 | session.cpp \ | 42 | session.cpp \ |
43 | mainwindow.cpp \ | 43 | mainwindow.cpp \ |
44 | profile.cpp \ | 44 | profile.cpp \ |
45 | profileconfig.cpp \ | 45 | profileconfig.cpp \ |
46 | profilemanager.cpp \ | 46 | profilemanager.cpp \ |
47 | tabwidget.cpp \ | 47 | tabwidget.cpp \ |
48 | configdialog.cpp \ | 48 | configdialog.cpp \ |
49 | emulation_layer.cpp \ | 49 | emulation_layer.cpp \ |
50 | vt102emulation.cpp \ | 50 | vt102emulation.cpp \ |
51 | history.cpp \ | 51 | history.cpp \ |
52 | screen.cpp \ | 52 | screen.cpp \ |
53 | keytrans.cpp \ | 53 | keytrans.cpp \ |
54 | widget_layer.cpp \ | 54 | widget_layer.cpp \ |
55 | transferdialog.cpp \ | 55 | transferdialog.cpp \ |
56 | profiledialogwidget.cpp \ | 56 | profiledialogwidget.cpp \ |
57 | profileeditordialog.cpp \ | 57 | profileeditordialog.cpp \ |
58 | terminalwidget.cpp \ | 58 | terminalwidget.cpp \ |
59 | iolayerbase.cpp \ | 59 | iolayerbase.cpp \ |
60 | serialconfigwidget.cpp irdaconfigwidget.cpp \ | 60 | serialconfigwidget.cpp irdaconfigwidget.cpp \ |
61 | btconfigwidget.cpp modemconfigwidget.cpp \ | 61 | btconfigwidget.cpp modemconfigwidget.cpp \ |
62 | atconfigdialog.cpp dialdialog.cpp \ | 62 | atconfigdialog.cpp dialdialog.cpp \ |
63 | emulation_widget.cpp default.cpp procctl.cpp \ | 63 | emulation_widget.cpp default.cpp procctl.cpp \ |
64 | function_keyboard.cpp \ | 64 | function_keyboard.cpp \ |
65 | receive_layer.cpp filereceive.cpp \ | 65 | receive_layer.cpp filereceive.cpp \ |
66 | script.cpp \ | 66 | script.cpp \ |
67 | dialer.cpp | 67 | dialer.cpp |
68 | 68 | ||
69 | INTERFACES = configurebase.ui editbase.ui | 69 | INTERFACES = configurebase.ui editbase.ui |
70 | INCLUDEPATH += $(OPIEDIR)/include | 70 | INCLUDEPATH += $(OPIEDIR)/include |
71 | DEPENDPATH += $(OPIEDIR)/include | 71 | DEPENDPATH += $(OPIEDIR)/include |
72 | LIBS += -lqpe -lopie | 72 | LIBS += -lqpe -lopie |
73 | TARGET = opie-console | 73 | TARGET = opie-console |
74 | 74 | ||