Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSUrl_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSUrl_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 AQSURL_P_H_
00020 #define AQSURL_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include <qurl.h>
00024 
00025 // @AQ_PTR_INDIRECTION@
00026 
00027 class AQSUrl : public AQSVoidPtr
00028 {
00029   Q_OBJECT
00030 
00031   AQ_DECLARE_AQS_VOID(Url, 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   QString protocol() const;
00042   virtual void setProtocol(const QString &);
00043   QString user() const;
00044   virtual void setUser(const QString &);
00045   bool hasUser() const;
00046   QString password() const;
00047   virtual void setPassword(const QString &);
00048   bool hasPassword() const;
00049   QString host() const;
00050   virtual void setHost(const QString &);
00051   bool hasHost() const;
00052   int port() const;
00053   virtual void setPort(int);
00054   bool hasPort() const;
00055   QString path(bool = TRUE) const;
00056   virtual void setPath(const QString &);
00057   bool hasPath() const;
00058   virtual void setEncodedPathAndQuery(const QString &);
00059   QString encodedPathAndQuery();
00060   virtual void setQuery(const QString &);
00061   QString query() const;
00062   QString ref() const;
00063   virtual void setRef(const QString &);
00064   bool hasRef() const;
00065   bool isValid() const;
00066   bool isLocalFile() const;
00067   virtual void addPath(const QString &);
00068   virtual void setFileName(const QString &);
00069   QString fileName() const;
00070   QString dirPath() const;
00071   virtual QString toString(bool = FALSE, bool = TRUE) const;
00072   virtual bool cdUp();
00073 
00074 protected:
00075   static void *construct(const QSArgumentList &args) {
00076     QMap<int, QStringList> candidates;
00077     candidates[0].append(QString::null);
00078     candidates[1].append(QString::fromLatin1("QString"));
00079     candidates[1].append(QString::fromLatin1("QUrl*"));
00080     candidates[2].append(QString::fromLatin1("QUrl*,QString"));
00081     candidates[3].append(QString::fromLatin1("QUrl*,QString,bool"));
00082     QString sgt(castArgsSignature(args, candidates));
00083     if (sgt.isEmpty())
00084       return new QUrl;
00085     if (sgt == QString::fromLatin1("QString"))
00086       return new QUrl(*(argValue<QString *>(args[0])));
00087     if (sgt == QString::fromLatin1("QUrl*"))
00088       return new QUrl(*argValue<QUrl *>(args[0]));
00089     if (sgt == QString::fromLatin1("QUrl*,QString"))
00090       return new QUrl(*argValue<QUrl *>(args[0]),
00091                       *(argValue<QString *>(args[1])));
00092     if (sgt == QString::fromLatin1("QUrl*,QString,bool"))
00093       return new QUrl(*argValue<QUrl *>(args[0]),
00094                       *(argValue<QString *>(args[1])),
00095                       args[2].variant().toBool());
00096     return 0;
00097   }
00098 
00099 public:
00100   static QMap<int, QStringList> candidateConstructors() {
00101     QMap<int, QStringList> candidates;
00102     candidates[0].append(QString::null);
00103     candidates[1].append(QString::fromLatin1("QString"));
00104     candidates[1].append(QString::fromLatin1("QUrl*"));
00105     candidates[2].append(QString::fromLatin1("QUrl*,QString"));
00106     candidates[3].append(QString::fromLatin1("QUrl*,QString,bool"));
00107     return candidates;
00108   }
00109   //@AQ_END_DEF_PUB_SLOTS@
00110 };
00111 
00112 //@AQ_BEGIN_IMP_PUB_SLOTS@
00113 inline QString AQSUrl::protocol() const
00114 {
00115   AQ_CALL_RET_V(protocol(), QString);
00116 }
00117 inline void AQSUrl::setProtocol(const QString &arg0)
00118 {
00119   AQ_CALL_VOID(setProtocol(arg0));
00120 }
00121 inline QString AQSUrl::user() const
00122 {
00123   AQ_CALL_RET_V(user(), QString);
00124 }
00125 inline void AQSUrl::setUser(const QString &arg0)
00126 {
00127   AQ_CALL_VOID(setUser(arg0));
00128 }
00129 inline bool AQSUrl::hasUser() const
00130 {
00131   AQ_CALL_RET_V(hasUser(), bool);
00132 }
00133 inline QString AQSUrl::password() const
00134 {
00135   AQ_CALL_RET_V(password(), QString);
00136 }
00137 inline void AQSUrl::setPassword(const QString &arg0)
00138 {
00139   AQ_CALL_VOID(setPassword(arg0));
00140 }
00141 inline bool AQSUrl::hasPassword() const
00142 {
00143   AQ_CALL_RET_V(hasPassword(), bool);
00144 }
00145 inline QString AQSUrl::host() const
00146 {
00147   AQ_CALL_RET_V(host(), QString);
00148 }
00149 inline void AQSUrl::setHost(const QString &arg0)
00150 {
00151   AQ_CALL_VOID(setHost(arg0));
00152 }
00153 inline bool AQSUrl::hasHost() const
00154 {
00155   AQ_CALL_RET_V(hasHost(), bool);
00156 }
00157 inline int AQSUrl::port() const
00158 {
00159   AQ_CALL_RET_V(port(), int);
00160 }
00161 inline void AQSUrl::setPort(int arg0)
00162 {
00163   AQ_CALL_VOID(setPort(arg0));
00164 }
00165 inline bool AQSUrl::hasPort() const
00166 {
00167   AQ_CALL_RET_V(hasPort(), bool);
00168 }
00169 inline QString AQSUrl::path(bool arg0) const
00170 {
00171   AQ_CALL_RET_V(path(arg0), QString);
00172 }
00173 inline void AQSUrl::setPath(const QString &arg0)
00174 {
00175   AQ_CALL_VOID(setPath(arg0));
00176 }
00177 inline bool AQSUrl::hasPath() const
00178 {
00179   AQ_CALL_RET_V(hasPath(), bool);
00180 }
00181 inline void AQSUrl::setEncodedPathAndQuery(const QString &arg0)
00182 {
00183   AQ_CALL_VOID(setEncodedPathAndQuery(arg0));
00184 }
00185 inline QString AQSUrl::encodedPathAndQuery()
00186 {
00187   AQ_CALL_RET_V(encodedPathAndQuery(), QString);
00188 }
00189 inline void AQSUrl::setQuery(const QString &arg0)
00190 {
00191   AQ_CALL_VOID(setQuery(arg0));
00192 }
00193 inline QString AQSUrl::query() const
00194 {
00195   AQ_CALL_RET_V(query(), QString);
00196 }
00197 inline QString AQSUrl::ref() const
00198 {
00199   AQ_CALL_RET_V(ref(), QString);
00200 }
00201 inline void AQSUrl::setRef(const QString &arg0)
00202 {
00203   AQ_CALL_VOID(setRef(arg0));
00204 }
00205 inline bool AQSUrl::hasRef() const
00206 {
00207   AQ_CALL_RET_V(hasRef(), bool);
00208 }
00209 inline bool AQSUrl::isValid() const
00210 {
00211   AQ_CALL_RET_V(isValid(), bool);
00212 }
00213 inline bool AQSUrl::isLocalFile() const
00214 {
00215   AQ_CALL_RET_V(isLocalFile(), bool);
00216 }
00217 inline void AQSUrl::addPath(const QString &arg0)
00218 {
00219   AQ_CALL_VOID(addPath(arg0));
00220 }
00221 inline void AQSUrl::setFileName(const QString &arg0)
00222 {
00223   AQ_CALL_VOID(setFileName(arg0));
00224 }
00225 inline QString AQSUrl::fileName() const
00226 {
00227   AQ_CALL_RET_V(fileName(), QString);
00228 }
00229 inline QString AQSUrl::dirPath() const
00230 {
00231   AQ_CALL_RET_V(dirPath(), QString);
00232 }
00233 inline QString AQSUrl::toString(bool arg0,  bool arg1) const
00234 {
00235   AQ_CALL_RET_V(toString(arg0, arg1), QString);
00236 }
00237 inline bool AQSUrl::cdUp()
00238 {
00239   AQ_CALL_RET_V(cdUp(), bool);
00240 }
00241 //@AQ_END_IMP_PUB_SLOTS@
00242 
00243 #endif /* AQSURL_P_H_ */
00244 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'