source: trunk/doc/html/qaxbase-h.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 6.7 KB
Line 
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"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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 &lt;qvariant.h&gt;
72#include &lt;qobject.h&gt;
73
74struct IUnknown;
75struct QUuid;
76class QAxEventSink;
77class QAxObject;
78class QAxBasePrivate;
79
80class 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
86public:
87#ifndef Q_QDOC
88 typedef QMap&lt;QCString, QVariant&gt; PropertyBag;
89#endif
90
91 QAxBase( IUnknown *iface = 0 );
92 virtual ~QAxBase();
93
94 QString control() const;
95
96 long queryInterface( const QUuid &amp;, void** ) const;
97
98 QVariant dynamicCall( const QCString&amp;, const QVariant &amp;v1 = QVariant(),
99 const QVariant &amp;v2 = QVariant(),
100 const QVariant &amp;v3 = QVariant(),
101 const QVariant &amp;v4 = QVariant(),
102 const QVariant &amp;v5 = QVariant(),
103 const QVariant &amp;v6 = QVariant(),
104 const QVariant &amp;v7 = QVariant(),
105 const QVariant &amp;v8 = QVariant() );
106 QVariant dynamicCall( const QCString&amp;, QValueList&lt;QVariant&gt; &amp;vars );
107 QAxObject *querySubObject( const QCString &amp;name, const QVariant &amp;v1 = QVariant(),
108 const QVariant &amp;v2 = QVariant(),
109 const QVariant &amp;v3 = QVariant(),
110 const QVariant &amp;v4 = QVariant(),
111 const QVariant &amp;v5 = QVariant(),
112 const QVariant &amp;v6 = QVariant(),
113 const QVariant &amp;v7 = QVariant(),
114 const QVariant &amp;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&amp; );
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 {};
138signals:
139 void signal(const QString&amp;,int,void*);
140 void propertyChanged(const QString&amp;);
141 void exception(int,const QString&amp;,const QString&amp;,const QString&amp;);
142#endif
143
144public:
145 virtual void clear();
146 bool setControl( const QString&amp; );
147
148 void disableMetaObject();
149 void disableClassInfo();
150 void disableEventSink();
151
152protected:
153 virtual bool initialize( IUnknown** ptr );
154 bool initializeRemote(IUnknown** ptr);
155 bool initializeLicensed(IUnknown** ptr);
156 bool initializeActive(IUnknown** ptr);
157
158private:
159 bool initializeLicensedHelper(void *factory, const QString &amp;key, IUnknown **ptr);
160 QAxBasePrivate *d;
161
162 static QMetaObject *staticMetaObject() { return 0; }
163 virtual QMetaObject *parentMetaObject() const = 0;
164 bool internalInvoke( const QCString &amp;name, void *out, QVariant var[], QCString &amp;type );
165
166 QString ctrl;
167};
168
169inline QString QAxBase::generateDocumentation()
170{
171 extern QString qax_generateDocumentation(QAxBase *, QAxBasePrivate *);
172 return qax_generateDocumentation(this, d);
173}
174
175#ifndef QT_NO_DATASTREAM
176inline QDataStream &amp;operator &gt;&gt;( QDataStream &amp;s, QAxBase &amp;c )
177{
178 QAxBase::PropertyBag bag;
179 c.qObject()-&gt;blockSignals( TRUE );
180 QString control;
181 s &gt;&gt; control;
182 c.setControl( control );
183 s &gt;&gt; bag;
184 c.setPropertyBag( bag );
185 c.qObject()-&gt;blockSignals( FALSE );
186
187 return s;
188}
189
190inline QDataStream &amp;operator &lt;&lt;( QDataStream &amp;s, const QAxBase &amp;c )
191{
192 QAxBase::PropertyBag bag = c.propertyBag();
193 s &lt;&lt; c.control();
194 s &lt;&lt; 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 &copy; 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>
Note: See TracBrowser for help on using the repository browser.