Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSIconDragItem_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 AQSICONDRAGITEM_P_H_ 00020 #define AQSICONDRAGITEM_P_H_ 00021 00022 #include "AQSVoidPtr_p.h" 00023 #include "AQSByteArray_p.h" 00024 #include <qiconview.h> 00025 00026 // @AQ_PTR_INDIRECTION@ 00027 00028 class AQSIconDragItem : public AQSVoidPtr 00029 { 00030 Q_OBJECT 00031 00032 AQ_DECLARE_AQS_VOID(IconDragItem, VoidPtr); 00033 00034 protected: 00035 void specializedInternalFinish() { 00036 if (!wrap_) 00037 delete o_; 00038 } 00039 00040 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00041 public slots: 00042 virtual QByteArray *data() const; 00043 virtual void setData(QByteArray *); 00044 virtual void setData(AQSByteArray *); 00045 00046 protected: 00047 static void *construct(const QSArgumentList &args) { 00048 QMap<int, QStringList> candidates; 00049 candidates[0].append(QString::null); 00050 QString sgt(castArgsSignature(args, candidates)); 00051 if (sgt.isEmpty()) 00052 return new QIconDragItem; 00053 return 0; 00054 } 00055 00056 public: 00057 static QMap<int, QStringList> candidateConstructors() { 00058 QMap<int, QStringList> candidates; 00059 candidates[0].append(QString::null); 00060 return candidates; 00061 } 00062 //@AQ_END_DEF_PUB_SLOTS@ 00063 }; 00064 00065 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00066 inline QByteArray *AQSIconDragItem::data() const 00067 { 00068 AQ_CALL_RET_PTR(data(), QByteArray); 00069 } 00070 inline void AQSIconDragItem::setData(QByteArray *arg0) 00071 { 00072 AQ_CALL_VOID(setData(*arg0)); 00073 } 00074 inline void AQSIconDragItem::setData(AQSByteArray *arg0) 00075 { 00076 AQ_CALL_VOID(setData(*arg0)); 00077 } 00078 //@AQ_END_IMP_PUB_SLOTS@ 00079 00080 #endif /* AQSICONDRAGITEM_P_H_ */ 00081 // @AQSVOIDPTR@