Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSHttpHeader_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 AQSHTTPHEADER_P_H_ 00020 #define AQSHTTPHEADER_P_H_ 00021 00022 #include "AQSVoidPtr_p.h" 00023 #include <qhttp.h> 00024 00025 // @AQ_PTR_INDIRECTION@ 00026 00027 class AQSHttpHeader : public AQSVoidPtr 00028 { 00029 Q_OBJECT 00030 00031 AQ_DECLARE_AQS_VOID(HttpHeader, VoidPtr); 00032 00033 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00034 public slots: 00035 QString value(const QString &) const; 00036 void setValue(const QString &, const QString &); 00037 void removeValue(const QString &); 00038 QStringList keys() const; 00039 bool hasKey(const QString &) const; 00040 bool hasContentLength() const; 00041 uint contentLength() const; 00042 void setContentLength(int); 00043 bool hasContentType() const; 00044 QString contentType() const; 00045 void setContentType(const QString &); 00046 virtual QString toString() const; 00047 bool isValid() const; 00048 00049 protected: 00050 static void *construct(const QSArgumentList &args) { 00051 return 0; 00052 } 00053 //@AQ_END_DEF_PUB_SLOTS@ 00054 }; 00055 00056 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00057 inline QString AQSHttpHeader::value(const QString &arg0) const 00058 { 00059 AQ_CALL_RET_V(value(arg0), QString); 00060 } 00061 inline void AQSHttpHeader::setValue(const QString &arg0, const QString &arg1) 00062 { 00063 AQ_CALL_VOID(setValue(arg0, arg1)); 00064 } 00065 inline void AQSHttpHeader::removeValue(const QString &arg0) 00066 { 00067 AQ_CALL_VOID(removeValue(arg0)); 00068 } 00069 inline QStringList AQSHttpHeader::keys() const 00070 { 00071 AQ_CALL_RET_V(keys(), QStringList); 00072 } 00073 inline bool AQSHttpHeader::hasKey(const QString &arg0) const 00074 { 00075 AQ_CALL_RET_V(hasKey(arg0), bool); 00076 } 00077 inline bool AQSHttpHeader::hasContentLength() const 00078 { 00079 AQ_CALL_RET_V(hasContentLength(), bool); 00080 } 00081 inline uint AQSHttpHeader::contentLength() const 00082 { 00083 AQ_CALL_RET_V(contentLength(), uint); 00084 } 00085 inline void AQSHttpHeader::setContentLength(int arg0) 00086 { 00087 AQ_CALL_VOID(setContentLength(arg0)); 00088 } 00089 inline bool AQSHttpHeader::hasContentType() const 00090 { 00091 AQ_CALL_RET_V(hasContentType(), bool); 00092 } 00093 inline QString AQSHttpHeader::contentType() const 00094 { 00095 AQ_CALL_RET_V(contentType(), QString); 00096 } 00097 inline void AQSHttpHeader::setContentType(const QString &arg0) 00098 { 00099 AQ_CALL_VOID(setContentType(arg0)); 00100 } 00101 inline QString AQSHttpHeader::toString() const 00102 { 00103 AQ_CALL_RET_V(toString(), QString); 00104 } 00105 inline bool AQSHttpHeader::isValid() const 00106 { 00107 AQ_CALL_RET_V(isValid(), bool); 00108 } 00109 //@AQ_END_IMP_PUB_SLOTS@ 00110 00111 #endif /* AQSHTTPHEADER_P_H_ */ 00112 // @AQSVOIDPTR@