kradio4  r778
station-drag-object.h
Go to the documentation of this file.
1 /***************************************************************************
2  station-drag-object.h - description
3  -------------------
4  begin : Sun Aug 28 2005
5  copyright : (C) 2005 by Martin Witte
6  email : emw-kradio@nocabal.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KRADIO_STATION_DRAG_OBJECT_H
19 #define KRADIO_STATION_DRAG_OBJECT_H
20 
21 #ifdef KRADIO_ENABLE_FIXMES
22  #warning "Port drag&drop to QT4"
23 #endif
24 #include <Qt3Support/Q3DragObject>
25 
26 #include <kdemacros.h>
27 
28 class KDE_EXPORT StationDragObject : public Q3StoredDrag
29 {
30 public:
31  StationDragObject(const QStringList &stationIDs, QWidget *dragSource = NULL, const char * name = NULL);
32  StationDragObject(QWidget *dragSource = NULL, const char * name = NULL);
33  virtual ~StationDragObject();
34 
35  const char *format(int i = 0) const;
36 
37  void setStations(const QStringList &stationIDs);
38 
39  static bool canDecode (const QMimeSource *e);
40  static bool decode (const QMimeSource *e, QStringList &stationIDs);
41 };
42 
43 #endif
44