Qt 4.8
Public Types | Public Functions | Static Public Functions | Properties | List of all members
QMacMime Class Referenceabstract

#include <qmime.h>

Public Types

enum  QMacMimeType { MIME_DND =0x01, MIME_CLIP =0x02, MIME_QT_CONVERTOR =0x04, MIME_ALL =MIME_DND|MIME_CLIP }
 

Public Functions

virtual bool canConvert (const QString &mime, int flav)=0
 
virtual QList< QByteArrayconvertFromMime (const QString &mime, QVariant data, int flav)=0
 
virtual QString convertorName ()=0
 
virtual QVariant convertToMime (const QString &mime, QList< QByteArray > data, int flav)=0
 
virtual int countFlavors ()=0
 
virtual int flavor (int index)=0
 
virtual int flavorFor (const QString &mime)=0
 
virtual QString mimeFor (int flav)=0
 
 QMacMime (char)
 
virtual ~QMacMime ()
 

Static Public Functions

static QList< QMacMime * > all (QMacMimeType)
 
static QMacMimeconvertor (QMacMimeType, const QString &, int)
 
static QString flavorToMime (QMacMimeType, int)
 
static void initialize ()
 

Properties

char type
 

Detailed Description

Definition at line 118 of file qmime.h.

Enumerations

◆ QMacMimeType

Enumerator
MIME_DND 
MIME_CLIP 
MIME_QT_CONVERTOR 
MIME_ALL 

Definition at line 121 of file qmime.h.

Constructors and Destructors

◆ QMacMime()

QMacMime::QMacMime ( char  )
inlineexplicit

Definition at line 122 of file qmime.h.

122 { Q_UNUSED(type); }
char type
Definition: qmime.h:119
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ ~QMacMime()

virtual QMacMime::~QMacMime ( )
inlinevirtual

Definition at line 123 of file qmime.h.

123 { }

Functions

◆ all()

static QList<QMacMime*> QMacMime::all ( QMacMimeType  )
inlinestatic

Definition at line 127 of file qmime.h.

127 { return QList<QMacMime*>(); }
The QList class is a template class that provides lists.
Definition: qdatastream.h:62

◆ canConvert()

virtual bool QMacMime::canConvert ( const QString mime,
int  flav 
)
pure virtual

◆ convertFromMime()

virtual QList<QByteArray> QMacMime::convertFromMime ( const QString mime,
QVariant  data,
int  flav 
)
pure virtual

◆ convertor()

static QMacMime* QMacMime::convertor ( QMacMimeType  ,
const QString ,
int   
)
inlinestatic

Definition at line 128 of file qmime.h.

128 { return 0; }

◆ convertorName()

virtual QString QMacMime::convertorName ( )
pure virtual

◆ convertToMime()

virtual QVariant QMacMime::convertToMime ( const QString mime,
QList< QByteArray data,
int  flav 
)
pure virtual

◆ countFlavors()

virtual int QMacMime::countFlavors ( )
pure virtual

◆ flavor()

virtual int QMacMime::flavor ( int  index)
pure virtual

◆ flavorFor()

virtual int QMacMime::flavorFor ( const QString mime)
pure virtual

◆ flavorToMime()

static QString QMacMime::flavorToMime ( QMacMimeType  ,
int   
)
inlinestatic

Definition at line 129 of file qmime.h.

129 { return QString(); }
The QString class provides a Unicode character string.
Definition: qstring.h:83

◆ initialize()

static void QMacMime::initialize ( )
inlinestatic

Definition at line 125 of file qmime.h.

125 { }

◆ mimeFor()

virtual QString QMacMime::mimeFor ( int  flav)
pure virtual

Properties

◆ type

char QMacMime::type
private

Definition at line 119 of file qmime.h.


The documentation for this class was generated from the following file: