Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSZipReader_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSZipReader_p.h
00003  -------------------
00004  begin                : 12/12/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  términos  de  la  Licencia  Pública General de GNU   en  su
00016  versión 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSZIPREADER_P_H_
00020 #define AQSZIPREADER_P_H_
00021 
00022 #include "AQSIODevice_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSZipReader : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID_AQOBJECT(ZipReader, VoidPtr);
00030 
00031 protected:
00032   void specializedInternalFinish() {
00033     if (!wrap_)
00034       delete o_;
00035   }
00036 
00037   //@AQ_BEGIN_DEF_PUB_SLOTS@
00038 public slots:
00039   QIODevice *device() const;
00040   bool isReadable() const;
00041   bool exists() const;
00042   int count() const;
00043   QByteArray fileData(const QString &) const;
00044   bool extractAll(const QString &) const;
00045   uint status() const;
00046   void close();
00047 
00048 protected:
00049   static void *construct(const QSArgumentList &args) {
00050     QMap<int, QStringList> candidates;
00051     candidates[1].append(QString::fromLatin1("QString"));
00052     candidates[2].append(QString::fromLatin1("QString,uint"));
00053     candidates[1].append(QString::fromLatin1("QIODevice*"));
00054     QString sgt(castArgsSignature(args, candidates));
00055     if (sgt == QString::fromLatin1("QString"))
00056       return new AQZipReader(*(argValue<QString *>(args[0])));
00057     if (sgt == QString::fromLatin1("QString,uint"))
00058       return new AQZipReader(*(argValue<QString *>(args[0])),
00059                              args[1].variant().toUInt());
00060     if (sgt == QString::fromLatin1("QIODevice*"))
00061       return new AQZipReader(argValue<QIODevice *>(args[0]));
00062     return 0;
00063   }
00064 
00065 public:
00066   static QMap<int, QStringList> candidateConstructors() {
00067     QMap<int, QStringList> candidates;
00068     candidates[1].append(QString::fromLatin1("QString"));
00069     candidates[2].append(QString::fromLatin1("QString,uint"));
00070     candidates[1].append(QString::fromLatin1("QIODevice*"));
00071     return candidates;
00072   }
00073   //@AQ_END_DEF_PUB_SLOTS@
00074 };
00075 
00076 //@AQ_BEGIN_IMP_PUB_SLOTS@
00077 inline QIODevice *AQSZipReader::device() const
00078 {
00079   AQ_CALL_RET(device());
00080 }
00081 inline bool AQSZipReader::isReadable() const
00082 {
00083   AQ_CALL_RET_V(isReadable(), bool);
00084 }
00085 inline bool AQSZipReader::exists() const
00086 {
00087   AQ_CALL_RET_V(exists(), bool);
00088 }
00089 inline int AQSZipReader::count() const
00090 {
00091   AQ_CALL_RET_V(count(), int);
00092 }
00093 inline QByteArray AQSZipReader::fileData(const QString &arg0) const
00094 {
00095   AQ_CALL_RET_V(fileData(arg0), QByteArray);
00096 }
00097 inline bool AQSZipReader::extractAll(const QString &arg0) const
00098 {
00099   AQ_CALL_RET_V(extractAll(arg0), bool);
00100 }
00101 inline uint AQSZipReader::status() const
00102 {
00103   AQ_CALL_RET_V(status(), uint);
00104 }
00105 inline void AQSZipReader::close()
00106 {
00107   AQ_CALL_VOID(close());
00108 }
00109 //@AQ_END_IMP_PUB_SLOTS@
00110 
00111 #endif /* AQSZIPREADER_P_H_ */
00112 // @AQOBJECT_VOID@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'