Ignore:
Timestamp:
Dec 26, 2009, 2:14:18 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: QPMMime: Adding more DND support code, fixing the build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qmime.h

    r439 r441  
    115115*/
    116116
    117 typedef unsigned long ULONG;
     117#if !defined(QT_NO_DRAGANDDROP)
     118QT_END_NAMESPACE
     119#include "private/qpmobjectwindow_pm_p.h"
     120QT_BEGIN_NAMESPACE
     121#endif
    118122
    119123class QPMCoopDragWorker;
     
    125129#if !defined(QT_NO_DRAGANDDROP)
    126130
     131    typedef QList<QByteArray> QByteArrayList;
     132
    127133    class DragWorker
    128134    {
    129135    public:
    130         DragWorker() : data(0) {}
     136        DragWorker() : src(0) {}
    131137        virtual ~DragWorker() {}
    132138
     
    177183        {
    178184        public:
    179             virtual const char *format( const char *drf ) const = 0;
     185            virtual const QString &format(const char *drf) const = 0;
    180186            virtual bool provide(const char *drf, const QByteArray &allData,
    181187                                 ULONG itemIndex, QByteArray &itemData) = 0;
     
    246252
    247253        static bool canRender(DRAGITEM *item, const char *drf );
    248         static bool getSupportedRMFs(DRAGITEM *item, QPtrList<QStrList> &list);
     254        static bool getSupportedRMFs(DRAGITEM *item, QList<QByteArrayList> &list);
    249255
    250256    private:
     
    297303    static QByteArray querySourceNameFull(DRAGITEM *item);
    298304    static bool canTargetRenderAsOS2File(DRAGITEM *item, QByteArray *fullName = 0);
    299     static bool parseRMFs(HSTR rmfs, QList<QList<QByteArray> > &list);
     305    static bool parseRMFs(HSTR rmfs, QList<QByteArrayList> &list);
    300306    static bool parseRMF(HSTR rmf, QByteArray &mechanism, QByteArray &format);
    301307
Note: See TracChangeset for help on using the changeset viewer.