kradio4 r778
|
00001 /*************************************************************************** 00002 station-drag-object.h - description 00003 ------------------- 00004 begin : Sun Aug 28 2005 00005 copyright : (C) 2005 by Martin Witte 00006 email : emw-kradio@nocabal.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KRADIO_STATION_DRAG_OBJECT_H 00019 #define KRADIO_STATION_DRAG_OBJECT_H 00020 00021 #ifdef KRADIO_ENABLE_FIXMES 00022 #warning "Port drag&drop to QT4" 00023 #endif 00024 #include <Qt3Support/Q3DragObject> 00025 00026 #include <kdemacros.h> 00027 00028 class KDE_EXPORT StationDragObject : public Q3StoredDrag 00029 { 00030 public: 00031 StationDragObject(const QStringList &stationIDs, QWidget *dragSource = NULL, const char * name = NULL); 00032 StationDragObject(QWidget *dragSource = NULL, const char * name = NULL); 00033 virtual ~StationDragObject(); 00034 00035 const char *format(int i = 0) const; 00036 00037 void setStations(const QStringList &stationIDs); 00038 00039 static bool canDecode (const QMimeSource *e); 00040 static bool decode (const QMimeSource *e, QStringList &stationIDs); 00041 }; 00042 00043 #endif 00044