Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSPackager_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSPackager_p.h
00003  -------------------
00004  begin                : 14/03/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 AQSPACKAGER_P_H_
00020 #define AQSPACKAGER_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSPackager : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID_AQOBJECT(Packager, 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   bool pack(const QString &, bool = true, bool = false, bool = false, bool = true, bool = false);
00040   bool unpack(const QString &);
00041   QString output() const;
00042   QString outputPackage() const;
00043   void setEncodeUtf8(bool = true);
00044   QStringList errorMessages() const;
00045   QStringList logMessages() const;
00046   void setFilter(const QStringList &);
00047   QStringList filter() const;
00048 
00049 protected:
00050   static void *construct(const QSArgumentList &args) {
00051     QMap<int, QStringList> candidates;
00052     candidates[0].append(QString::null);
00053     candidates[1].append(QString::fromLatin1("QString"));
00054     QString sgt(castArgsSignature(args, candidates));
00055     if (sgt.isEmpty())
00056       return new AQPackager;
00057     if (sgt == QString::fromLatin1("QString"))
00058       return new AQPackager(*(argValue<QString *>(args[0])));
00059     return 0;
00060   }
00061 
00062 public:
00063   static QMap<int, QStringList> candidateConstructors() {
00064     QMap<int, QStringList> candidates;
00065     candidates[0].append(QString::null);
00066     candidates[1].append(QString::fromLatin1("QString"));
00067     return candidates;
00068   }
00069   //@AQ_END_DEF_PUB_SLOTS@
00070 };
00071 
00072 //@AQ_BEGIN_IMP_PUB_SLOTS@
00073 inline bool AQSPackager::pack(const QString &arg0,  bool arg1,  bool arg2,  bool arg3,  bool arg4,  bool arg5)
00074 {
00075   AQ_CALL_RET_V(pack(arg0, arg1, arg2, arg3, arg4, arg5), bool);
00076 }
00077 inline bool AQSPackager::unpack(const QString &arg0)
00078 {
00079   AQ_CALL_RET_V(unpack(arg0), bool);
00080 }
00081 inline QString AQSPackager::output() const
00082 {
00083   AQ_CALL_RET_V(output(), QString);
00084 }
00085 inline QString AQSPackager::outputPackage() const
00086 {
00087   AQ_CALL_RET_V(outputPackage(), QString);
00088 }
00089 inline void AQSPackager::setEncodeUtf8(bool arg0)
00090 {
00091   AQ_CALL_VOID(setEncodeUtf8(arg0));
00092 }
00093 inline QStringList AQSPackager::errorMessages() const
00094 {
00095   AQ_CALL_RET_V(errorMessages(), QStringList);
00096 }
00097 inline QStringList AQSPackager::logMessages() const
00098 {
00099   AQ_CALL_RET_V(logMessages(), QStringList);
00100 }
00101 inline void AQSPackager::setFilter(const QStringList &arg0)
00102 {
00103   AQ_CALL_VOID(setFilter(arg0));
00104 }
00105 inline QStringList AQSPackager::filter() const
00106 {
00107   AQ_CALL_RET_V(filter(), QStringList);
00108 }
00109 //@AQ_END_IMP_PUB_SLOTS@
00110 
00111 #endif /* AQSPACKAGER_P_H_ */
00112 // @AQOBJECT_VOID@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'