44 #include <QtCore/qdatastream.h> 45 #include <QtCore/qmap.h> 46 #include <QtCore/qobject.h> 47 #include <QtCore/qvariant.h> 58 #ifndef QT_NO_WIN_ACTIVEQT 103 virtual const char *
className()
const = 0;
127 virtual void clear();
161 #if defined Q_CC_MSVC && _MSC_VER < 1300 167 void *result = o ?
const_cast<QObject *
>(o)->qt_metacast(
"QAxBase") : 0;
171 #if defined Q_CC_MSVC && _MSC_VER < 1300 177 void *result = o ? o->qt_metacast(
"QAxBase") : 0;
188 #ifndef QT_NO_DATASTREAM 211 #endif // QT_NO_DATASTREAM 215 #ifndef Q_COM_METATYPE_DECLARED 216 #define Q_COM_METATYPE_DECLARED 223 #endif // QT_NO_WIN_ACTIVEQT The QVariant class acts like a union for the most common Qt data types.
QStringList verbs() const
Returns the list of verbs that the COM object can execute.
QString qax_generateDocumentation(QAxBase *)
bool blockSignals(bool b)
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke...
bool isNull() const
Returns true if there is no COM object loaded by this wrapper; otherwise return false.
virtual ~QAxBase()
Shuts down the COM object and destroys the QAxBase object.
#define QT_END_NAMESPACE
This macro expands to.
virtual const QMetaObject * metaObject() const
The metaobject is generated on the fly from the information provided by the IDispatch and ITypeInfo i...
#define QDOC_PROPERTY(text)
QVariant dynamicCall(const char *name, const QVariant &v1=QVariant(), const QVariant &v2=QVariant(), const QVariant &v3=QVariant(), const QVariant &v4=QVariant(), const QVariant &v5=QVariant(), const QVariant &v6=QVariant(), const QVariant &v7=QVariant(), const QVariant &v8=QVariant())
Calls the COM object's method function, passing the parameters var1, var1, var2, var3, var4, var5, var6, var7 and var8, and returns the value returned by the method, or an invalid QVariant if the method does not return a value or when the function call failed.
QVariant asVariant() const
Returns a QVariant that wraps the COM object.
void signal(const QString &, int, void *)
This generic signal gets emitted when the COM object issues the event name.
bool initializeActive(IUnknown **ptr)
Connects to an active instance running on the current machine, and returns the IUnknown interface to ...
bool dynamicCallHelper(const char *name, void *out, QList< QVariant > &var, QByteArray &type)
void initializeFrom(QAxBase *that)
Used by subclasses generated with dumpcpp to implement cast-operators.
QString control() const
the name of the COM object wrapped by this QAxBase object.
bool initializeRemote(IUnknown **ptr)
Creates the instance on a remote server, and returns the IUnknown interface to the object in ptr...
virtual QObject * qObject() const =0
void internalRelease()
Used by subclasses generated with dumpcpp to balance reference count.
The QByteArray class provides an array of bytes.
void disableClassInfo()
Disables the class info generation for this ActiveX container.
void setPropertyBag(const PropertyBag &)
Sets the properties of the COM object to the corresponding values in bag.
virtual void setPropertyWritable(const char *, bool)
Sets the property prop to writable if ok is true, otherwise sets prop to be read-only.
QString generateDocumentation()
Returns a rich text string with documentation for the wrapped COM object.
The QString class provides a Unicode character string.
The QAxObject class provides a QObject that wraps a COM object.
The QObject class is the base class of all Qt objects.
QMap< QString, QVariant > PropertyBag
A QMap<QString,QVariant> that can store properties as name:value pairs.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QAxObject * querySubObject(const char *name, const QVariant &v1=QVariant(), const QVariant &v2=QVariant(), const QVariant &v3=QVariant(), const QVariant &v4=QVariant(), const QVariant &v5=QVariant(), const QVariant &v6=QVariant(), const QVariant &v7=QVariant(), const QVariant &v8=QVariant())
Returns a pointer to a QAxObject wrapping the COM object provided by the method or property name...
virtual const char * className() const =0
virtual const QMetaObject * parentMetaObject() const =0
int internalProperty(QMetaObject::Call, int index, void **v)
int internalInvoke(QMetaObject::Call, int index, void **v)
The QStringList class provides a list of strings.
virtual int qt_metacall(QMetaObject::Call, int, void **)
void connectNotify()
Connects to all event interfaces of the object.
bool setControl(const QString &)
void propertyChanged(const QString &)
If the COM object supports property notification, this signal gets emitted when the property called n...
const T * ptr(const T &t)
virtual bool propertyWritable(const char *) const
Returns true if the property prop is writable; otherwise returns false.
bool initializeLicensedHelper(void *factory, const QString &key, IUnknown **ptr)
friend void * qax_createObjectWrapper(int, IUnknown *)
bool initializeFromFile(IUnknown **ptr)
Creates the COM object handling the filename in the control property, and returns the IUnknown interf...
void disableMetaObject()
Disables the meta object generation for this ActiveX container.
void exception(int, const QString &, const QString &, const QString &)
This signal is emitted when the COM object throws an exception while called using the OLE automation ...
long indexOfVerb(const QString &verb) const
QDataStream & operator>>(QDataStream &s, QAxBase &c)
QAxMetaObject * internalMetaObject() const
PropertyBag propertyBag() const
Returns a name:value map of all the properties exposed by the COM object.
bool initializeLicensed(IUnknown **ptr)
Creates an instance of a licensed control, and returns the IUnknown interface to the object in ptr...
void disableEventSink()
Disables the event sink implementation for this ActiveX container.
QDataStream & operator<<(QDataStream &s, const QAxBase &c)
static QMetaObject staticMetaObject
The QDataStream class provides serialization of binary data to a QIODevice.
long queryInterface(const QUuid &, void **) const
Requests the interface uuid from the COM object and sets the value of iface to the provided interface...
virtual void clear()
Disconnects and destroys the COM object.
QAxBase(IUnknown *iface=0)
Creates a QAxBase object that wraps the COM object iface.
virtual bool initialize(IUnknown **ptr)
This virtual function is called by setControl() and creates the requested COM object.
The QAxBase class is an abstract class that provides an API to initialize and access a COM object...
The QUuid class stores a Universally Unique Identifier (UUID).