Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSDragObject_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSDragObject_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 AQSDRAGOBJECT_P_H_
00020 #define AQSDRAGOBJECT_P_H_
00021 
00022 #include "AQSObject_p.h"
00023 #include "AQSPixmap_p.h"
00024 #include <qdragobject.h>
00025 
00026 class AQSDragObject : public AQSObject
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_OBJECT(DragObject, Object);
00031 
00032 public slots:
00033   QMimeSource *mimeSource() const {
00034     return static_cast<QMimeSource *>(o_);
00035   }
00036 
00037   //@AQ_BEGIN_DEF_PUB_SLOTS@
00038 public slots:
00039   bool drag();
00040   bool dragMove();
00041   void dragCopy();
00042   void dragLink();
00043   virtual void setPixmap(QPixmap *);
00044   virtual void setPixmap(AQSPixmap *);
00045   virtual void setPixmap(QPixmap *, const QPoint &);
00046   virtual void setPixmap(AQSPixmap *, const QPoint &);
00047   QPixmap *pixmap() const;
00048   QPoint pixmapHotSpot() const;
00049   QWidget *source();
00050   virtual const char *format(int = 0) const;
00051   virtual QByteArray *encodedData(const char *) const;
00052   virtual bool provides(const char *) const;
00053   int serialNumber() const;
00054 
00055 protected:
00056   static void *construct(const QSArgumentList &args) {
00057     return 0;
00058   }
00059   //@AQ_END_DEF_PUB_SLOTS@
00060 };
00061 
00062 //@AQ_BEGIN_IMP_PUB_SLOTS@
00063 inline bool AQSDragObject::drag()
00064 {
00065   AQ_CALL_RET_V(drag(), bool);
00066 }
00067 inline bool AQSDragObject::dragMove()
00068 {
00069   AQ_CALL_RET_V(dragMove(), bool);
00070 }
00071 inline void AQSDragObject::dragCopy()
00072 {
00073   AQ_CALL_VOID(dragCopy());
00074 }
00075 inline void AQSDragObject::dragLink()
00076 {
00077   AQ_CALL_VOID(dragLink());
00078 }
00079 inline void AQSDragObject::setPixmap(QPixmap *arg0)
00080 {
00081   AQ_CALL_VOID(setPixmap(*arg0));
00082 }
00083 inline void AQSDragObject::setPixmap(AQSPixmap *arg0)
00084 {
00085   AQ_CALL_VOID(setPixmap(*arg0));
00086 }
00087 inline void AQSDragObject::setPixmap(QPixmap *arg0,  const QPoint &arg1)
00088 {
00089   AQ_CALL_VOID(setPixmap(*arg0, arg1));
00090 }
00091 inline void AQSDragObject::setPixmap(AQSPixmap *arg0,  const QPoint &arg1)
00092 {
00093   AQ_CALL_VOID(setPixmap(*arg0, arg1));
00094 }
00095 inline QPixmap *AQSDragObject::pixmap() const
00096 {
00097   AQ_CALL_RET_PTR(pixmap(), QPixmap);
00098 }
00099 inline QPoint AQSDragObject::pixmapHotSpot() const
00100 {
00101   AQ_CALL_RET_V(pixmapHotSpot(), QPoint);
00102 }
00103 inline QWidget *AQSDragObject::source()
00104 {
00105   AQ_CALL_RET(source());
00106 }
00107 inline const char *AQSDragObject::format(int arg0) const
00108 {
00109   AQ_CALL_RET(format(arg0));
00110 }
00111 inline QByteArray *AQSDragObject::encodedData(const char *arg0) const
00112 {
00113   AQ_CALL_RET_PTR(encodedData(arg0), QByteArray);
00114 }
00115 inline bool AQSDragObject::provides(const char *arg0) const
00116 {
00117   AQ_CALL_RET_V(provides(arg0), bool);
00118 }
00119 inline int AQSDragObject::serialNumber() const
00120 {
00121   AQ_CALL_RET_V(serialNumber(), int);
00122 }
00123 //@AQ_END_IMP_PUB_SLOTS@
00124 
00125 #endif /* AQSDRAGOBJECT_P_H_ */
00126 // @AQSOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'