Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QComponentFactoryInterface class defines an interface for component creation. More...
#include <qcom.h>
Inherits QUnknownInterface.
A component server can only export a single component that might implement any number of interfaces. To be able to provide multiple components in one component server, implement this interface in the exported component and create the actual components in the createInstance() implementation. A client using this interface has to know the component identifiers of the components provided.
See also Component Model.
Creates the component specified by cid and sets iface to point to the interface iid implemented by that component. The component can use the outer interface for containment and aggregation. iface is set to null if the component \cid is not provided by this factory, or if the component does not implement the interface requested.
The function returns QS_OK if the interface was successfully instantiated, QE_NOINTERFACE if the component does not provide an interface iid, or QE_NOCOMPONENT if there was an error loading the component cid.
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta5
|