[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/qaxbase.h:1 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>qaxbase.h Include File</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qaxbase.h</h1>
|
---|
| 33 |
|
---|
| 34 | <p>This is the verbatim text of the qaxbase.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
---|
| 35 | <hr>
|
---|
| 36 | <pre>
|
---|
| 37 | /****************************************************************************
|
---|
| 38 | ** $Id: qaxbase-h.html 2051 2007-02-21 10:04:20Z chehrlic $
|
---|
| 39 | **
|
---|
| 40 | ** Declaration of the QAxBase class
|
---|
| 41 | **
|
---|
| 42 | ** Copyright (C) 2001-2007 Trolltech ASA. All rights reserved.
|
---|
| 43 | **
|
---|
| 44 | ** This file is part of the Active Qt integration.
|
---|
| 45 | **
|
---|
| 46 | ** Licensees holding valid Qt Enterprise Edition
|
---|
| 47 | ** licenses for Windows may use this file in accordance with the Qt Commercial
|
---|
| 48 | ** License Agreement provided with the Software.
|
---|
| 49 | **
|
---|
| 50 | ** This file is not available for use under any other license without
|
---|
| 51 | ** express written permission from the copyright holder.
|
---|
| 52 | **
|
---|
| 53 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
| 54 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
| 55 | **
|
---|
| 56 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
| 57 | ** information about Qt Commercial License Agreements.
|
---|
| 58 | **
|
---|
| 59 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
| 60 | ** not clear to you.
|
---|
| 61 | **
|
---|
| 62 | **********************************************************************/
|
---|
| 63 |
|
---|
| 64 | #ifndef UNICODE
|
---|
| 65 | #define UNICODE
|
---|
| 66 | #endif
|
---|
| 67 |
|
---|
| 68 | #ifndef QAXBASE_H
|
---|
| 69 | #define QAXBASE_H
|
---|
| 70 |
|
---|
| 71 | #include <qvariant.h>
|
---|
| 72 | #include <qobject.h>
|
---|
| 73 |
|
---|
| 74 | struct IUnknown;
|
---|
| 75 | struct QUuid;
|
---|
| 76 | class QAxEventSink;
|
---|
| 77 | class QAxObject;
|
---|
| 78 | class QAxBasePrivate;
|
---|
| 79 |
|
---|
| 80 | class QAxBase
|
---|
| 81 | {
|
---|
| 82 | #ifdef Q_QDOC
|
---|
| 83 | #error "The Symbol Q_QDOC is reserved for documentation purposes."
|
---|
| 84 | Q_PROPERTY( QString control READ control WRITE setControl )
|
---|
| 85 | #endif
|
---|
| 86 | public:
|
---|
| 87 | #ifndef Q_QDOC
|
---|
| 88 | typedef QMap<QCString, QVariant> PropertyBag;
|
---|
| 89 | #endif
|
---|
| 90 |
|
---|
| 91 | QAxBase( IUnknown *iface = 0 );
|
---|
| 92 | virtual ~QAxBase();
|
---|
| 93 |
|
---|
| 94 | QString control() const;
|
---|
| 95 |
|
---|
| 96 | long queryInterface( const QUuid &, void** ) const;
|
---|
| 97 |
|
---|
| 98 | QVariant dynamicCall( const QCString&, const QVariant &v1 = QVariant(),
|
---|
| 99 | const QVariant &v2 = QVariant(),
|
---|
| 100 | const QVariant &v3 = QVariant(),
|
---|
| 101 | const QVariant &v4 = QVariant(),
|
---|
| 102 | const QVariant &v5 = QVariant(),
|
---|
| 103 | const QVariant &v6 = QVariant(),
|
---|
| 104 | const QVariant &v7 = QVariant(),
|
---|
| 105 | const QVariant &v8 = QVariant() );
|
---|
| 106 | QVariant dynamicCall( const QCString&, QValueList<QVariant> &vars );
|
---|
| 107 | QAxObject *querySubObject( const QCString &name, const QVariant &v1 = QVariant(),
|
---|
| 108 | const QVariant &v2 = QVariant(),
|
---|
| 109 | const QVariant &v3 = QVariant(),
|
---|
| 110 | const QVariant &v4 = QVariant(),
|
---|
| 111 | const QVariant &v5 = QVariant(),
|
---|
| 112 | const QVariant &v6 = QVariant(),
|
---|
| 113 | const QVariant &v7 = QVariant(),
|
---|
| 114 | const QVariant &v8 = QVariant() );
|
---|
| 115 |
|
---|
| 116 | virtual QMetaObject *metaObject() const;
|
---|
| 117 | virtual bool qt_invoke( int, QUObject* );
|
---|
| 118 | virtual bool qt_property( int, int, QVariant* );
|
---|
| 119 | virtual bool qt_emit( int, QUObject* ) = 0;
|
---|
| 120 | virtual const char *className() const = 0;
|
---|
| 121 | virtual QObject *qObject() = 0;
|
---|
| 122 |
|
---|
| 123 | PropertyBag propertyBag() const;
|
---|
| 124 | void setPropertyBag( const PropertyBag& );
|
---|
| 125 |
|
---|
| 126 | QString generateDocumentation();
|
---|
| 127 |
|
---|
| 128 | virtual bool propertyWritable( const char* ) const;
|
---|
| 129 | virtual void setPropertyWritable( const char*, bool );
|
---|
| 130 |
|
---|
| 131 | bool isNull() const;
|
---|
| 132 |
|
---|
| 133 | QVariant asVariant() const;
|
---|
| 134 |
|
---|
| 135 | #ifdef Q_QDOC
|
---|
| 136 | #error "The Symbol Q_QDOC is reserved for documentation purposes."
|
---|
| 137 | enum PropertyBag {};
|
---|
| 138 | signals:
|
---|
| 139 | void signal(const QString&,int,void*);
|
---|
| 140 | void propertyChanged(const QString&);
|
---|
| 141 | void exception(int,const QString&,const QString&,const QString&);
|
---|
| 142 | #endif
|
---|
| 143 |
|
---|
| 144 | public:
|
---|
| 145 | virtual void clear();
|
---|
| 146 | bool setControl( const QString& );
|
---|
| 147 |
|
---|
| 148 | void disableMetaObject();
|
---|
| 149 | void disableClassInfo();
|
---|
| 150 | void disableEventSink();
|
---|
| 151 |
|
---|
| 152 | protected:
|
---|
| 153 | virtual bool initialize( IUnknown** ptr );
|
---|
| 154 | bool initializeRemote(IUnknown** ptr);
|
---|
| 155 | bool initializeLicensed(IUnknown** ptr);
|
---|
| 156 | bool initializeActive(IUnknown** ptr);
|
---|
| 157 |
|
---|
| 158 | private:
|
---|
| 159 | bool initializeLicensedHelper(void *factory, const QString &key, IUnknown **ptr);
|
---|
| 160 | QAxBasePrivate *d;
|
---|
| 161 |
|
---|
| 162 | static QMetaObject *staticMetaObject() { return 0; }
|
---|
| 163 | virtual QMetaObject *parentMetaObject() const = 0;
|
---|
| 164 | bool internalInvoke( const QCString &name, void *out, QVariant var[], QCString &type );
|
---|
| 165 |
|
---|
| 166 | QString ctrl;
|
---|
| 167 | };
|
---|
| 168 |
|
---|
| 169 | inline QString QAxBase::generateDocumentation()
|
---|
| 170 | {
|
---|
| 171 | extern QString qax_generateDocumentation(QAxBase *, QAxBasePrivate *);
|
---|
| 172 | return qax_generateDocumentation(this, d);
|
---|
| 173 | }
|
---|
| 174 |
|
---|
| 175 | #ifndef QT_NO_DATASTREAM
|
---|
| 176 | inline QDataStream &operator >>( QDataStream &s, QAxBase &c )
|
---|
| 177 | {
|
---|
| 178 | QAxBase::PropertyBag bag;
|
---|
| 179 | c.qObject()->blockSignals( TRUE );
|
---|
| 180 | QString control;
|
---|
| 181 | s >> control;
|
---|
| 182 | c.setControl( control );
|
---|
| 183 | s >> bag;
|
---|
| 184 | c.setPropertyBag( bag );
|
---|
| 185 | c.qObject()->blockSignals( FALSE );
|
---|
| 186 |
|
---|
| 187 | return s;
|
---|
| 188 | }
|
---|
| 189 |
|
---|
| 190 | inline QDataStream &operator <<( QDataStream &s, const QAxBase &c )
|
---|
| 191 | {
|
---|
| 192 | QAxBase::PropertyBag bag = c.propertyBag();
|
---|
| 193 | s << c.control();
|
---|
| 194 | s << bag;
|
---|
| 195 |
|
---|
| 196 | return s;
|
---|
| 197 | }
|
---|
| 198 | #endif // QT_NO_DATASTREAM
|
---|
| 199 |
|
---|
| 200 | #endif // QAXBASE_H
|
---|
| 201 | </pre>
|
---|
| 202 | <!-- eof -->
|
---|
| 203 | <p><address><hr><div align=center>
|
---|
| 204 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 205 | <td>Copyright © 2007
|
---|
| 206 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 207 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 208 | </table></div></address></body>
|
---|
| 209 | </html>
|
---|