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

QComponentRegistrationInterface Class Reference

The QComponentRegistrationInterface class defines an interface to register and unregister components. More...

#include <qcom.h>

Inherits QUnknownInterface.

List of all member functions.

Public Members


Detailed Description

The QComponentRegistrationInterface class defines an interface to register and unregister components.

This interface defines two functions, registerComponents() and unregisterComponents(), that are used by the QComponentFactory class to register and unregister all components provided by a component server.

See also QComponentFactory, QComponentFactoryInterface and Component Model.


Member Function Documentation

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

Registers the components in this server in the system component registry and returns TRUE if 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 to access the component registry.

Example:

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

bool QComponentRegistrationInterface::unregisterComponents () const [virtual]

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

Implementations of this function should use the static functions in QComponentFactory to access the component registry.

  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-beta5