Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSSocketNotifier_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSSocketNotifier_p.h
00003  -------------------
00004  begin                : 22/02/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 AQSSOCKETNOTIFIER_P_H_
00020 #define AQSSOCKETNOTIFIER_P_H_
00021 
00022 #include "AQSObject_p.h"
00023 #include <qsocketnotifier.h>
00024 
00025 class AQSSocketNotifier : public AQSObject
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(SocketNotifier, Object);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   int socket() const;
00034   uint type() const;
00035   bool isEnabled() const;
00036   virtual void setEnabled(bool);
00037 
00038 protected:
00039   static void *construct(const QSArgumentList &args) {
00040     QMap<int, QStringList> candidates;
00041     candidates[2].append(QString::fromLatin1("int,QSocketNotifier::Type"));
00042     candidates[3].append(QString::fromLatin1("int,QSocketNotifier::Type,QObject*"));
00043     candidates[4].append(QString::fromLatin1("int,QSocketNotifier::Type,QObject*,QString"));
00044     QString sgt(castArgsSignature(args, candidates));
00045     if (sgt == QString::fromLatin1("int,QSocketNotifier::Type"))
00046       return new QSocketNotifier(args[0].variant().toInt(),
00047                                  static_cast<QSocketNotifier::Type>(args[1].variant().toUInt()));
00048     if (sgt == QString::fromLatin1("int,QSocketNotifier::Type,QObject*"))
00049       return new QSocketNotifier(args[0].variant().toInt(),
00050                                  static_cast<QSocketNotifier::Type>(args[1].variant().toUInt()),
00051                                  argValue<QObject *>(args[2]));
00052     if (sgt == QString::fromLatin1("int,QSocketNotifier::Type,QObject*,QString"))
00053       return new QSocketNotifier(args[0].variant().toInt(),
00054                                  static_cast<QSocketNotifier::Type>(args[1].variant().toUInt()),
00055                                  argValue<QObject *>(args[2]),
00056                                  *(argValue<QString *>(args[3])));
00057     return 0;
00058   }
00059 
00060 public:
00061   static QMap<int, QStringList> candidateConstructors() {
00062     QMap<int, QStringList> candidates;
00063     candidates[2].append(QString::fromLatin1("int,QSocketNotifier::Type"));
00064     candidates[3].append(QString::fromLatin1("int,QSocketNotifier::Type,QObject*"));
00065     candidates[4].append(QString::fromLatin1("int,QSocketNotifier::Type,QObject*,QString"));
00066     return candidates;
00067   }
00068   //@AQ_END_DEF_PUB_SLOTS@
00069 };
00070 
00071 //@AQ_BEGIN_IMP_PUB_SLOTS@
00072 inline int AQSSocketNotifier::socket() const
00073 {
00074   AQ_CALL_RET_V(socket(), int);
00075 }
00076 inline uint AQSSocketNotifier::type() const
00077 {
00078   AQ_CALL_RET_V(type(), uint);
00079 }
00080 inline bool AQSSocketNotifier::isEnabled() const
00081 {
00082   AQ_CALL_RET_V(isEnabled(), bool);
00083 }
00084 inline void AQSSocketNotifier::setEnabled(bool arg0)
00085 {
00086   AQ_CALL_VOID(setEnabled(arg0));
00087 }
00088 //@AQ_END_IMP_PUB_SLOTS@
00089 
00090 #endif /* AQSSOCKETNOTIFIER_P_H_ */
00091 // @AQSOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'