summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_layer.h
authorzecke <zecke>2002-10-15 13:02:56 (UTC)
committer zecke <zecke>2002-10-15 13:02:56 (UTC)
commit09ba4d2c79a41b185902519639032a49c85deadb (patch) (unidiff)
treef1d9676bf3401bb93e527c8608a9307bf4adf244 /noncore/apps/opie-console/io_layer.h
parentb555d0c687db83cde89f1a75fccbd59723878621 (diff)
downloadopie-09ba4d2c79a41b185902519639032a49c85deadb.zip
opie-09ba4d2c79a41b185902519639032a49c85deadb.tar.gz
opie-09ba4d2c79a41b185902519639032a49c85deadb.tar.bz2
Add a Feature Support BitArray to the IOLayer
This way we know what an IOLayer supports Adjust IOSerial and MyPty to that change Fix the after close window the previous session window is empty bug in Mainwindow::remove we had a problem first we removed the currentSession from the tab and then deleted the session The problem is that removePage on OTabWidget does signal currentChanged so we did not delete the session intended but the wrong one because m_curSession got adjusted after a removePage... 3rd fix the close and reopen bug in MyPty
Diffstat (limited to 'noncore/apps/opie-console/io_layer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_layer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_layer.h b/noncore/apps/opie-console/io_layer.h
index 5f2fa3c..4977e94 100644
--- a/noncore/apps/opie-console/io_layer.h
+++ b/noncore/apps/opie-console/io_layer.h
@@ -1,10 +1,13 @@
1#ifndef OPIE_IO_LAYER_H 1#ifndef OPIE_IO_LAYER_H
2#define OPIE_IO_LAYER_H 2#define OPIE_IO_LAYER_H
3 3
4#include <qbitarray.h>
4#include <qobject.h> 5#include <qobject.h>
6
7
5#include <qpe/config.h> 8#include <qpe/config.h>
6 9
7#include "profile.h" 10#include "profile.h"
8 11
9/** 12/**
10 * This is the base class for IO Layers 13 * This is the base class for IO Layers
@@ -20,12 +23,17 @@ public:
20 CouldNotOpen =1, 23 CouldNotOpen =1,
21 ClosedUnexpected =2, 24 ClosedUnexpected =2,
22 ClosedError =3, 25 ClosedError =3,
23 Terminate = 4 26 Terminate = 4
24 /* add more errors here */ 27 /* add more errors here */
25 }; 28 };
29 enum Feature {
30 AutoConnect = 0,
31 TransferFile =1,
32 Close =2
33 };
26 /** 34 /**
27 * a small c'tor 35 * a small c'tor
28 */ 36 */
29 IOLayer(); 37 IOLayer();
30 38
31 /** 39 /**
@@ -62,12 +70,17 @@ public:
62 /** 70 /**
63 * will close the rawIO stuff 71 * will close the rawIO stuff
64 * and will listen to it's data again... 72 * and will listen to it's data again...
65 */ 73 */
66 virtual void closeRawIO(int); 74 virtual void closeRawIO(int);
67 75
76 /**
77 * What does the IOLayer support?
78 * Bits are related to features
79 */
80 virtual QBitArray supports()const = 0;
68 81
69signals: 82signals:
70 /** 83 /**
71 * received input as QCString 84 * received input as QCString
72 */ 85 */
73 virtual void received( const QByteArray& ); 86 virtual void received( const QByteArray& );
@@ -76,12 +89,13 @@ signals:
76 * an error occured 89 * an error occured
77 * int for the error number 90 * int for the error number
78 * and QString for a text 91 * and QString for a text
79 */ 92 */
80 virtual void error( int, const QString& ); 93 virtual void error( int, const QString& );
81 94
95 virtual void closed();
82public slots: 96public slots:
83 /** 97 /**
84 * send a QCString to the device 98 * send a QCString to the device
85 */ 99 */
86 virtual void send( const QByteArray& ) = 0; 100 virtual void send( const QByteArray& ) = 0;
87 101