Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSUrlInfo_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSUrlInfo_p.h
00003  -------------------
00004  begin                : 07/11/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 AQSURLINFO_P_H_
00020 #define AQSURLINFO_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include <qurlinfo.h>
00024 
00025 // @AQ_PTR_INDIRECTION@
00026 
00027 class AQSUrlInfo : public AQSVoidPtr
00028 {
00029   Q_OBJECT
00030 
00031   AQ_DECLARE_AQS_VOID(UrlInfo, VoidPtr);
00032 
00033 protected:
00034   void specializedInternalFinish() {
00035     if (!wrap_)
00036       delete o_;
00037   }
00038 
00039   //@AQ_BEGIN_DEF_PUB_SLOTS@
00040 public slots:
00041   virtual void setName(const QString &);
00042   virtual void setDir(bool);
00043   virtual void setFile(bool);
00044   virtual void setSymLink(bool);
00045   virtual void setOwner(const QString &);
00046   virtual void setGroup(const QString &);
00047   virtual void setSize(uint);
00048   virtual void setWritable(bool);
00049   virtual void setReadable(bool);
00050   virtual void setPermissions(int);
00051   virtual void setLastModified(const QDateTime &);
00052   bool isValid() const;
00053   QString name() const;
00054   int permissions() const;
00055   QString owner() const;
00056   QString group() const;
00057   uint size() const;
00058   QDateTime lastModified() const;
00059   QDateTime lastRead() const;
00060   bool isDir() const;
00061   bool isFile() const;
00062   bool isSymLink() const;
00063   bool isWritable() const;
00064   bool isReadable() const;
00065   bool isExecutable() const;
00066 
00067 protected:
00068   static void *construct(const QSArgumentList &args) {
00069     QMap<int, QStringList> candidates;
00070     candidates[0].append(QString::null);
00071     candidates[2].append(QString::fromLatin1("QUrlOperator,QString"));
00072     candidates[1].append(QString::fromLatin1("QUrlInfo"));
00073     candidates[13].append(QString::fromLatin1("QString,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"));
00074     candidates[13].append(QString::fromLatin1("QUrl*,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"));
00075     QString sgt(castArgsSignature(args, candidates));
00076     if (sgt.isEmpty())
00077       return new QUrlInfo;
00078     if (sgt == QString::fromLatin1("QUrlOperator,QString"))
00079       return new QUrlInfo(*(argValue<QUrlOperator *>(args[0])),
00080                           *(argValue<QString *>(args[1])));
00081     if (sgt == QString::fromLatin1("QUrlInfo"))
00082       return new QUrlInfo(*(argValue<QUrlInfo *>(args[0])));
00083     if (sgt == QString::fromLatin1("QString,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"))
00084       return new QUrlInfo(*(argValue<QString *>(args[0])),
00085                           args[1].variant().toInt(),
00086                           *(argValue<QString *>(args[2])),
00087                           *(argValue<QString *>(args[3])),
00088                           args[4].variant().toUInt(),
00089                           *(argValue<QDateTime *>(args[5])),
00090                           *(argValue<QDateTime *>(args[6])),
00091                           args[7].variant().toBool(),
00092                           args[8].variant().toBool(),
00093                           args[9].variant().toBool(),
00094                           args[10].variant().toBool(),
00095                           args[11].variant().toBool(),
00096                           args[12].variant().toBool());
00097     if (sgt == QString::fromLatin1("QUrl*,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"))
00098       return new QUrlInfo(*argValue<QUrl *>(args[0]),
00099                           args[1].variant().toInt(),
00100                           *(argValue<QString *>(args[2])),
00101                           *(argValue<QString *>(args[3])),
00102                           args[4].variant().toUInt(),
00103                           *(argValue<QDateTime *>(args[5])),
00104                           *(argValue<QDateTime *>(args[6])),
00105                           args[7].variant().toBool(),
00106                           args[8].variant().toBool(),
00107                           args[9].variant().toBool(),
00108                           args[10].variant().toBool(),
00109                           args[11].variant().toBool(),
00110                           args[12].variant().toBool());
00111     return 0;
00112   }
00113 
00114 public:
00115   static QMap<int, QStringList> candidateConstructors() {
00116     QMap<int, QStringList> candidates;
00117     candidates[0].append(QString::null);
00118     candidates[2].append(QString::fromLatin1("QUrlOperator,QString"));
00119     candidates[1].append(QString::fromLatin1("QUrlInfo"));
00120     candidates[13].append(QString::fromLatin1("QString,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"));
00121     candidates[13].append(QString::fromLatin1("QUrl*,int,QString,QString,uint,QDateTime,QDateTime,bool,bool,bool,bool,bool,bool"));
00122     return candidates;
00123   }
00124   //@AQ_END_DEF_PUB_SLOTS@
00125 };
00126 
00127 //@AQ_BEGIN_IMP_PUB_SLOTS@
00128 inline void AQSUrlInfo::setName(const QString &arg0)
00129 {
00130   AQ_CALL_VOID(setName(arg0));
00131 }
00132 inline void AQSUrlInfo::setDir(bool arg0)
00133 {
00134   AQ_CALL_VOID(setDir(arg0));
00135 }
00136 inline void AQSUrlInfo::setFile(bool arg0)
00137 {
00138   AQ_CALL_VOID(setFile(arg0));
00139 }
00140 inline void AQSUrlInfo::setSymLink(bool arg0)
00141 {
00142   AQ_CALL_VOID(setSymLink(arg0));
00143 }
00144 inline void AQSUrlInfo::setOwner(const QString &arg0)
00145 {
00146   AQ_CALL_VOID(setOwner(arg0));
00147 }
00148 inline void AQSUrlInfo::setGroup(const QString &arg0)
00149 {
00150   AQ_CALL_VOID(setGroup(arg0));
00151 }
00152 inline void AQSUrlInfo::setSize(uint arg0)
00153 {
00154   AQ_CALL_VOID(setSize(arg0));
00155 }
00156 inline void AQSUrlInfo::setWritable(bool arg0)
00157 {
00158   AQ_CALL_VOID(setWritable(arg0));
00159 }
00160 inline void AQSUrlInfo::setReadable(bool arg0)
00161 {
00162   AQ_CALL_VOID(setReadable(arg0));
00163 }
00164 inline void AQSUrlInfo::setPermissions(int arg0)
00165 {
00166   AQ_CALL_VOID(setPermissions(arg0));
00167 }
00168 inline void AQSUrlInfo::setLastModified(const QDateTime &arg0)
00169 {
00170   AQ_CALL_VOID(setLastModified(arg0));
00171 }
00172 inline bool AQSUrlInfo::isValid() const
00173 {
00174   AQ_CALL_RET_V(isValid(), bool);
00175 }
00176 inline QString AQSUrlInfo::name() const
00177 {
00178   AQ_CALL_RET_V(name(), QString);
00179 }
00180 inline int AQSUrlInfo::permissions() const
00181 {
00182   AQ_CALL_RET_V(permissions(), int);
00183 }
00184 inline QString AQSUrlInfo::owner() const
00185 {
00186   AQ_CALL_RET_V(owner(), QString);
00187 }
00188 inline QString AQSUrlInfo::group() const
00189 {
00190   AQ_CALL_RET_V(group(), QString);
00191 }
00192 inline uint AQSUrlInfo::size() const
00193 {
00194   AQ_CALL_RET_V(size(), uint);
00195 }
00196 inline QDateTime AQSUrlInfo::lastModified() const
00197 {
00198   AQ_CALL_RET_V(lastModified(), QDateTime);
00199 }
00200 inline QDateTime AQSUrlInfo::lastRead() const
00201 {
00202   AQ_CALL_RET_V(lastRead(), QDateTime);
00203 }
00204 inline bool AQSUrlInfo::isDir() const
00205 {
00206   AQ_CALL_RET_V(isDir(), bool);
00207 }
00208 inline bool AQSUrlInfo::isFile() const
00209 {
00210   AQ_CALL_RET_V(isFile(), bool);
00211 }
00212 inline bool AQSUrlInfo::isSymLink() const
00213 {
00214   AQ_CALL_RET_V(isSymLink(), bool);
00215 }
00216 inline bool AQSUrlInfo::isWritable() const
00217 {
00218   AQ_CALL_RET_V(isWritable(), bool);
00219 }
00220 inline bool AQSUrlInfo::isReadable() const
00221 {
00222   AQ_CALL_RET_V(isReadable(), bool);
00223 }
00224 inline bool AQSUrlInfo::isExecutable() const
00225 {
00226   AQ_CALL_RET_V(isExecutable(), bool);
00227 }
00228 //@AQ_END_IMP_PUB_SLOTS@
00229 
00230 #endif /* AQSURLINFO_P_H_ */
00231 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'