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>contact-factory.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">contact-factory.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_contact_factory_h_HEADER_GUARD_</span>
38
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define _TelepathyQt_contact_factory_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/Contact></span>
45
<a name="l00031"></a>00031 <span class="preprocessor">#include <TelepathyQt/Feature></span>
46
<a name="l00032"></a>00032 <span class="preprocessor">#include <TelepathyQt/Global></span>
47
<a name="l00033"></a>00033 <span class="preprocessor">#include <TelepathyQt/Types></span>
48
<a name="l00034"></a>00034
49
<a name="l00035"></a>00035 <span class="preprocessor">#include <QSet></span>
50
<a name="l00036"></a>00036 <span class="preprocessor">#include <QtGlobal></span>
51
<a name="l00037"></a>00037
52
<a name="l00038"></a>00038 <span class="keyword">namespace </span>Tp
53
<a name="l00039"></a>00039 {
54
<a name="l00040"></a>00040
55
<a name="l00041"></a>00041 <span class="keyword">class </span>ContactManager;
56
<a name="l00042"></a>00042 <span class="keyword">class </span>ReferencedHandles;
57
<a name="l00043"></a>00043
58
<a name="l00044"></a><a class="code" href="a00197.html">00044</a> <span class="keyword">class </span>TP_QT_EXPORT <a class="code" href="a00197.html" title="The ContactFactory class is responsible for constructing Contact objects according to application-def...">ContactFactory</a> : <span class="keyword">public</span> <a class="code" href="a00362.html" title="The RefCounted class is a base class for shared objects used by SharedPtr.">RefCounted</a>
59
<a name="l00045"></a>00045 {
60
<a name="l00046"></a>00046 Q_DISABLE_COPY(<a class="code" href="a00197.html" title="The ContactFactory class is responsible for constructing Contact objects according to application-def...">ContactFactory</a>)
61
<a name="l00047"></a>00047
62
<a name="l00048"></a>00048 <span class="keyword">public</span>:
63
<a name="l00049"></a>00049 <span class="keyword">static</span> ContactFactoryPtr create(<span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &features = <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a>());
64
<a name="l00050"></a>00050
65
<a name="l00051"></a>00051 <span class="keyword">virtual</span> ~<a class="code" href="a00197.html" title="The ContactFactory class is responsible for constructing Contact objects according to application-def...">ContactFactory</a>();
66
<a name="l00052"></a>00052
67
<a name="l00053"></a>00053 <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> features() <span class="keyword">const</span>;
68
<a name="l00054"></a>00054
69
<a name="l00055"></a>00055 <span class="keywordtype">void</span> addFeature(<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);
70
<a name="l00056"></a>00056 <span class="keywordtype">void</span> addFeatures(<span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &features);
71
<a name="l00057"></a>00057
72
<a name="l00058"></a>00058 <span class="keyword">protected</span>:
73
<a name="l00059"></a>00059 <a class="code" href="a00197.html" title="The ContactFactory class is responsible for constructing Contact objects according to application-def...">ContactFactory</a>(<span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &features);
74
<a name="l00060"></a>00060
75
<a name="l00061"></a>00061 <span class="keyword">virtual</span> ContactPtr construct(<a class="code" href="a00201.html" title="The ContactManager class is responsible for managing contacts.">ContactManager</a> *manager, <span class="keyword">const</span> <a class="code" href="a00363.html" title="Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...">ReferencedHandles</a> &handle,
76
<a name="l00062"></a>00062 <span class="keyword">const</span> <a class="code" href="a00228.html" title="The Features class represents a list of Feature.">Features</a> &features, <span class="keyword">const</span> QVariantMap &attributes) <span class="keyword">const</span>;
77
<a name="l00063"></a>00063 <span class="keyword">virtual</span> <a class="code" href="a00320.html" title="The PendingOperation class is a base class for pending asynchronous operations.">PendingOperation</a> *prepare(<span class="keyword">const</span> ContactPtr &contact) <span class="keyword">const</span>;
78
<a name="l00064"></a>00064
79
<a name="l00065"></a>00065 <span class="keyword">private</span>:
80
<a name="l00066"></a><a class="code" href="a00197.html#a47e77d21706e11e895af252dd4105c97">00066</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00201.html" title="The ContactManager class is responsible for managing contacts.">ContactManager</a>;
81
<a name="l00067"></a><a class="code" href="a00197.html#a0972aa7b2aca87be39777030afeacbb8">00067</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00315.html" title="The PendingContacts class is used by ContactManager when creating/updating Contact objects...">PendingContacts</a>;
82
<a name="l00068"></a>00068
83
<a name="l00069"></a><a class="code" href="a00197.html#a15a94ff2bd578e608a94d0a1ba4bd3e0">00069</a> <span class="keyword">struct </span>Private;
84
<a name="l00070"></a>00070 <span class="keyword">friend</span> <span class="keyword">struct </span>Private;
85
<a name="l00071"></a>00071 Private *mPriv;
86
<a name="l00072"></a>00072 };
87
<a name="l00073"></a>00073
88
<a name="l00074"></a>00074 } <span class="comment">// Tp</span>
89
<a name="l00075"></a>00075
90
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
91
</pre></div></div><!-- contents -->
92
<p /><address><hr /><div align="center">
93
<table width="100%" cellspacing="0" border="0"><tr class="address">
94
<td width="30%">Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation</td>
95
<td width="30%" align="right"><div align="right">Telepathy-Qt 0.9.3</div></td>
96
</tr></table></div></address>