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

QComponentServerInterface Class Reference

The API for this class is under development and is subject to change.
We do not recommend the use of this class for production work at this time.

The QComponentServerInterface class provides a means of registering and unregistering components. More...

#include <qcom.h>

Inherits QUnknownInterface.

List of all member functions.

Public Members


Detailed Description

The QComponentServerInterface class provides a means of registering and unregistering components.

This interface defines two functions, registerComponents() and unregisterComponents().

See also QComponentFactory and Component Model.


Member Function Documentation

bool QComponentServerInterface::registerComponents ( const QString & filepath ) const [virtual]

Registers the components in this server in the system registry and returns TRUE when successful, otherwise returns FALSE. The filepath is the absolute path to the shared library file.

Implementations of this function should use the static functions in QComponentFactory

Example:

  return QComponentFactory::registerComponent( QUuid(DD19964B-A2C8-42AE-AAF9-8ADC509BCA03), filepath, "Test Component" );
  

bool QComponentServerInterface::unregisterComponents () const [virtual]

Removes the components in this server from the system registry and returns TRUE if successful, otherwise returns FALSE.

Implementations of this function should use the static functions in QComponentFactory

  return QComponentFactory::unregisterComponent( QUuid(DD19964B-A2C8-42AE-AAF9-8ADC509BCA03) );
  

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


Copyright © 2001 TrolltechTrademarks
Qt version 3.0.0-beta4