1 // File: GLViewer_MimeSource.h
2 // Created: November, 2004
4 // Copyright (C) CEA 2004
6 #ifndef GLVIEWER_MIMESOURCE_H
7 #define GLVIEWER_MIMESOURCE_H
16 #include <qvaluelist.h>
19 #pragma warning( disable:4251 )
22 class GLViewer_Object;
24 /*! Class GLViewer_MimeSource
25 * Needs for a work with QClipboard
28 class GLVIEWER_API GLViewer_MimeSource: public QMimeSource
31 GLViewer_MimeSource():QMimeSource(){};
32 ~GLViewer_MimeSource();
34 //! Translate objects to byte array
35 bool setObjects( QValueList<GLViewer_Object*> );
36 //! Gets objects from byte array
37 /*If you want to use new class, following two method must be redefined*/
38 static QValueList<GLViewer_Object*> getObjects( QByteArray, QString theType);
39 //! Get object from byte array
40 /*If you want to use new class, following two method must be redefined*/
41 static GLViewer_Object* getObject( QByteArray, QString theType);
44 virtual const char* format( int theIndex = 0 ) const;
45 virtual QByteArray encodedData( const char* ) const;
48 QByteArray myByteArray;
52 #pragma warning ( default:4251 )