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.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/noncore/apps/opie-console/io_layer.h b/noncore/apps/opie-console/io_layer.h index c8f41d7..537c851 100644 --- a/noncore/apps/opie-console/io_layer.h +++ b/noncore/apps/opie-console/io_layer.h @@ -1,17 +1,17 @@ #ifndef OPIE_IO_LAYER_H #define OPIE_IO_LAYER_H #include <qobject.h> - +#include <qpe/config.h> /** * This is the base class for IO Layers * It will used to sent and recv data( QByteArray ) * it */ class Config; class IOLayer : public QObject { Q_OBJECT public: enum Error { NoError = -1, @@ -20,32 +20,43 @@ public: ClosedUnexpected =2, ClosedError =3, Terminate = 4 /* add more errors here */ }; /** * a small c'tor */ IOLayer(); /** * create an IOLayer instance from a config file - * can be used by session managemnt/profiles + * the currently set group stores the profile/session + * information */ IOLayer( const Config& ); /** * destructor */ virtual ~IOLayer(); + + /** + * a small internal identifier + */ + virtual QString identifier() const = 0; + + /** + * a short name + */ + virtual QString name() const = 0; signals: /** * received input as QCString */ virtual void received( const QByteArray& ) = 0; /** * an error occured * int for the error number * and QString for a text */ virtual void error( int, const QString& ) = 0; @@ -61,26 +72,15 @@ public slots: */ virtual bool open() = 0; /** * close the io */ virtual void close() = 0; /** * closes and reloads the settings */ virtual void reload( const Config& ) = 0; - - /** - * a small internal identifier - */ - virtual QString identifier()const = 0; - - /** - * a short name - */ - virtual QString name()const = 0; - }; #endif |