Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QContentPropertiesPlugin Class Reference
[QtBaseModule]

The QContentPropertiesPlugin class provides an interface for accessing properties and thumbnails embedded in content. More...

    #include <QContentPropertiesPlugin>

Public Functions


Detailed Description

The QContentPropertiesPlugin class provides an interface for accessing properties and thumbnails embedded in content.

The QContent class uses QContentPropertiesPlugin to provide thumbnails of content.

The QContentProperties class uses QContentPropertiesPlugin to create instances of QContentPropertiesEngine for accessing properties embedded in content.

A plug-in which implements the QContentPropertiesPlugin interface should typically also implement the QContentPlugin interface to ensure content is assigned the correct type and so that any searchable properties are written to the database.

See also QContent, QContentProperties, and QContentPropertiesEngine.


Member Function Documentation

QContentPropertiesPlugin::~QContentPropertiesPlugin ()   [virtual]

Destroys a QContentPropertiesPlugin.

QContentPropertiesEngine * QContentPropertiesPlugin::createPropertiesEngine ( const QContent & content )   [pure virtual]

Returns a new instance of a QContentPropertiesEngine for viewing and editing the meta-data embedded in content.

If the plug-in is unable to read content then a null pointer will be returned instead.

See also QContentProperties.

QStringList QContentPropertiesPlugin::mimeTypes () const   [pure virtual]

Returns a list of the mime types a content properties plug-in supports.

QImage QContentPropertiesPlugin::thumbnail ( const QContent & content, const QSize & size, Qt::AspectRatioMode mode )   [pure virtual]

Returns a thumbnail representive of content. If size is not null the thumbnail will be resized to fit those dimensions according to the given aspect ratio mode.

See also QContent::thumbnail().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3