kdgantt

KDGanttViewItemDrag.h

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 distributed and/or modified under the terms of the
00008  ** GNU General Public License version 2 as published by the Free Software
00009  ** Foundation and appearing in the file LICENSE.GPL included in the
00010  ** packaging of this file.
00011  **
00012  ** Licensees holding valid commercial KDGantt licenses may use this file in
00013  ** accordance with the KDGantt Commercial License Agreement provided with
00014  ** the Software.
00015  **
00016  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00017  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018  **
00019  ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
00020  **   information about KDGantt Commercial License Agreements.
00021  **
00022  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
00023  ** licensing are not clear to you.
00024  **
00025  ** As a special exception, permission is given to link this program
00026  ** with any edition of Qt, and distribute the resulting executable,
00027  ** without including the source code for Qt in the source distribution.
00028  **
00029  **********************************************************************/
00030 
00031 
00032 #ifndef KDGANTTVIEWITEMGRAG_H
00033 #define KDGANTTVIEWITEMGRAG_H
00034 
00035 #include <qwidget.h>
00036 #include <qcstring.h>
00037 #include <qdragobject.h>
00038 
00039 
00040 class KDGanttViewItem;
00041 
00042 class KDGanttViewItemDrag :public QStoredDrag
00043 {
00044 public:
00045   KDGanttViewItemDrag(KDGanttViewItem* item, QWidget *source,  const char * name  ) ;
00046 
00047   QByteArray encodedData( const char * c) const;
00048   KDGanttViewItem* getItem();
00049   static bool canDecode ( const QMimeSource * e );
00050   static bool decode ( const QMimeSource * e, QString & );
00051 protected:
00052   
00053 private:
00054   QByteArray array;
00055   KDGanttViewItem* myItem;
00056 };
00057 
00058 
00059 
00060 
00061 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys