File: classTp_1_1AccountManager.html

package info (click to toggle)
telepathy-qt4 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 14,260 kB
  • ctags: 12,185
  • sloc: cpp: 29,241; xml: 23,692; ansic: 16,079; sh: 10,327; python: 3,080; makefile: 1,553
file content (870 lines) | stat: -rw-r--r-- 51,862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>TelepathyQt4: Tp::AccountManager Class Reference</title>
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1">&nbsp;&nbsp;</td>
<td class="postheader" valign="center">
<a href="index.html">
<font color="#004faf">Home</font></a>&nbsp;&middot;
<a href="classes.html">
<font color="#004faf">All Classes</font></a>&nbsp;&middot;
<a href="namespaces.html">
<font color="#004faf">All Namespaces</font></a>&nbsp;&middot;
<a href="modules.html">
<font color="#004faf">Modules</font></a>&nbsp;&middot;
<a href="functions.html">
<font color="#004faf">Functions</font></a>&nbsp;&middot;
<a href="files.html">
<font color="#004faf">Files</font></a>
</td>
</tr>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.6.3 -->
  <div class="navpath"><a class="el" href="namespaceTp.html">Tp</a>::<a class="el" href="classTp_1_1AccountManager.html">AccountManager</a>
  </div>
<div class="contents">
<h1>Tp::AccountManager Class Reference<br/>
<small>
[<a class="el" href="group__clientam.html">Account manager proxies</a>]</small>
</h1><!-- doxytag: class="Tp::AccountManager" --><!-- doxytag: inherits="Tp::StatelessDBusProxy,OptionalInterfaceFactory&lt; AccountManager &gt;,Tp::ReadyObject,Tp::RefCounted" -->
<p>The <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> class provides an object representing a Telepathy account manager.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="account-manager_8h_source.html">TelepathyQt4/AccountManager</a>&gt;</code></p>

<p>Inherits <a class="el" href="classTp_1_1StatelessDBusProxy.html">Tp::StatelessDBusProxy</a>, <a class="el" href="classTp_1_1OptionalInterfaceFactory.html">OptionalInterfaceFactory&lt; AccountManager &gt;</a>, <a class="el" href="classTp_1_1ReadyObject.html">Tp::ReadyObject</a>, and <a class="el" href="classTp_1_1RefCounted.html">Tp::RefCounted</a>.</p>

<p><a href="classTp_1_1AccountManager-members.html">List of all members.</a></p>
<h2>Signals</h2>
<ul>
<li>TELEPATHY_QT4_DEPRECATED void <a class="el" href="classTp_1_1AccountManager.html#a10ee95dfd928d1367fcaf85aa438284e">accountCreated</a> (const QString &amp;path)
<li>TELEPATHY_QT4_DEPRECATED void <a class="el" href="classTp_1_1AccountManager.html#a7fc8f333c75abc4f92d1b3a2bb2a508d">accountRemoved</a> (const QString &amp;path)
<li>TELEPATHY_QT4_DEPRECATED void <a class="el" href="classTp_1_1AccountManager.html#a88f20dfea963d4d3f0cad1a2ada3195f">accountValidityChanged</a> (const QString &amp;path, bool valid)
<li>void <a class="el" href="classTp_1_1AccountManager.html#aef650cc35bea6a034b0dd15214e5e5ac">newAccount</a> (const <a class="el" href="classTp_1_1SharedPtr.html">Tp::AccountPtr</a> &amp;account)
</ul>
<h2>Public Member Functions</h2>
<ul>
<li>virtual <a class="el" href="classTp_1_1AccountManager.html#ae287073f203f0a8d78f5e6c2892c39f6">~AccountManager</a> ()
<li>TELEPATHY_QT4_DEPRECATED <br class="typebreak"/>
QStringList <a class="el" href="classTp_1_1AccountManager.html#a7f857e61a43454728f6ec16597f0d491">validAccountPaths</a> () const 
<li>TELEPATHY_QT4_DEPRECATED <br class="typebreak"/>
QStringList <a class="el" href="classTp_1_1AccountManager.html#a16afaf8b689672adc038ad7281f2fd2f">invalidAccountPaths</a> () const 
<li>TELEPATHY_QT4_DEPRECATED <br class="typebreak"/>
QStringList <a class="el" href="classTp_1_1AccountManager.html#a16d55a1a18f2208b234c474c7c6b63b6">allAccountPaths</a> () const 
<li>TELEPATHY_QT4_DEPRECATED QList<br class="typebreak"/>
&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; <a class="el" href="classTp_1_1AccountManager.html#a577ec0b83988c4ae367a7ea0f3d02e63">validAccounts</a> ()
<li>TELEPATHY_QT4_DEPRECATED QList<br class="typebreak"/>
&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; <a class="el" href="classTp_1_1AccountManager.html#a8e7db90fb0f26d8806ffcec723258588">invalidAccounts</a> ()
<li>QList&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; <a class="el" href="classTp_1_1AccountManager.html#a45bc52b51124958693c0fec2624838e0">allAccounts</a> ()
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#aecbfe0bb67de2fc0dd0942674b2d8e3c">validAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a1248bc61f6b81217e25c34de52f25722">invalidAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a6f0b99862a0818d0c3d37794f37b8835">enabledAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#aa0394e5fa1836adc32ce31b6debd502c">disabledAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a8ab4404fd72b33aa81c00814a83bdee7">onlineAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a812933dc6b0ef905306e96d59ba33d84">offlineAccountsSet</a> () const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a7ebe2dbc3f23e3be8ff282db794af7e7">accountsByProtocol</a> (const QString &amp;protocolName) const 
<li><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a208ba628bd31eada3772f7a9157cf372">filterAccounts</a> (const QVariantMap &amp;filter) const 
<li>TELEPATHY_QT4_DEPRECATED <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> <a class="el" href="classTp_1_1AccountManager.html#af4f7ff2818f012fe236487ed1b0174be">accountForPath</a> (const QString &amp;path)
<li>TELEPATHY_QT4_DEPRECATED QList<br class="typebreak"/>
&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; <a class="el" href="classTp_1_1AccountManager.html#a85444b96a53d47b76e22de940206a4a7">accountsForPaths</a> (const QStringList &amp;paths)
<li>QStringList <a class="el" href="classTp_1_1AccountManager.html#a40fa241a679442565532e1e52dbbf6cd">supportedAccountProperties</a> () const 
<li><a class="el" href="classTp_1_1PendingAccount.html">PendingAccount</a> * <a class="el" href="classTp_1_1AccountManager.html#aa2d5cdc6e92c2a11a1fa07dabfaca95d">createAccount</a> (const QString &amp;connectionManager, const QString &amp;protocol, const QString &amp;displayName, const QVariantMap &amp;parameters, const QVariantMap &amp;properties=QVariantMap())
<li>Client::DBus::PropertiesInterface * <a class="el" href="classTp_1_1AccountManager.html#a89db67d1958f20a9822f42c3b4e0827a">propertiesInterface</a> () const 
</ul>
<h2>Static Public Member Functions</h2>
<ul>
<li>static <a class="el" href="classTp_1_1SharedPtr.html">AccountManagerPtr</a> <a class="el" href="classTp_1_1AccountManager.html#ab9f3f0b455ebae4a1b6c0d83509f87ef">create</a> ()
<li>static <a class="el" href="classTp_1_1SharedPtr.html">AccountManagerPtr</a> <a class="el" href="classTp_1_1AccountManager.html#a30ff19bd33c13261dcc5d2eed7c5a87e">create</a> (const QDBusConnection &amp;bus)
</ul>
<h2>Static Public Attributes</h2>
<ul>
<li>static const <a class="el" href="classTp_1_1Feature.html">Feature</a> <a class="el" href="classTp_1_1AccountManager.html#ac1779286fbe3671cb7ae713963fa28ac">FeatureCore</a>
</ul>
<h2>Protected Member Functions</h2>
<ul>
<li><a class="el" href="classTp_1_1AccountManager.html#a7999b56bd711daf42776905a44abe995">AccountManager</a> ()
<li><a class="el" href="classTp_1_1AccountManager.html#a0b3d096e261db2266f6ac8942e2ba17e">AccountManager</a> (const QDBusConnection &amp;bus)
<li>Client::AccountManagerInterface * <a class="el" href="classTp_1_1AccountManager.html#ac611e39ad5432d9804171e2514008b0e">baseInterface</a> () const 
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> class provides an object representing a Telepathy account manager. </p>
<p><a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> adds the following features compared to using Client::AccountManagerInterface directly: </p>
<ul>
<li>
<a class="el" href="classTp_1_1Account.html" title="The Account class provides an object representing a Telepathy account.">Account</a> status tracking </li>
<li>
Getting the list of supported interfaces automatically </li>
<li>
Cache <a class="el" href="classTp_1_1Account.html" title="The Account class provides an object representing a Telepathy account.">Account</a> objects when they are requested the first time </li>
</ul>
<p>The remote object accessor functions on this object (<a class="el" href="classTp_1_1AccountManager.html#a16d55a1a18f2208b234c474c7c6b63b6">allAccountPaths()</a>, <a class="el" href="classTp_1_1AccountManager.html#a45bc52b51124958693c0fec2624838e0">allAccounts()</a>, and so on) don't make any D-Bus calls; instead, they return/use values cached from a previous introspection run. The introspection process populates their values in the most efficient way possible based on what the service implements. Their return value is mostly undefined until the introspection process is completed, i.e. <a class="el" href="classTp_1_1ReadyObject.html#a344fc63eaef5278cbf938eaa1ed4c635">isReady()</a> returns true. See the individual accessor descriptions for more details.</p>
<p>Signals are emitted to indicate that accounts are added/removed and when accounts validity changes. See <a class="el" href="classTp_1_1AccountManager.html#a10ee95dfd928d1367fcaf85aa438284e">accountCreated()</a>, <a class="el" href="classTp_1_1AccountManager.html#a7fc8f333c75abc4f92d1b3a2bb2a508d">accountRemoved()</a>, <a class="el" href="classTp_1_1AccountManager.html#a88f20dfea963d4d3f0cad1a2ada3195f">accountValidityChanged()</a>.</p>
<h2><a class="anchor" id="am_usage_sec">
Usage</a></h2>
<h3><a class="anchor" id="am_create_sec">
Creating an account manager object</a></h3>
<p>One way to create an <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object is to just call the create method. For example:</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="namespaceTp.html#ad8f985f6498607bfd07e032527d57242">AccountManagerPtr</a> am = <a class="code" href="classTp_1_1AccountManager.html#ab9f3f0b455ebae4a1b6c0d83509f87ef">AccountManager::create</a>(); 
</pre></div><p>An AccountManagerPtr object is returned, which will automatically keep track of object lifetime.</p>
<p>You can also provide a D-Bus connection as a QDBusConnection:</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="namespaceTp.html#ad8f985f6498607bfd07e032527d57242">AccountManagerPtr</a> am = <a class="code" href="classTp_1_1AccountManager.html#ab9f3f0b455ebae4a1b6c0d83509f87ef">AccountManager::create</a>(QDBusConnection::sessionBus()); 
</pre></div><h3><a class="anchor" id="am_ready_sec">
Making account manager ready to use</a></h3>
<p>An <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object needs to become ready before usage, meaning that the introspection process finished and the object accessors can be used.</p>
<p>To make the object ready, use <a class="el" href="classTp_1_1ReadyObject.html#ac02393f99a46725a4ffee32caaec13cc">becomeReady()</a> and wait for the <a class="el" href="classTp_1_1PendingOperation.html#addbb8c4462019ffdf19095a31da0cc7a">PendingOperation::finished()</a> signal to be emitted.</p>
<div class="fragment"><pre class="fragment"> <span class="keyword">class </span>MyClass : <span class="keyword">public</span> QObject
 {
     QOBJECT

 <span class="keyword">public</span>:
     MyClass(QObject *parent = 0);
     ~MyClass() { }

 <span class="keyword">private</span> Q_SLOTS:
     <span class="keywordtype">void</span> onAccountManagerReady(<a class="code" href="classTp_1_1PendingOperation.html" title="Abstract base class for pending asynchronous operations.">Tp::PendingOperation</a>*);

 <span class="keyword">private</span>:
     <a class="code" href="namespaceTp.html#ad8f985f6498607bfd07e032527d57242">AccountManagerPtr</a> am;
 };

 MyClass::MyClass(QObject *parent)
     : QObject(parent)
       am(<a class="code" href="classTp_1_1AccountManager.html#a7999b56bd711daf42776905a44abe995">AccountManager</a>::<a class="code" href="classTp_1_1AccountManager.html#ab9f3f0b455ebae4a1b6c0d83509f87ef">create</a>())
 {
     connect(am-&gt;becomeReady(),
             SIGNAL(finished(<a class="code" href="classTp_1_1PendingOperation.html" title="Abstract base class for pending asynchronous operations.">Tp::PendingOperation</a>*)),
             SLOT(onAccountManagerReady(<a class="code" href="classTp_1_1PendingOperation.html" title="Abstract base class for pending asynchronous operations.">Tp::PendingOperation</a>*)));
 }

 <span class="keywordtype">void</span> MyClass::onAccountManagerReady(<a class="code" href="classTp_1_1PendingOperation.html" title="Abstract base class for pending asynchronous operations.">Tp::PendingOperation</a> *op)
 {
     <span class="keywordflow">if</span> (op-&gt;<a class="code" href="classTp_1_1PendingOperation.html#a24440bb6d849af38b6e439cdca9e0707">isError</a>()) {
         qWarning() &lt;&lt; <span class="stringliteral">&quot;Account manager cannot become ready:&quot;</span> &lt;&lt;
             op-&gt;<a class="code" href="classTp_1_1PendingOperation.html#a59a70ec4857b40d3355c2f336229216a">errorName</a>() &lt;&lt; <span class="stringliteral">&quot;-&quot;</span> &lt;&lt; op-&gt;<a class="code" href="classTp_1_1PendingOperation.html#ab17664ef188c153aed9fdac478ee8c76">errorMessage</a>();
         <span class="keywordflow">return</span>;
     }

     <span class="comment">// AccountManager is now ready</span>
     qDebug() &lt;&lt; <span class="stringliteral">&quot;Valid accounts:&quot;</span>;
     <span class="keywordflow">foreach</span> (<span class="keyword">const</span> QString &amp;path, am-&gt;validAccountPaths()) {
         qDebug() &lt;&lt; <span class="stringliteral">&quot; path:&quot;</span> &lt;&lt; path;
     }
 }
