Qt 4.8
|
#include <QtCore/qhash.h>
#include <QtCore/quuid.h>
#include <QtCore/qfactoryinterface.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qstringlist.h>
Go to the source code of this file.
Classes | |
class | QAxClass< T > |
class | QAxFactory |
The QAxFactory class defines a factory for the creation of COM components. More... | |
Macros | |
#define | Q_COM_METATYPE_DECLARED |
#define | QAXCLASS(Class) |
This macro adds a creatable COM class Class to the QAxFactory declared with the QAXFACTORY_BEGIN() macro. More... | |
#define | QAXFACTORY_BEGIN(IDTypeLib, IDApp) |
This macro can be used to export multiple QObject classes through an implicitly declared QAxFactory implementation. More... | |
#define | QAXFACTORY_DEFAULT(Class, IIDClass, IIDInterface, IIDEvents, IIDTypeLib, IIDApp) |
This macro can be used to export a single QObject subclass Class a this COM server through an implicitly declared QAxFactory implementation. More... | |
#define | QAXFACTORY_END() |
Completes the QAxFactory declaration started with the QAXFACTORY_BEGIN() macro. More... | |
#define | QAXFACTORY_EXPORT(IMPL, TYPELIB, APPID) |
This macro can be used to export a QAxFactory implementation Class from a COM server. More... | |
#define | QAXTYPE(Class) |
This macro adds a non-creatable COM class Class to the QAxFactory declared with the QAXFACTORY_BEGIN(). More... | |
Functions | |
bool | qax_startServer (QAxFactory::ServerType) |
bool | qax_stopServer () |
QAxFactory * | qAxFactory () |
#define Q_COM_METATYPE_DECLARED |
Definition at line 300 of file qaxfactory.h.
#define QAXCLASS | ( | Class | ) |
This macro adds a creatable COM class Class to the QAxFactory declared with the QAXFACTORY_BEGIN() macro.
Definition at line 223 of file qaxfactory.h.
#define QAXFACTORY_BEGIN | ( | IDTypeLib, | |
IDApp | |||
) |
This macro can be used to export multiple QObject classes through an implicitly declared QAxFactory implementation.
All QObject classes have to declare the ClassID, InterfaceID and EventsID (if applicable) through the Q_CLASSINFO() macro. All declarations will be in a type library with the id IDTypeLib, and if the server is an executable server then it will have the application id IDApp.
This macro needs to be used together with the QAXCLASS(), QAXTYPE() and QAXFACTORY_END() macros.
Definition at line 208 of file qaxfactory.h.
#define QAXFACTORY_DEFAULT | ( | Class, | |
IIDClass, | |||
IIDInterface, | |||
IIDEvents, | |||
IIDTypeLib, | |||
IIDApp | |||
) |
This macro can be used to export a single QObject subclass Class a this COM server through an implicitly declared QAxFactory implementation.
This macro exports the class Class as a COM coclass with the CLSID ClassID. The properties and slots will be declared through a COM interface with the IID InterfaceID, and signals will be declared through a COM event interface with the IID EventID. All declarations will be in a type library with the id LibID, and if the server is an executable server then it will have the application id AppID.
Definition at line 138 of file qaxfactory.h.
#define QAXFACTORY_END | ( | ) |
Completes the QAxFactory declaration started with the QAXFACTORY_BEGIN() macro.
Definition at line 243 of file qaxfactory.h.
#define QAXFACTORY_EXPORT | ( | IMPL, | |
TYPELIB, | |||
APPID | |||
) |
This macro can be used to export a QAxFactory implementation Class from a COM server.
All declarations will be in a type library with the id LibID, and if the server is an executable server then it will have the application id AppID.
Definition at line 129 of file qaxfactory.h.
#define QAXTYPE | ( | Class | ) |
This macro adds a non-creatable COM class Class to the QAxFactory declared with the QAXFACTORY_BEGIN().
The class Class can be used in APIs of other COM classes exported through QAXTYPE() or QAXCLASS().
Instances of type Class can only be retrieved using APIs of already instantiated objects.
Definition at line 233 of file qaxfactory.h.
bool qax_startServer | ( | QAxFactory::ServerType | ) |
Definition at line 127 of file qaxservermain.cpp.
Referenced by QAxFactory::startServer().
bool qax_stopServer | ( | ) |
Definition at line 162 of file qaxservermain.cpp.
Referenced by QAxFactory::startServer(), and QAxFactory::stopServer().
QAxFactory* qAxFactory | ( | ) |
Definition at line 81 of file qaxserver.cpp.
Referenced by qax_create_object_wrapper(), qax_startServer(), qax_stopServer(), QVariantToVARIANT(), and QAxFactory::registerActiveObject().