1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>readiness-helper.h Source File</title>
7
<link href="doxygen.css" rel="stylesheet" type="text/css" />
10
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
<td width="1"> </td>
13
<td class="postheader" valign="center">
15
<font color="#004faf">Home</font></a> ·
16
<a href="classes.html">
17
<font color="#004faf">All Classes</font></a> ·
18
<a href="namespaces.html">
19
<font color="#004faf">All Namespaces</font></a> ·
20
<a href="modules.html">
21
<font color="#004faf">Modules</font></a> ·
22
<a href="functions.html">
23
<font color="#004faf">Functions</font></a> ·
25
<font color="#004faf">Files</font></a>
29
<!-- Generated by Doxygen 1.7.6.1 -->
32
<div class="headertitle">
33
<div class="title">readiness-helper.h</div> </div>
35
<div class="contents">
36
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
37
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef _TelepathyQt_readiness_helper_h_HEADER_GUARD_</span>
38
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define _TelepathyQt_readiness_helper_h_HEADER_GUARD_</span>
39
<a name="l00025"></a>00025 <span class="preprocessor"></span>
40
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef IN_TP_QT_HEADER</span>
41
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#error IN_TP_QT_HEADER</span>
42
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
43
<a name="l00029"></a>00029 <span class="preprocessor"></span>
44
<a name="l00030"></a>00030 <span class="preprocessor">#include <TelepathyQt/Feature></span>
45
<a name="l00031"></a>00031
46
<a name="l00032"></a>00032 <span class="preprocessor">#include <QMap></span>
47
<a name="l00033"></a>00033 <span class="preprocessor">#include <QSet></span>
48
<a name="l00034"></a>00034 <span class="preprocessor">#include <QSharedDataPointer></span>
49
<a name="l00035"></a>00035 <span class="preprocessor">#include <QStringList></span>
50
<a name="l00036"></a>00036
51
<a name="l00037"></a>00037 <span class="keyword">class </span>QDBusError;
52
<a name="l00038"></a>00038
53
<a name="l00039"></a>00039 <span class="keyword">namespace </span>Tp
54
<a name="l00040"></a>00040 {
55
<a name="l00041"></a>00041
56
<a name="l00042"></a>00042 <span class="keyword">class </span>DBusProxy;
57
<a name="l00043"></a>00043 <span class="keyword">class </span>PendingOperation;
58
<a name="l00044"></a>00044 <span class="keyword">class </span>PendingReady;
59
<a name="l00045"></a>00045 <span class="keyword">class </span>RefCounted;
60
<a name="l00046"></a>00046
61
<a name="l00047"></a><a class="code" href="a00359.html">00047</a> <span class="keyword">class </span>TP_QT_EXPORT <a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a> : <span class="keyword">public</span> QObject
62
<a name="l00048"></a>00048 {
63
<a name="l00049"></a>00049 Q_OBJECT
64
<a name="l00050"></a>00050 Q_DISABLE_COPY(<a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a>)
65
<a name="l00051"></a>00051
66
<a name="l00052"></a>00052 <span class="keyword">public</span>:
67
<a name="l00053"></a><a class="code" href="a00359.html#a1c93c38499ba330d1223033312a6301d">00053</a> <span class="keyword">typedef</span> void (*IntrospectFunc)(<span class="keywordtype">void</span> *data);
68
<a name="l00054"></a>00054
69
<a name="l00055"></a><a class="code" href="a00255.html">00055</a> <span class="keyword">struct </span><a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a> {
70
<a name="l00056"></a>00056 <span class="keyword">public</span>:
71
<a name="l00057"></a>00057 <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a>();
72
<a name="l00058"></a>00058 <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a>(<span class="keyword">const</span> QSet<uint> &makesSenseForStatuses,
73
<a name="l00059"></a>00059 <span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &dependsOnFeatures,
74
<a name="l00060"></a>00060 <span class="keyword">const</span> QStringList &dependsOnInterfaces,
75
<a name="l00061"></a>00061 IntrospectFunc introspectFunc,
76
<a name="l00062"></a>00062 <span class="keywordtype">void</span> *introspectFuncData,
77
<a name="l00063"></a>00063 <span class="keywordtype">bool</span> critical = <span class="keyword">false</span>);
78
<a name="l00064"></a>00064 <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a>(<span class="keyword">const</span> <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a> &other);
79
<a name="l00065"></a>00065 ~<a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a>();
80
<a name="l00066"></a>00066
81
<a name="l00067"></a>00067 <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a> &operator=(<span class="keyword">const</span> <a class="code" href="a00255.html" title="The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.">Introspectable</a> &other);
82
<a name="l00068"></a>00068
83
<a name="l00069"></a>00069 <span class="keyword">private</span>:
84
<a name="l00070"></a><a class="code" href="a00255.html#abc843a38847316f5e3a045b9492f12ef">00070</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a>;
85
<a name="l00071"></a>00071
86
<a name="l00072"></a><a class="code" href="a00255.html#a15a94ff2bd578e608a94d0a1ba4bd3e0">00072</a> <span class="keyword">struct </span>Private;
87
<a name="l00073"></a>00073 <span class="keyword">friend</span> <span class="keyword">struct </span>Private;
88
<a name="l00074"></a>00074 QSharedDataPointer<Private> mPriv;
89
<a name="l00075"></a>00075 };
90
<a name="l00076"></a><a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">00076</a> <span class="keyword">typedef</span> QMap<Feature, Introspectable> <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a>;
91
<a name="l00077"></a>00077
92
<a name="l00078"></a>00078 <a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a>(<a class="code" href="a00362.html" title="The RefCounted class is a base class for shared objects used by SharedPtr.">RefCounted</a> *<span class="keywordtype">object</span>,
93
<a name="l00079"></a>00079 uint currentStatus = 0,
94
<a name="l00080"></a>00080 <span class="keyword">const</span> <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a> &introspectables = <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a>(),
95
<a name="l00081"></a>00081 QObject *parent = 0);
96
<a name="l00082"></a>00082 <a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a>(<a class="code" href="a00216.html" title="The DBusProxy class is a base class representing a remote object available over D-Bus.">DBusProxy</a> *proxy,
97
<a name="l00083"></a>00083 uint currentStatus = 0,
98
<a name="l00084"></a>00084 <span class="keyword">const</span> <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a> &introspectables = <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a>(),
99
<a name="l00085"></a>00085 QObject *parent = 0);
100
<a name="l00086"></a>00086 ~<a class="code" href="a00359.html" title="The ReadinessHelper class is a helper class used by the introspection process.">ReadinessHelper</a>();
101
<a name="l00087"></a>00087
102
<a name="l00088"></a>00088 <span class="keywordtype">void</span> addIntrospectables(<span class="keyword">const</span> <a class="code" href="a00359.html#a9772a3ba90500d39ae046a0f78cc4313">Introspectables</a> &introspectables);
103
<a name="l00089"></a>00089
104
<a name="l00090"></a>00090 uint currentStatus() <span class="keyword">const</span>;
105
<a name="l00091"></a>00091 <span class="keywordtype">void</span> setCurrentStatus(uint currentStatus);
106
<a name="l00092"></a>00092 <span class="keywordtype">void</span> forceCurrentStatus(uint currentStatus);
107
<a name="l00093"></a>00093
108
<a name="l00094"></a>00094 QStringList interfaces() <span class="keyword">const</span>;
109
<a name="l00095"></a>00095 <span class="keywordtype">void</span> setInterfaces(<span class="keyword">const</span> QStringList &interfaces);
110
<a name="l00096"></a>00096
111
<a name="l00097"></a>00097 <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> requestedFeatures() <span class="keyword">const</span>;
112
<a name="l00098"></a>00098 <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> actualFeatures() <span class="keyword">const</span>;
113
<a name="l00099"></a>00099 <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> missingFeatures() <span class="keyword">const</span>;
114
<a name="l00100"></a>00100
115
<a name="l00101"></a>00101 <span class="keywordtype">bool</span> isReady(<span class="keyword">const</span> <a class="code" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> &feature,
116
<a name="l00102"></a>00102 QString *errorName = 0, QString *errorMessage = 0) <span class="keyword">const</span>;
117
<a name="l00103"></a>00103 <span class="keywordtype">bool</span> isReady(<span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &features,
118
<a name="l00104"></a>00104 QString *errorName = 0, QString *errorMessage = 0) <span class="keyword">const</span>;
119
<a name="l00105"></a>00105 <a class="code" href="a00321.html" title="The PendingReady class represents the features requested and the reply to a request for an object to ...">PendingReady</a> *becomeReady(<span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &requestedFeatures);
120
<a name="l00106"></a>00106
121
<a name="l00107"></a>00107 <span class="keywordtype">void</span> setIntrospectCompleted(<span class="keyword">const</span> <a class="code" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> &feature, <span class="keywordtype">bool</span> success,
122
<a name="l00108"></a>00108 <span class="keyword">const</span> QString &errorName = QString(),
123
<a name="l00109"></a>00109 <span class="keyword">const</span> QString &errorMessage = QString());
124
<a name="l00110"></a>00110 <span class="keywordtype">void</span> setIntrospectCompleted(<span class="keyword">const</span> <a class="code" href="a00227.html" title="The Feature class represents a feature that can be enabled on demand.">Feature</a> &feature, <span class="keywordtype">bool</span> success,
125
<a name="l00111"></a>00111 <span class="keyword">const</span> QDBusError &error);
126
<a name="l00112"></a>00112
127
<a name="l00113"></a>00113 Q_SIGNALS:
128
<a name="l00114"></a>00114 <span class="keywordtype">void</span> statusReady(uint status);
129
<a name="l00115"></a>00115
130
<a name="l00116"></a>00116 <span class="keyword">private</span> Q_SLOTS:
131
<a name="l00117"></a>00117 TP_QT_NO_EXPORT <span class="keywordtype">void</span> iterateIntrospection();
132
<a name="l00118"></a>00118
133
<a name="l00119"></a>00119 TP_QT_NO_EXPORT <span class="keywordtype">void</span> onProxyInvalidated(<a class="code" href="a00216.html" title="The DBusProxy class is a base class representing a remote object available over D-Bus.">Tp::DBusProxy</a> *proxy,
134
<a name="l00120"></a>00120 <span class="keyword">const</span> QString &errorName, <span class="keyword">const</span> QString &errorMessage);
135
<a name="l00121"></a>00121
136
<a name="l00122"></a>00122 <span class="keyword">private</span>:
137
<a name="l00123"></a><a class="code" href="a00359.html#a15a94ff2bd578e608a94d0a1ba4bd3e0">00123</a> <span class="keyword">struct </span>Private;
138
<a name="l00124"></a>00124 <span class="keyword">friend</span> <span class="keyword">struct </span>Private;
139
<a name="l00125"></a>00125 Private *mPriv;
140
<a name="l00126"></a>00126 };
141
<a name="l00127"></a>00127
142
<a name="l00128"></a>00128 } <span class="comment">// Tp</span>
143
<a name="l00129"></a>00129
144
<a name="l00130"></a>00130 <span class="preprocessor">#endif</span>
145
</pre></div></div><!-- contents -->
146
<p /><address><hr /><div align="center">
147
<table width="100%" cellspacing="0" border="0"><tr class="address">
148
<td width="30%">Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation</td>
149
<td width="30%" align="right"><div align="right">Telepathy-Qt 0.9.3</div></td>
150
</tr></table></div></address>