~tiagosh/telepathy-qt/group-chat2

« back to all changes in this revision

Viewing changes to doc/html/a00485_source.html

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-06-06 04:56:14 UTC
  • Revision ID: package-import@ubuntu.com-20130606045614-inpxexo6765rnmp1
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
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">
 
5
<head>
 
6
  <title>cli-account-manager.h Source File</title>
 
7
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
 
8
</head>
 
9
<body>
 
10
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
11
<tr>
 
12
<td width="1">&nbsp;&nbsp;</td>
 
13
<td class="postheader" valign="center">
 
14
<a href="index.html">
 
15
<font color="#004faf">Home</font></a>&nbsp;&middot;
 
16
<a href="classes.html">
 
17
<font color="#004faf">All Classes</font></a>&nbsp;&middot;
 
18
<a href="namespaces.html">
 
19
<font color="#004faf">All Namespaces</font></a>&nbsp;&middot;
 
20
<a href="modules.html">
 
21
<font color="#004faf">Modules</font></a>&nbsp;&middot;
 
22
<a href="functions.html">
 
23
<font color="#004faf">Functions</font></a>&nbsp;&middot;
 
24
<a href="files.html">
 
25
<font color="#004faf">Files</font></a>
 
26
</td>
 
27
</tr>
 
28
</table>
 
29
<!-- Generated by Doxygen 1.7.6.1 -->
 
30
</div>
 
31
<div class="header">
 
32
  <div class="headertitle">
 
33
<div class="title">cli-account-manager.h</div>  </div>
 
34
</div><!--header-->
 
35
<div class="contents">
 
36
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
 
37
<a name="l00002"></a>00002 <span class="comment"> * This file contains D-Bus client proxy classes generated by qt-client-gen.py.</span>
 
38
<a name="l00003"></a>00003 <span class="comment"> *</span>
 
39
<a name="l00004"></a>00004 <span class="comment"> * This file can be distributed under the same terms as the specification from</span>
 
40
<a name="l00005"></a>00005 <span class="comment"> * which it was generated.</span>
 
41
<a name="l00006"></a>00006 <span class="comment"> */</span>
 
42
<a name="l00007"></a>00007 
 
43
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef IN_TP_QT_HEADER</span>
 
44
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#error IN_TP_QT_HEADER</span>
 
45
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
 
46
<a name="l00011"></a>00011 <span class="preprocessor"></span>
 
47
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;TelepathyQt/Types&gt;</span>
 
48
<a name="l00013"></a>00013 
 
49
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;QtGlobal&gt;</span>
 
50
<a name="l00015"></a>00015 
 
51
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;QString&gt;</span>
 
52
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;QObject&gt;</span>
 
53
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;QVariant&gt;</span>
 
54
<a name="l00019"></a>00019 
 
55
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;QDBusPendingReply&gt;</span>
 
56
<a name="l00021"></a>00021 
 
57
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;TelepathyQt/AbstractInterface&gt;</span>
 
58
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;TelepathyQt/DBusProxy&gt;</span>
 
59
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;TelepathyQt/Global&gt;</span>
 
60
<a name="l00025"></a>00025 
 
61
<a name="l00026"></a>00026 <span class="keyword">namespace </span>Tp
 
62
<a name="l00027"></a>00027 {
 
63
<a name="l00028"></a>00028 <span class="keyword">class </span>PendingVariant;
 
64
<a name="l00029"></a>00029 <span class="keyword">class </span>PendingOperation;
 
65
<a name="l00030"></a>00030 }
 
66
<a name="l00031"></a>00031 
 
67
<a name="l00032"></a>00032 <span class="keyword">namespace </span>Tp
 
