Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSDropEvent_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSDropEvent_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 AQSDROPEVENT_P_H_
00020 #define AQSDROPEVENT_P_H_
00021 
00022 #include "AQSEvent_p.h"
00023 #include <qevent.h>
00024 
00025 class AQSDropEvent : public AQSEvent
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(DropEvent, Event);
00030 
00031 public slots:
00032   QMimeSource *mimeSource() const {
00033     return static_cast<QMimeSource *>(o_);
00034   }
00035 
00036   //@AQ_BEGIN_DEF_PUB_SLOTS@
00037 public slots:
00038   QPoint pos() const;
00039   bool isAccepted() const;
00040   void accept(bool = TRUE);
00041   void ignore();
00042   bool isActionAccepted() const;
00043   void acceptAction(bool = TRUE);
00044   void setAction(uint);
00045   uint action() const;
00046   QWidget *source() const;
00047   virtual const char *format(int = 0) const;
00048   virtual QByteArray *encodedData(const char *) const;
00049   virtual bool provides(const char *) const;
00050   void setPoint(const QPoint &);
00051 
00052 protected:
00053   static void *construct(const QSArgumentList &args) {
00054     QMap<int, QStringList> candidates;
00055     candidates[1].append(QString::fromLatin1("QPoint"));
00056     candidates[2].append(QString::fromLatin1("QPoint,QEvent::Type"));
00057     QString sgt(castArgsSignature(args, candidates));
00058     if (sgt == QString::fromLatin1("QPoint"))
00059       return new QDropEvent(*(argValue<QPoint *>(args[0])));
00060     if (sgt == QString::fromLatin1("QPoint,QEvent::Type"))
00061       return new QDropEvent(*(argValue<QPoint *>(args[0])),
00062                             static_cast<QEvent::Type>(args[1].variant().toUInt()));
00063     return 0;
00064   }
00065 
00066 public:
00067   static QMap<int, QStringList> candidateConstructors() {
00068     QMap<int, QStringList> candidates;
00069     candidates[1].append(QString::fromLatin1("QPoint"));
00070     candidates[2].append(QString::fromLatin1("QPoint,QEvent::Type"));
00071     return candidates;
00072   }
00073   //@AQ_END_DEF_PUB_SLOTS@
00074 };
00075 
00076 //@AQ_BEGIN_IMP_PUB_SLOTS@
00077 inline QPoint AQSDropEvent::pos() const
00078 {
00079   AQ_CALL_RET_V(pos(), QPoint);
00080 }
00081 inline bool AQSDropEvent::isAccepted() const
00082 {
00083   AQ_CALL_RET_V(isAccepted(), bool);
00084 }
00085 inline void AQSDropEvent::accept(bool arg0)
00086 {
00087   AQ_CALL_VOID(accept(arg0));
00088 }
00089 inline void AQSDropEvent::ignore()
00090 {
00091   AQ_CALL_VOID(ignore());
00092 }
00093 inline bool AQSDropEvent::isActionAccepted() const
00094 {
00095   AQ_CALL_RET_V(isActionAccepted(), bool);
00096 }
00097 inline void AQSDropEvent::acceptAction(bool arg0)
00098 {
00099   AQ_CALL_VOID(acceptAction(arg0));
00100 }
00101 inline void AQSDropEvent::setAction(uint arg0)
00102 {
00103   AQ_CALL_VOID(setAction(static_cast<QDropEvent::Action>(arg0)));
00104 }
00105 inline uint AQSDropEvent::action() const
00106 {
00107   AQ_CALL_RET_V(action(), uint);
00108 }
00109 inline QWidget *AQSDropEvent::source() const
00110 {
00111   AQ_CALL_RET(source());
00112 }
00113 inline const char *AQSDropEvent::format(int arg0) const
00114 {
00115   AQ_CALL_RET(format(arg0));
00116 }
00117 inline QByteArray *AQSDropEvent::encodedData(const char *arg0) const
00118 {
00119   AQ_CALL_RET_PTR(encodedData(arg0), QByteArray);
00120 }
00121 inline bool AQSDropEvent::provides(const char *arg0) const
00122 {
00123   AQ_CALL_RET_V(provides(arg0), bool);
00124 }
00125 inline void AQSDropEvent::setPoint(const QPoint &arg0)
00126 {
00127   AQ_CALL_VOID(setPoint(arg0));
00128 }
00129 //@AQ_END_IMP_PUB_SLOTS@
00130 
00131 #endif /* AQSDROPEVENT_P_H_ */
00132 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'