25 #ifndef AKREGATOR_DRAGOBJECTS_H
26 #define AKREGATOR_DRAGOBJECTS_H
34 #include <tqvaluelist.h>
36 #include <tqcstring.h>
42 struct ArticleDragItem
48 class ArticleDrag : public KURLDrag
53 ArticleDrag( const TQValueList<Article>& articles, TQWidget* dragSource=0, const char* name=0);
55 static bool canDecode( const TQMimeSource* e);
56 static bool decode( const TQMimeSource* e, TQValueList<ArticleDragItem>& articles);
60 virtual TQByteArray encodedData( const char* mime) const;
61 virtual const char* format( int i) const;
65 static TQValueList<ArticleDragItem> articlesToDragItems( const TQValueList<Article>& articles);
66 static KURL::List articleURLs( const TQValueList<Article>& articles);
67 TQValueList<ArticleDragItem> m_items;
|