68
<a name="l00033"></a>00033 {
 
69
<a name="l00034"></a>00034 <span class="keyword">namespace </span>Client
 
70
<a name="l00035"></a>00035 {
 
71
<a name="l00036"></a>00036 
 
72
<a name="l00044"></a><a class="code" href="a00048.html">00044</a> <span class="keyword">class </span>TP_QT_EXPORT <a class="code" href="a00048.html">AccountManagerInterface</a> : <span class="keyword">public</span> Tp::<a class="code" href="a00037.html" title="The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.">AbstractInterface</a>
 
73
<a name="l00045"></a>00045 {
 
74
<a name="l00046"></a>00046     Q_OBJECT
 
75
<a name="l00047"></a>00047 
 
76
<a name="l00048"></a>00048 <span class="keyword">public</span>:
 
77
<a name="l00055"></a><a class="code" href="a00048.html#a208f53b265c050567fa448090e9e57cb">00055</a>     <span class="keyword">static</span> <span class="keyword">inline</span> QLatin1String staticInterfaceName()
 
78
<a name="l00056"></a>00056     {
 
79
<a name="l00057"></a>00057         <span class="keywordflow">return</span> QLatin1String(<span class="stringliteral">&quot;org.freedesktop.Telepathy.AccountManager&quot;</span>);
 
80
<a name="l00058"></a>00058     }
 
81
<a name="l00059"></a>00059 
 
82
<a name="l00067"></a>00067     <a class="code" href="a00048.html">AccountManagerInterface</a>(
 
83
<a name="l00068"></a>00068         <span class="keyword">const</span> QString&amp; busName,
 
84
<a name="l00069"></a>00069         <span class="keyword">const</span> QString&amp; objectPath,
 
85
<a name="l00070"></a>00070         QObject* parent = 0
 
86
<a name="l00071"></a>00071     );
 
87
<a name="l00072"></a>00072 
 
88
<a name="l00081"></a>00081     <a class="code" href="a00048.html">AccountManagerInterface</a>(
 
89
<a name="l00082"></a>00082         <span class="keyword">const</span> QDBusConnection&amp; connection,
 
90
<a name="l00083"></a>00083         <span class="keyword">const</span> QString&amp; busName,
 
91
<a name="l00084"></a>00084         <span class="keyword">const</span> QString&amp; objectPath,
 
92
<a name="l00085"></a>00085         QObject* parent = 0
 
93
<a name="l00086"></a>00086     );
 
94
<a name="l00087"></a>00087 
 
95
<a name="l00094"></a>00094     <a class="code" href="a00048.html">AccountManagerInterface</a>(<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);
 
96
<a name="l00095"></a>00095 
 
97
<a name="l00105"></a><a class="code" href="a00048.html#ad826980978d4c837909afdb9783be5a8">00105</a>     <span class="keyword">inline</span> <a class="code" href="a00329.html" title="The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...">Tp::PendingVariant</a> *requestPropertyInterfaces()<span class="keyword"> const</span>
 
98
<a name="l00106"></a>00106 <span class="keyword">    </span>{
 
99
<a name="l00107"></a>00107         <span class="keywordflow">return</span> internalRequestProperty(QLatin1String(<span class="stringliteral">&quot;Interfaces&quot;</span>));
 
100
<a name="l00108"></a>00108     }
 
101
<a name="l00109"></a>00109 
 
102
<a name="l00123"></a><a class="code" href="a00048.html#a214c776c1a116bb801af49eed60fff28">00123</a>     <span class="keyword">inline</span> <a class="code" href="a00329.html" title="The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...">Tp::PendingVariant</a> *requestPropertyValidAccounts()<span class="keyword"> const</span>
 
103
<a name="l00124"></a>00124 <span class="keyword">    </span>{
 
104
<a name="l00125"></a>00125         <span class="keywordflow">return</span> internalRequestProperty(QLatin1String(<span class="stringliteral">&quot;ValidAccounts&quot;</span>));
 
105
<a name="l00126"></a>00126     }
 
106
<a name="l00127"></a>00127 
 
107
<a name="l00138"></a><a class="code" href="a00048.html#a43f0bbf47369464170fb685eb3608b9e">00138</a>     <span class="keyword">inline</span> <a class="code" href="a00329.html" title="The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...">Tp::PendingVariant</a> *requestPropertyInvalidAccounts()<span class="keyword"> const</span>
 
108
<a name="l00139"></a>00139 <span class="keyword">    </span>{
 
109
<a name="l00140"></a>00140         <span class="keywordflow">return</span> internalRequestProperty(QLatin1String(<span class="stringliteral">&quot;InvalidAccounts&quot;</span>));
 
110
<a name="l00141"></a>00141     }
 
111
<a name="l00142"></a>00142 
 
112
<a name="l00195"></a><a class="code" href="a00048.html#a90b55336750c04c3ec12e3eea0c00d64">00195</a>     <span class="keyword">inline</span> <a class="code" href="a00329.html" title="The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...">Tp::PendingVariant</a> *requestPropertySupportedAccountProperties()<span class="keyword"> const</span>
 
113
<a name="l00196"></a>00196 <span class="keyword">    </span>{
 
114
<a name="l00197"></a>00197         <span class="keywordflow">return</span> internalRequestProperty(QLatin1String(<span class="stringliteral">&quot;SupportedAccountProperties&quot;</span>));
 
115
<a name="l00198"></a>00198     }
 
116
<a name="l00199"></a>00199 
 
117
<a name="l00206"></a><a class="code" href="a00048.html#a1f905388fc689a06434548a271dbd83c">00206</a>     <a class="code" href="a00330.html" title="The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...">Tp::PendingVariantMap</a> *requestAllProperties()<span class="keyword"> const</span>
 
118
<a name="l00207"></a>00207 <span class="keyword">    </span>{
 
119
<a name="l00208"></a>00208         <span class="keywordflow">return</span> internalRequestAllProperties();
 
120
<a name="l00209"></a>00209     }
 
121
<a name="l00210"></a>00210 
 
122
<a name="l00211"></a>00211 <span class="keyword">public</span> Q_SLOTS:
 
123
<a name="l00273"></a><a class="code" href="a00048.html#ab7351db4a9af1fbbd0835d9d1e4716fe">00273</a>     <span class="keyword">inline</span> QDBusPendingReply&lt;QDBusObjectPath&gt; CreateAccount(<span class="keyword">const</span> QString&amp; connectionManager, <span class="keyword">const</span> QString&amp; protocol, <span class="keyword">const</span> QString&amp; displayName, <span class="keyword">const</span> QVariantMap&amp; parameters, <span class="keyword">const</span> QVariantMap&amp; properties, <span class="keywordtype">int</span> timeout = -1)
 
124
<a name="l00274"></a>00274     {
 
125
<a name="l00275"></a>00275         <span class="keywordflow">if</span> (!invalidationReason().isEmpty()) {
 
126
<a name="l00276"></a>00276             <span class="keywordflow">return</span> QDBusPendingReply&lt;QDBusObjectPath&gt;(QDBusMessage::createError(
 
127
<a name="l00277"></a>00277                 invalidationReason(),
 
128
<a name="l00278"></a>00278                 invalidationMessage()
 
129
<a name="l00279"></a>00279             ));
 
130
<a name="l00280"></a>00280         }
 
131
<a name="l00281"></a>00281 
 
132
<a name="l00282"></a>00282         QDBusMessage callMessage = QDBusMessage::createMethodCall(this-&gt;service(), this-&gt;path(),
 
133
<a name="l00283"></a>00283                 this-&gt;staticInterfaceName(), QLatin1String(<span class="stringliteral">&quot;CreateAccount&quot;</span>));
 
134
<a name="l00284"></a>00284         callMessage &lt;&lt; QVariant::fromValue(connectionManager) &lt;&lt; QVariant::fromValue(protocol) &lt;&lt; QVariant::fromValue(displayName) &lt;&lt; QVariant::fromValue(parameters) &lt;&lt; QVariant::fromValue(properties);
 
135
<a name="l00285"></a>00285         <span class="keywordflow">return</span> this-&gt;connection().asyncCall(callMessage, timeout);
 
136
<a name="l00286"></a>00286     }
 
137
<a name="l00287"></a>00287 
 
138
<a name="l00288"></a>00288 Q_SIGNALS:
 
139
<a name="l00301"></a>00301     <span class="keywordtype">void</span> AccountRemoved(<span class="keyword">const</span> QDBusObjectPath&amp; account);
 
140
<a name="l00302"></a>00302 
 
141
<a name="l00319"></a>00319     <span class="keywordtype">void</span> AccountValidityChanged(<span class="keyword">const</span> QDBusObjectPath&amp; account, <span class="keywordtype">bool</span> valid);
 
142
<a name="l00320"></a>00320 
 
143
<a name="l00321"></a>00321 <span class="keyword">protected</span>:
 
144
<a name="l00322"></a>00322     <span class="keyword">virtual</span> <span class="keywordtype">void</span> invalidate(<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> *, <span class="keyword">const</span> QString &amp;, <span class="keyword">const</span> QString &amp;);
 
145
<a name="l00323"></a>00323 };
 
146
<a name="l00324"></a>00324 }
 
147
<a name="l00325"></a>00325 }
 
148
<a name="l00326"></a>00326 Q_DECLARE_METATYPE(<a class="code" href="a00048.html">Tp::Client::AccountManagerInterface</a>*)
 
149
</pre></div></div><!-- contents -->
 
150
<p /><address><hr /><div align="center">
 
151
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
152
<td width="30%">Copyright &copy; 2008-2011 Collabora Ltd. and Nokia Corporation</td>
 
153
<td width="30%" align="right"><div align="right">Telepathy-Qt 0.9.3</div></td>
 
154
</tr></table></div></address>
 
155
</body>
 
156
</html>