</pre></div><p>See <a class="el" href="async__model.html">Asynchronous Object Model</a>, <a class="el" href="shared__ptr.html">Shared Pointer Usage</a> </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae287073f203f0a8d78f5e6c2892c39f6"></a><!-- doxytag: member="Tp::AccountManager::~AccountManager" ref="ae287073f203f0a8d78f5e6c2892c39f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tp::AccountManager::~AccountManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Class destructor. </p>

</div>
</div>
<a class="anchor" id="a7999b56bd711daf42776905a44abe995"></a><!-- doxytag: member="Tp::AccountManager::AccountManager" ref="a7999b56bd711daf42776905a44abe995" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tp::AccountManager::AccountManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct a new <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object using QDBusConnection::sessionBus(). </p>

</div>
</div>
<a class="anchor" id="a0b3d096e261db2266f6ac8942e2ba17e"></a><!-- doxytag: member="Tp::AccountManager::AccountManager" ref="a0b3d096e261db2266f6ac8942e2ba17e" args="(const QDBusConnection &amp;bus)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tp::AccountManager::AccountManager </td>
          <td>(</td>
          <td class="paramtype">const QDBusConnection &amp;&nbsp;</td>
          <td class="paramname"> <em>bus</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct a new <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object using the given <em>bus</em>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bus</em>&nbsp;</td><td>QDBusConnection to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab9f3f0b455ebae4a1b6c0d83509f87ef"></a><!-- doxytag: member="Tp::AccountManager::create" ref="ab9f3f0b455ebae4a1b6c0d83509f87ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountManagerPtr</a> Tp::AccountManager::create </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object using QDBusConnection::sessionBus().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>An AccountManagerPtr object pointing to the newly created <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="a30ff19bd33c13261dcc5d2eed7c5a87e"></a><!-- doxytag: member="Tp::AccountManager::create" ref="a30ff19bd33c13261dcc5d2eed7c5a87e" args="(const QDBusConnection &amp;bus)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountManagerPtr</a> Tp::AccountManager::create </td>
          <td>(</td>
          <td class="paramtype">const QDBusConnection &amp;&nbsp;</td>
          <td class="paramname"> <em>bus</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object using the given <em>bus</em>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bus</em>&nbsp;</td><td>QDBusConnection to use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An AccountManagerPtr object pointing to the newly created <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="a7f857e61a43454728f6ec16597f0d491"></a><!-- doxytag: member="Tp::AccountManager::validAccountPaths" ref="a7f857e61a43454728f6ec16597f0d491" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList Tp::AccountManager::validAccountPaths </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of object paths for all valid accounts.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of object paths. </dd></dl>

</div>
</div>
<a class="anchor" id="a16afaf8b689672adc038ad7281f2fd2f"></a><!-- doxytag: member="Tp::AccountManager::invalidAccountPaths" ref="a16afaf8b689672adc038ad7281f2fd2f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList Tp::AccountManager::invalidAccountPaths </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of object paths for all invalid accounts.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of object paths. </dd></dl>

</div>
</div>
<a class="anchor" id="a16d55a1a18f2208b234c474c7c6b63b6"></a><!-- doxytag: member="Tp::AccountManager::allAccountPaths" ref="a16d55a1a18f2208b234c474c7c6b63b6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList Tp::AccountManager::allAccountPaths </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of object paths for all accounts.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of object paths. </dd></dl>

</div>
</div>
<a class="anchor" id="a577ec0b83988c4ae367a7ea0f3d02e63"></a><!-- doxytag: member="Tp::AccountManager::validAccounts" ref="a577ec0b83988c4ae367a7ea0f3d02e63" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; Tp::AccountManager::validAccounts </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of AccountPtr objects for all valid accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of AccountPtr objects. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a8e7db90fb0f26d8806ffcec723258588">invalidAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a45bc52b51124958693c0fec2624838e0">allAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a85444b96a53d47b76e22de940206a4a7">accountsForPaths()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8e7db90fb0f26d8806ffcec723258588"></a><!-- doxytag: member="Tp::AccountManager::invalidAccounts" ref="a8e7db90fb0f26d8806ffcec723258588" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; Tp::AccountManager::invalidAccounts </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of AccountPtr objects for all invalid accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of AccountPtr objects. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a577ec0b83988c4ae367a7ea0f3d02e63">validAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a45bc52b51124958693c0fec2624838e0">allAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a85444b96a53d47b76e22de940206a4a7">accountsForPaths()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a45bc52b51124958693c0fec2624838e0"></a><!-- doxytag: member="Tp::AccountManager::allAccounts" ref="a45bc52b51124958693c0fec2624838e0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; Tp::AccountManager::allAccounts </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of AccountPtr objects for all accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of AccountPtr objects. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a577ec0b83988c4ae367a7ea0f3d02e63">validAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a8e7db90fb0f26d8806ffcec723258588">invalidAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a85444b96a53d47b76e22de940206a4a7">accountsForPaths()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aecbfe0bb67de2fc0dd0942674b2d8e3c"></a><!-- doxytag: member="Tp::AccountManager::validAccountsSet" ref="aecbfe0bb67de2fc0dd0942674b2d8e3c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::validAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all valid accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all valid accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="a1248bc61f6b81217e25c34de52f25722"></a><!-- doxytag: member="Tp::AccountManager::invalidAccountsSet" ref="a1248bc61f6b81217e25c34de52f25722" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::invalidAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all invalid accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all invalid accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="a6f0b99862a0818d0c3d37794f37b8835"></a><!-- doxytag: member="Tp::AccountManager::enabledAccountsSet" ref="a6f0b99862a0818d0c3d37794f37b8835" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::enabledAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all enabled accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all enabled accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="aa0394e5fa1836adc32ce31b6debd502c"></a><!-- doxytag: member="Tp::AccountManager::disabledAccountsSet" ref="aa0394e5fa1836adc32ce31b6debd502c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::disabledAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all disabled accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all disabled accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="a8ab4404fd72b33aa81c00814a83bdee7"></a><!-- doxytag: member="Tp::AccountManager::onlineAccountsSet" ref="a8ab4404fd72b33aa81c00814a83bdee7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::onlineAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all online accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all online accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="a812933dc6b0ef905306e96d59ba33d84"></a><!-- doxytag: member="Tp::AccountManager::offlineAccountsSet" ref="a812933dc6b0ef905306e96d59ba33d84" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::offlineAccountsSet </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all offline accounts.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all offline accounts. </dd></dl>

</div>
</div>
<a class="anchor" id="a7ebe2dbc3f23e3be8ff282db794af7e7"></a><!-- doxytag: member="Tp::AccountManager::accountsByProtocol" ref="a7ebe2dbc3f23e3be8ff282db794af7e7" args="(const QString &amp;protocolName) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::accountsByProtocol </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>protocolName</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all accounts for the given <em>protocolName</em>.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>protocolName</em>&nbsp;</td><td>The name of the protocol used to filter accounts. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all accounts for the given <em>protocolName</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a208ba628bd31eada3772f7a9157cf372"></a><!-- doxytag: member="Tp::AccountManager::filterAccounts" ref="a208ba628bd31eada3772f7a9157cf372" args="(const QVariantMap &amp;filter) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountSetPtr</a> Tp::AccountManager::filterAccounts </td>
          <td>(</td>
          <td class="paramtype">const QVariantMap &amp;&nbsp;</td>
          <td class="paramname"> <em>filter</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a set of accounts containing all accounts that match the given <em>filter</em> criteria.</p>
<p>The <em>filter</em> is composed by <a class="el" href="classTp_1_1Account.html" title="The Account class provides an object representing a Telepathy account.">Account</a> property names and values as map items.</p>
<p>QVariantMap filter; filter.insert(QLatin1String("protocol"), QLatin1String("jabber")); filter.insert(QLatin1String("enabled"), true);</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>filter</em>&nbsp;</td><td>The desired filter </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A set of accounts containing all accounts that match the given <em>filter</em> criteria. </dd></dl>

</div>
</div>
<a class="anchor" id="af4f7ff2818f012fe236487ed1b0174be"></a><!-- doxytag: member="Tp::AccountManager::accountForPath" ref="af4f7ff2818f012fe236487ed1b0174be" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> Tp::AccountManager::accountForPath </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return an AccountPtr object for the given <em>path</em>.</p>
<p>Note that the returned account already has the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>The account object path. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An AccountPtr object pointing to the <a class="el" href="classTp_1_1Account.html" title="The Account class provides an object representing a Telepathy account.">Account</a> object for the given <em>path</em>, or a null AccountPtr if <em>path</em> is invalid. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a577ec0b83988c4ae367a7ea0f3d02e63">validAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a8e7db90fb0f26d8806ffcec723258588">invalidAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a85444b96a53d47b76e22de940206a4a7">accountsForPaths()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a85444b96a53d47b76e22de940206a4a7"></a><!-- doxytag: member="Tp::AccountManager::accountsForPaths" ref="a85444b96a53d47b76e22de940206a4a7" args="(const QStringList &amp;paths)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="classTp_1_1SharedPtr.html">AccountPtr</a> &gt; Tp::AccountManager::accountsForPaths </td>
          <td>(</td>
          <td class="paramtype">const QStringList &amp;&nbsp;</td>
          <td class="paramname"> <em>paths</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of AccountPtr objects for the given <em>paths</em>.</p>
<p>The returned list will have one AccountPtr object for each given path. If a given path is invalid the returned AccountPtr object will point to 0. <a class="el" href="classTp_1_1SharedPtr.html#ae420fced157c5aa01e6657c99b7e2369">AccountPtr::isNull()</a> will return true.</p>
<p>Note that the returned accounts already have the <a class="el" href="classTp_1_1Account.html#a7539f38c2b784fb4b9f97da4ea97a6ad">Account::FeatureCore</a> enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>paths</em>&nbsp;</td><td>List of accounts object paths. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of AccountPtr objects. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a577ec0b83988c4ae367a7ea0f3d02e63">validAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a8e7db90fb0f26d8806ffcec723258588">invalidAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#a45bc52b51124958693c0fec2624838e0">allAccounts()</a>, <a class="el" href="classTp_1_1AccountManager.html#af4f7ff2818f012fe236487ed1b0174be">accountForPath()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a40fa241a679442565532e1e52dbbf6cd"></a><!-- doxytag: member="Tp::AccountManager::supportedAccountProperties" ref="a40fa241a679442565532e1e52dbbf6cd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList Tp::AccountManager::supportedAccountProperties </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a list of the fully qualified names of properties that can be set when calling <a class="el" href="classTp_1_1AccountManager.html#aa2d5cdc6e92c2a11a1fa07dabfaca95d">createAccount()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A list of fully qualified D-Bus property names, such as "org.freedesktop.Telepathy.Account.Enabled" </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#aa2d5cdc6e92c2a11a1fa07dabfaca95d">createAccount()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa2d5cdc6e92c2a11a1fa07dabfaca95d"></a><!-- doxytag: member="Tp::AccountManager::createAccount" ref="aa2d5cdc6e92c2a11a1fa07dabfaca95d" args="(const QString &amp;connectionManager, const QString &amp;protocol, const QString &amp;displayName, const QVariantMap &amp;parameters, const QVariantMap &amp;properties=QVariantMap())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTp_1_1PendingAccount.html">PendingAccount</a> * Tp::AccountManager::createAccount </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>connectionManager</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>protocol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>displayName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVariantMap &amp;&nbsp;</td>
          <td class="paramname"> <em>parameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVariantMap &amp;&nbsp;</td>
          <td class="paramname"> <em>properties</em> = <code>QVariantMap()</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create an account with the given parameters.</p>
<p>The optional properties argument can be used to set any property listed in <a class="el" href="classTp_1_1AccountManager.html#a40fa241a679442565532e1e52dbbf6cd">supportedAccountProperties()</a> at the time the account is created.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>connectionManager</em>&nbsp;</td><td>Name of the connection manager to create the account for. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>protocol</em>&nbsp;</td><td>Name of the protocol to create the account for. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayName</em>&nbsp;</td><td>The account display name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parameters</em>&nbsp;</td><td>The account parameters. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>properties</em>&nbsp;</td><td>An optional map from fully qualified D-Bus property names such as "org.freedesktop.Telepathy.Account.Enabled" to their values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classTp_1_1PendingAccount.html" title="Class containing the parameters of and the reply to an asynchronous account request...">PendingAccount</a> object which will emit <a class="el" href="classTp_1_1PendingOperation.html#addbb8c4462019ffdf19095a31da0cc7a">PendingAccount::finished</a> when the account has been created of failed its creation process. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#a40fa241a679442565532e1e52dbbf6cd">supportedAccountProperties()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a89db67d1958f20a9822f42c3b4e0827a"></a><!-- doxytag: member="Tp::AccountManager::propertiesInterface" ref="a89db67d1958f20a9822f42c3b4e0827a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Client::DBus::PropertiesInterface * Tp::AccountManager::propertiesInterface </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convenience function for getting a PropertiesInterface interface proxy object for this account manager. The <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> interface relies on properties, so this interface is always assumed to be present.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the existing Client::DBus::PropertiesInterface object for this <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="a10ee95dfd928d1367fcaf85aa438284e"></a><!-- doxytag: member="Tp::AccountManager::accountCreated" ref="a10ee95dfd928d1367fcaf85aa438284e" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tp::AccountManager::accountCreated </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This signal is emitted when a new account is created.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>The object path of the newly created account. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#af4f7ff2818f012fe236487ed1b0174be">accountForPath()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7fc8f333c75abc4f92d1b3a2bb2a508d"></a><!-- doxytag: member="Tp::AccountManager::accountRemoved" ref="a7fc8f333c75abc4f92d1b3a2bb2a508d" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tp::AccountManager::accountRemoved </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This signal is emitted when an account gets removed.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>The object path of the removed account. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#af4f7ff2818f012fe236487ed1b0174be">accountForPath()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a88f20dfea963d4d3f0cad1a2ada3195f"></a><!-- doxytag: member="Tp::AccountManager::accountValidityChanged" ref="a88f20dfea963d4d3f0cad1a2ada3195f" args="(const QString &amp;path, bool valid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tp::AccountManager::accountValidityChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>valid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This signal is emitted when an account validity changes.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>The object path of the account in which the validity changed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>valid</em>&nbsp;</td><td>Whether the account is valid or not. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1AccountManager.html#af4f7ff2818f012fe236487ed1b0174be">accountForPath()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aef650cc35bea6a034b0dd15214e5e5ac"></a><!-- doxytag: member="Tp::AccountManager::newAccount" ref="aef650cc35bea6a034b0dd15214e5e5ac" args="(const Tp::AccountPtr &amp;account)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tp::AccountManager::newAccount </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTp_1_1SharedPtr.html">Tp::AccountPtr</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>account</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac611e39ad5432d9804171e2514008b0e"></a><!-- doxytag: member="Tp::AccountManager::baseInterface" ref="ac611e39ad5432d9804171e2514008b0e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Client::AccountManagerInterface * Tp::AccountManager::baseInterface </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the Client::AccountManagerInterface interface proxy object for this account manager. This method is protected since the convenience methods provided by this class should generally be used instead of calling D-Bus methods directly.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the existing Client::AccountManagerInterface object for this <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object. </dd></dl>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ac1779286fbe3671cb7ae713963fa28ac"></a><!-- doxytag: member="Tp::AccountManager::FeatureCore" ref="ac1779286fbe3671cb7ae713963fa28ac" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classTp_1_1Feature.html">Feature</a> <a class="el" href="classTp_1_1AccountManager.html#ac1779286fbe3671cb7ae713963fa28ac">Tp::AccountManager::FeatureCore</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classTp_1_1Feature.html">Feature</a> representing the core that needs to become ready to make the <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> object usable.</p>
<p>Note that this feature must be enabled in order to use any <a class="el" href="classTp_1_1AccountManager.html" title="The AccountManager class provides an object representing a Telepathy account manager...">AccountManager</a> method.</p>
<p>When calling <a class="el" href="classTp_1_1ReadyObject.html#a344fc63eaef5278cbf938eaa1ed4c635">isReady()</a>, <a class="el" href="classTp_1_1ReadyObject.html#ac02393f99a46725a4ffee32caaec13cc">becomeReady()</a>, this feature is implicitly added to the requested features. </p>

</div>
</div>
</div>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008-2010 Collabora Ltd. and Nokia Corporation</td>
<td width="30%" align="right"><div align="right">Telepathy-Qt4 0.3.6</div></td>
</tr></table></div></address>
</body>
</html>