kdgantt1
KDGanttViewItemDrag.h
Go to the documentation of this file.00001 00002 /**************************************************************************** 00003 ** Copyright (C) 2001-2004 Klarälvdalens Datakonsult AB. All rights reserved. 00004 ** 00005 ** This file is part of the KDGantt library. 00006 ** 00007 ** This file may be used under the terms of the GNU General Public 00008 ** License versions 2.0 or 3.0 as published by the Free Software 00009 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 00010 ** included in the packaging of this file. Alternatively you may (at 00011 ** your option) use any later version of the GNU General Public 00012 ** License if such license has been publicly approved by 00013 ** Klarälvdalens Datakonsult AB (or its successors, if any). 00014 ** 00015 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, 00016 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR 00017 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights 00018 ** not expressly granted herein. 00019 ** 00020 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00021 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00022 ** 00023 ** As a special exception, permission is given to link this program 00024 ** with any edition of Qt, and distribute the resulting executable, 00025 ** without including the source code for Qt in the source distribution. 00026 ** 00027 **********************************************************************/ 00028 00029 00030 #ifndef KDGANTTVIEWITEMDRAG_H 00031 #define KDGANTTVIEWITEMDRAG_H 00032 00033 #include <QWidget> 00034 00035 #include "kdgantt_qt3_compat.h" 00036 00037 class KDGanttViewItem; 00038 00039 class KDGanttViewItemDrag :public QStoredDrag 00040 { 00041 public: 00042 KDGanttViewItemDrag(KDGanttViewItem* item, QWidget *source, const char * name ) ; 00043 00044 QByteArray encodedData( const char * c) const; 00045 KDGanttViewItem* getItem(); 00046 static bool canDecode ( const QMimeSource * e ); 00047 static bool decode ( const QMimeSource * e, QString & ); 00048 protected: 00049 00050 private: 00051 QByteArray array; 00052 KDGanttViewItem* myItem; 00053 }; 00054 00055 #endif // KDGANTTVIEWITEMDRAG_H
KDE 4.2 API Reference