Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSStoredDrag_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSStoredDrag_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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSSTOREDDRAG_P_H_
00020 #define AQSSTOREDDRAG_P_H_
00021 
00022 #include "AQSDragObject_p.h"
00023 
00024 class AQSStoredDrag : public AQSDragObject
00025 {
00026   Q_OBJECT
00027 
00028   AQ_DECLARE_AQS_OBJECT(StoredDrag, DragObject);
00029 
00030   //@AQ_BEGIN_DEF_PUB_SLOTS@
00031 public slots:
00032   virtual void setEncodedData(QByteArray *);
00033   virtual void setEncodedData(AQSByteArray *);
00034   virtual QByteArray *encodedData(const char *) const;
00035 
00036 protected:
00037   static void *construct(const QSArgumentList &args) {
00038     QMap<int, QStringList> candidates;
00039     candidates[1].append(QString::fromLatin1("QString"));
00040     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00041     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00042     QString sgt(castArgsSignature(args, candidates));
00043     if (sgt == QString::fromLatin1("QString"))
00044       return new QStoredDrag(*(argValue<QString *>(args[0])));
00045     if (sgt == QString::fromLatin1("QString,QWidget*"))
00046       return new QStoredDrag(*(argValue<QString *>(args[0])),
00047                              argValue<QWidget *>(args[1]));
00048     if (sgt == QString::fromLatin1("QString,QWidget*,QString"))
00049       return new QStoredDrag(*(argValue<QString *>(args[0])),
00050                              argValue<QWidget *>(args[1]),
00051                              *(argValue<QString *>(args[2])));
00052     return 0;
00053   }
00054 
00055 public:
00056   static QMap<int, QStringList> candidateConstructors() {
00057     QMap<int, QStringList> candidates;
00058     candidates[1].append(QString::fromLatin1("QString"));
00059     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00060     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00061     return candidates;
00062   }
00063   //@AQ_END_DEF_PUB_SLOTS@
00064 };
00065 
00066 //@AQ_BEGIN_IMP_PUB_SLOTS@
00067 inline void AQSStoredDrag::setEncodedData(QByteArray *arg0)
00068 {
00069   AQ_CALL_VOID(setEncodedData(*arg0));
00070 }
00071 inline void AQSStoredDrag::setEncodedData(AQSByteArray *arg0)
00072 {
00073   AQ_CALL_VOID(setEncodedData(*arg0));
00074 }
00075 inline QByteArray *AQSStoredDrag::encodedData(const char *arg0) const
00076 {
00077   AQ_CALL_RET_PTR(encodedData(arg0), QByteArray);
00078 }
00079 //@AQ_END_IMP_PUB_SLOTS@
00080 
00081 #endif /* AQSSTOREDDRAG_P_H_ */
00082 // @AQSOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'