Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSIODevice_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSIODevice_p.h
00003  -------------------
00004  begin                : 28/02/2011
00005  copyright            : (C) 2003-2011 by InfoSiAL S.L.
00006  email                : mail@infosial.com
00007  ***************************************************************************/
00008 /***************************************************************************
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; version 2 of the License.               *
00012  ***************************************************************************/
00013 /***************************************************************************
00014  Este  programa es software libre. Puede redistribuirlo y/o modificarlo
00015  bajo  los  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSIODEVICE_P_H_
00020 #define AQSIODEVICE_P_H_
00021 
00022 #include "AQSByteArray_p.h"
00023 #include <qiodevice.h>
00024 
00025 class AQSIODevice : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(IODevice, VoidPtr);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   int flags() const;
00034   int mode() const;
00035   int state() const;
00036   bool isDirectAccess() const;
00037   bool isSequentialAccess() const;
00038   bool isCombinedAccess() const;
00039   bool isBuffered() const;
00040   bool isRaw() const;
00041   bool isSynchronous() const;
00042   bool isAsynchronous() const;
00043   bool isTranslated() const;
00044   bool isReadable() const;
00045   bool isWritable() const;
00046   bool isReadWrite() const;
00047   bool isInactive() const;
00048   bool isOpen() const;
00049   int status() const;
00050   void resetStatus();
00051   virtual bool open(int);
00052   virtual void close();
00053   virtual void flush();
00054   virtual uint size() const;
00055   virtual uint at() const;
00056   virtual bool at(uint);
00057   virtual bool atEnd() const;
00058   bool reset();
00059   virtual long readBlock(char *, ulong);
00060   virtual long writeBlock(const char *, ulong);
00061   virtual long readLine(char *, ulong);
00062   long writeBlock(QByteArray *);
00063   long writeBlock(AQSByteArray *);
00064   virtual QByteArray readAll();
00065   virtual int getch();
00066   virtual int putch(int);
00067   virtual int ungetch(int);
00068 
00069 protected:
00070   static void *construct(const QSArgumentList &args) {
00071     return 0;
00072   }
00073   //@AQ_END_DEF_PUB_SLOTS@
00074 };
00075 
00076 //@AQ_BEGIN_IMP_PUB_SLOTS@
00077 inline int AQSIODevice::flags() const
00078 {
00079   AQ_CALL_RET_V(flags(), int);
00080 }
00081 inline int AQSIODevice::mode() const
00082 {
00083   AQ_CALL_RET_V(mode(), int);
00084 }
00085 inline int AQSIODevice::state() const
00086 {
00087   AQ_CALL_RET_V(state(), int);
00088 }
00089 inline bool AQSIODevice::isDirectAccess() const
00090 {
00091   AQ_CALL_RET_V(isDirectAccess(), bool);
00092 }
00093 inline bool AQSIODevice::isSequentialAccess() const
00094 {
00095   AQ_CALL_RET_V(isSequentialAccess(), bool);
00096 }
00097 inline bool AQSIODevice::isCombinedAccess() const
00098 {
00099   AQ_CALL_RET_V(isCombinedAccess(), bool);
00100 }
00101 inline bool AQSIODevice::isBuffered() const
00102 {
00103   AQ_CALL_RET_V(isBuffered(), bool);
00104 }
00105 inline bool AQSIODevice::isRaw() const
00106 {
00107   AQ_CALL_RET_V(isRaw(), bool);
00108 }
00109 inline bool AQSIODevice::isSynchronous() const
00110 {
00111   AQ_CALL_RET_V(isSynchronous(), bool);
00112 }
00113 inline bool AQSIODevice::isAsynchronous() const
00114 {
00115   AQ_CALL_RET_V(isAsynchronous(), bool);
00116 }
00117 inline bool AQSIODevice::isTranslated() const
00118 {
00119   AQ_CALL_RET_V(isTranslated(), bool);
00120 }
00121 inline bool AQSIODevice::isReadable() const
00122 {
00123   AQ_CALL_RET_V(isReadable(), bool);
00124 }
00125 inline bool AQSIODevice::isWritable() const
00126 {
00127   AQ_CALL_RET_V(isWritable(), bool);
00128 }
00129 inline bool AQSIODevice::isReadWrite() const
00130 {
00131   AQ_CALL_RET_V(isReadWrite(), bool);
00132 }
00133 inline bool AQSIODevice::isInactive() const
00134 {
00135   AQ_CALL_RET_V(isInactive(), bool);
00136 }
00137 inline bool AQSIODevice::isOpen() const
00138 {
00139   AQ_CALL_RET_V(isOpen(), bool);
00140 }
00141 inline int AQSIODevice::status() const
00142 {
00143   AQ_CALL_RET_V(status(), int);
00144 }
00145 inline void AQSIODevice::resetStatus()
00146 {
00147   AQ_CALL_VOID(resetStatus());
00148 }
00149 inline bool AQSIODevice::open(int arg0)
00150 {
00151   AQ_CALL_RET_V(open(arg0), bool);
00152 }
00153 inline void AQSIODevice::close()
00154 {
00155   AQ_CALL_VOID(close());
00156 }
00157 inline void AQSIODevice::flush()
00158 {
00159   AQ_CALL_VOID(flush());
00160 }
00161 inline uint AQSIODevice::size() const
00162 {
00163   AQ_CALL_RET_V(size(), uint);
00164 }
00165 inline uint AQSIODevice::at() const
00166 {
00167   AQ_CALL_RET_V(at(), uint);
00168 }
00169 inline bool AQSIODevice::at(uint arg0)
00170 {
00171   AQ_CALL_RET_V(at(arg0), bool);
00172 }
00173 inline bool AQSIODevice::atEnd() const
00174 {
00175   AQ_CALL_RET_V(atEnd(), bool);
00176 }
00177 inline bool AQSIODevice::reset()
00178 {
00179   AQ_CALL_RET_V(reset(), bool);
00180 }
00181 inline long AQSIODevice::readBlock(char *arg0,  ulong arg1)
00182 {
00183   AQ_CALL_RET_V(readBlock(arg0, arg1), long);
00184 }
00185 inline long AQSIODevice::writeBlock(const char *arg0,  ulong arg1)
00186 {
00187   AQ_CALL_RET_V(writeBlock(arg0, arg1), long);
00188 }
00189 inline long AQSIODevice::readLine(char *arg0,  ulong arg1)
00190 {
00191   AQ_CALL_RET_V(readLine(arg0, arg1), long);
00192 }
00193 inline long AQSIODevice::writeBlock(QByteArray *arg0)
00194 {
00195   AQ_CALL_RET_V(writeBlock(*arg0), long);
00196 }
00197 inline long AQSIODevice::writeBlock(AQSByteArray *arg0)
00198 {
00199   AQ_CALL_RET_V(writeBlock(*arg0), long);
00200 }
00201 inline QByteArray AQSIODevice::readAll()
00202 {
00203   AQ_CALL_RET_V(readAll(), QByteArray);
00204 }
00205 inline int AQSIODevice::getch()
00206 {
00207   AQ_CALL_RET_V(getch(), int);
00208 }
00209 inline int AQSIODevice::putch(int arg0)
00210 {
00211   AQ_CALL_RET_V(putch(arg0), int);
00212 }
00213 inline int AQSIODevice::ungetch(int arg0)
00214 {
00215   AQ_CALL_RET_V(ungetch(arg0), int);
00216 }
00217 //@AQ_END_IMP_PUB_SLOTS@
00218 
00219 #endif /* AQSIODEVICE_P_H_ */
00220 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'