Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSHttpRequestHeader_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSHttpRequestHeader_p.h
00003  -------------------
00004  begin                : 28/04/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 AQSHTTPREQUESTHEADER_P_H_
00020 #define AQSHTTPREQUESTHEADER_P_H_
00021 
00022 #include "AQSHttpHeader_p.h"
00023 
00024 // @AQ_PTR_INDIRECTION@
00025 
00026 class AQSHttpRequestHeader : public AQSHttpHeader
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_VOID(HttpRequestHeader, HttpHeader);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   void setRequest(const QString &, const QString &, int = 1, int = 1);
00035   QString method() const;
00036   QString path() const;
00037   virtual int majorVersion() const;
00038   virtual int minorVersion() const;
00039 
00040 protected:
00041   static void *construct(const QSArgumentList &args) {
00042     QMap<int, QStringList> candidates;
00043     candidates[0].append(QString::null);
00044     candidates[2].append(QString::fromLatin1("QString,QString"));
00045     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00046     candidates[4].append(QString::fromLatin1("QString,QString,int,int"));
00047     candidates[1].append(QString::fromLatin1("QHttpRequestHeader*"));
00048     candidates[1].append(QString::fromLatin1("QString"));
00049     QString sgt(castArgsSignature(args, candidates));
00050     if (sgt.isEmpty())
00051       return new QHttpRequestHeader;
00052     if (sgt == QString::fromLatin1("QString,QString"))
00053       return new QHttpRequestHeader(*(argValue<QString *>(args[0])),
00054                                     *(argValue<QString *>(args[1])));
00055     if (sgt == QString::fromLatin1("QString,QString,int"))
00056       return new QHttpRequestHeader(*(argValue<QString *>(args[0])),
00057                                     *(argValue<QString *>(args[1])),
00058                                     args[2].variant().toInt());
00059     if (sgt == QString::fromLatin1("QString,QString,int,int"))
00060       return new QHttpRequestHeader(*(argValue<QString *>(args[0])),
00061                                     *(argValue<QString *>(args[1])),
00062                                     args[2].variant().toInt(),
00063                                     args[3].variant().toInt());
00064     if (sgt == QString::fromLatin1("QHttpRequestHeader*"))
00065       return new QHttpRequestHeader(*argValue<QHttpRequestHeader *>(args[0]));
00066     if (sgt == QString::fromLatin1("QString"))
00067       return new QHttpRequestHeader(*(argValue<QString *>(args[0])));
00068     return 0;
00069   }
00070 
00071 public:
00072   static QMap<int, QStringList> candidateConstructors() {
00073     QMap<int, QStringList> candidates;
00074     candidates[0].append(QString::null);
00075     candidates[2].append(QString::fromLatin1("QString,QString"));
00076     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00077     candidates[4].append(QString::fromLatin1("QString,QString,int,int"));
00078     candidates[1].append(QString::fromLatin1("QHttpRequestHeader*"));
00079     candidates[1].append(QString::fromLatin1("QString"));
00080     return candidates;
00081   }
00082   //@AQ_END_DEF_PUB_SLOTS@
00083 };
00084 
00085 //@AQ_BEGIN_IMP_PUB_SLOTS@
00086 inline void AQSHttpRequestHeader::setRequest(const QString &arg0,  const QString &arg1,  int arg2,  int arg3)
00087 {
00088   AQ_CALL_VOID(setRequest(arg0, arg1, arg2, arg3));
00089 }
00090 inline QString AQSHttpRequestHeader::method() const
00091 {
00092   AQ_CALL_RET_V(method(), QString);
00093 }
00094 inline QString AQSHttpRequestHeader::path() const
00095 {
00096   AQ_CALL_RET_V(path(), QString);
00097 }
00098 inline int AQSHttpRequestHeader::majorVersion() const
00099 {
00100   AQ_CALL_RET_V(majorVersion(), int);
00101 }
00102 inline int AQSHttpRequestHeader::minorVersion() const
00103 {
00104   AQ_CALL_RET_V(minorVersion(), int);
00105 }
00106 //@AQ_END_IMP_PUB_SLOTS@
00107 
00108 #endif /* AQSHTTPREQUESTHEADER_P_H_ */
00109 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'