QRemotePlugin Class

Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# QRemotePlugin Class Reference

The QRemotePlugin class provides an abstract base for custom QRemoteInterface plugins. More...

`#include <qremoteplugin.h>`

List of all member functions.

## Public Members

- QRemotePlugin ()
- ~QRemotePlugin ()
- virtual QStringList keys () const
- virtual QRemoteInterface * create ( const QString & key )

## Detailed Description

The QRemotePlugin class provides an abstract base for custom QRemoteInterface plugins.

The remote plugin is a simple plugin interface that makes it easy to create custom remote controls that can be loaded dynamically into applications with a QRemoteFactory.

Writing a rc plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the Q_EXPORT_PLUGIN macro. See the plugins documentation for an example.

See also Plugins.

## Member Function Documentation

### QRemotePlugin::QRemotePlugin ()

Constructs a remote plugin. This is invoked automatically by the Q_EXPORT_PLUGIN macro.

### QRemotePlugin::~QRemotePlugin ()

Destroys the remote plugin.

You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.

### QRemoteInterface * QRemotePlugin::create ( const QString & key )`[virtual]`

Creates and returns a QRemoteInterface object for the rc key key. The rc key is usually the class name of the required control.

See also keys().

### QStringList QRemotePlugin::keys () const`[virtual]`

Returns the list of remote control keys this plugin supports.

These keys are usually the class names of the custom controls that are implemented in the plugin.

See also create().

This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.