summaryrefslogtreecommitdiffstats
path: root/ksysv/ksvdrag.h
blob: ac2c3681279112e6ae8e3b358261653871c0613c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// (c) 2000 Peter Putzer

#ifndef KSVDRAG_H
#define KSVDRAG_H

#include <tqdragobject.h>

class KSVData;
class KSVItem;
class TQWidget;

class KSVDrag : public TQDragObject
{
  TQ_OBJECT
  

public:
  KSVDrag (const KSVData& item, TQWidget* dragSource = 0L, const char* name = 0L);
  KSVDrag (const KSVItem& item, TQWidget* dragSource = 0L, const char* name = 0L);
  virtual ~KSVDrag();

  virtual const char* format (int i) const;
  TQByteArray encodedData (const char*) const;
  
  static bool decodeNative (const TQMimeSource*, KSVData&);
  
private:
  enum
  {
	Native, Text, URL
  };

  class Private;
  Private* d;
};

#endif // KSVDRAG_H