base-connection.h Source File

| Home · All Classes · All Namespaces · Modules · Functions · Files

base-connection.h
1
23 #ifndef _TelepathyQt_base_connection_h_HEADER_GUARD_
24 #define _TelepathyQt_base_connection_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/AvatarSpec>
31 #include <TelepathyQt/DBusService>
32 #include <TelepathyQt/Global>
33 #include <TelepathyQt/Types>
34 #include <TelepathyQt/Callbacks>
35 #include <TelepathyQt/Constants>
36
37 #include <QDBusConnection>
38
39 class QString;
40
41 namespace Tp
42 {
43
44 class TP_QT_EXPORT BaseConnection : public DBusService
45 {
46 Q_OBJECT
47 Q_DISABLE_COPY(BaseConnection)
48
49 public:
50 static BaseConnectionPtr create(const QString &cmName, const QString &protocolName,
51 const QVariantMap &parameters,
52 const QDBusConnection &dbusConnection = QDBusConnection::sessionBus())
53 {
54 return BaseConnectionPtr(new BaseConnection(
55 dbusConnection, cmName, protocolName, parameters));
56 }
57 template<typename BaseConnectionSubclass>
58 static SharedPtr<BaseConnectionSubclass> create(const QString &cmName,
59 const QString &protocolName, const QVariantMap &parameters,
60 const QDBusConnection &dbusConnection = QDBusConnection::sessionBus())
61 {
62 return SharedPtr<BaseConnectionSubclass>(new BaseConnectionSubclass(
63 dbusConnection, cmName, protocolName, parameters));
64 }
65
66 virtual ~BaseConnection();
67
68 QString cmName() const;
69 QString protocolName() const;
70 QVariantMap parameters() const;
71 QVariantMap immutableProperties() const;
72
73 uint selfHandle() const;
74 void setSelfHandle(uint selfHandle);
75
76 QString selfID() const;
77 void setSelfID(const QString &selfID);
78
79 void setSelfContact(uint selfHandle, const QString &selfID);
80
81 uint status() const;
82 void setStatus(uint newStatus, uint reason);
83
84 typedef Callback2<BaseChannelPtr, const QVariantMap &, DBusError*> CreateChannelCallback;
85 void setCreateChannelCallback(const CreateChannelCallback &cb);
86 BaseChannelPtr createChannel(const QVariantMap &request, bool suppressHandler, DBusError *error);
87
88 typedef Callback1<void, DBusError*> ConnectCallback;
89 void setConnectCallback(const ConnectCallback &cb);
90
91 typedef Callback3<QStringList, uint, const Tp::UIntList &, DBusError*> InspectHandlesCallback;
92 void setInspectHandlesCallback(const InspectHandlesCallback &cb);
93 QStringList inspectHandles(uint handleType, const Tp::UIntList &handles, DBusError *error);
94
95 typedef Callback3<Tp::UIntList, uint, const QStringList &, DBusError*> RequestHandlesCallback;
96 void setRequestHandlesCallback(const RequestHandlesCallback &cb);
97 Tp::UIntList requestHandles(uint handleType, const QStringList &identifiers, DBusError *error);
98
99 Tp::ChannelInfoList channelsInfo();
100 Tp::ChannelDetailsList channelsDetails();
101
102 BaseChannelPtr ensureChannel(const QVariantMap &request, bool &yours, bool suppressHandler, DBusError *error);
103
104 void addChannel(BaseChannelPtr channel, bool suppressHandler = false);
105
106 QList<AbstractConnectionInterfacePtr> interfaces() const;
107 AbstractConnectionInterfacePtr interface(const QString &interfaceName) const;
108 bool plugInterface(const AbstractConnectionInterfacePtr &interface);
109 bool registerObject(DBusError *error = NULL);
110
111 virtual QString uniqueName() const;
112
113 Q_SIGNALS:
114 void disconnected();
115
116 private Q_SLOTS:
117 TP_QT_NO_EXPORT void removeChannel();
118
119 protected:
120 BaseConnection(const QDBusConnection &dbusConnection,
121 const QString &cmName, const QString &protocolName,
122 const QVariantMap &parameters);
123
124 virtual bool registerObject(const QString &busName, const QString &objectPath,
125 DBusError *error);
126
127 virtual bool matchChannel(const Tp::BaseChannelPtr &channel, const QVariantMap &request, Tp::DBusError *error);
128
129 private:
130 class Adaptee;
131 friend class Adaptee;
132 struct Private;
133 friend struct Private;
134 Private *mPriv;
135 };
136
137 class TP_QT_EXPORT AbstractConnectionInterface : public AbstractDBusServiceInterface
138 {
139 Q_OBJECT
140 Q_DISABLE_COPY(AbstractConnectionInterface)
141
142 public:
143 AbstractConnectionInterface(const QString &interfaceName);
144 virtual ~AbstractConnectionInterface();
145
146 private:
147 friend class BaseConnection;
148
149 struct Private;
150 friend struct Private;
151 Private *mPriv;
152 };
153
154 class TP_QT_EXPORT BaseConnectionRequestsInterface : public AbstractConnectionInterface
155 {
156 Q_OBJECT
157 Q_DISABLE_COPY(BaseConnectionRequestsInterface)
158
159 public:
160 static BaseConnectionRequestsInterfacePtr create(BaseConnection* connection) {
161 return BaseConnectionRequestsInterfacePtr(new BaseConnectionRequestsInterface(connection));
162 }
163 template<typename BaseConnectionRequestsInterfaceSubclass>
164 static SharedPtr<BaseConnectionRequestsInterfaceSubclass> create(BaseConnection* connection) {
165 return SharedPtr<BaseConnectionRequestsInterfaceSubclass>(
166 new BaseConnectionRequestsInterfaceSubclass(connection));
167 }
168
169 virtual ~BaseConnectionRequestsInterface();
170
171 QVariantMap immutableProperties() const;
172
173 Tp::RequestableChannelClassList requestableChannelClasses;
174 void ensureChannel(const QVariantMap &request, bool &yours,
175 QDBusObjectPath &channel, QVariantMap &details, DBusError* error);
176 void createChannel(const QVariantMap &request, QDBusObjectPath &channel,
177 QVariantMap &details, DBusError* error);
178
179 public Q_SLOTS:
180 void newChannels(const Tp::ChannelDetailsList &channels);
181 void channelClosed(const QDBusObjectPath &removed);
182
183 protected:
184 BaseConnectionRequestsInterface(BaseConnection* connection);
185
186 private:
187 void createAdaptor();
188
189 class Adaptee;
190 friend class Adaptee;
191 struct Private;
192 friend struct Private;
193 Private *mPriv;
194 };
195
196
197 class TP_QT_EXPORT BaseConnectionContactsInterface : public AbstractConnectionInterface
198 {
199 Q_OBJECT
200 Q_DISABLE_COPY(BaseConnectionContactsInterface)
201
202
203 public:
204 static BaseConnectionContactsInterfacePtr create() {
205 return BaseConnectionContactsInterfacePtr(new BaseConnectionContactsInterface());
206 }
207 template<typename BaseConnectionContactsInterfaceSubclass>
208 static SharedPtr<BaseConnectionContactsInterfaceSubclass> create() {
209 return SharedPtr<BaseConnectionContactsInterfaceSubclass>(
210 new BaseConnectionContactsInterfaceSubclass());
211 }
212
213 virtual ~BaseConnectionContactsInterface();
214
215 QVariantMap immutableProperties() const;
216
217 typedef Callback3<ContactAttributesMap, const Tp::UIntList&, const QStringList&, DBusError*> GetContactAttributesCallback;
218 void setGetContactAttributesCallback(const GetContactAttributesCallback &cb);
219 ContactAttributesMap getContactAttributes(const Tp::UIntList &handles,
220 const QStringList &interfaces,
221 DBusError *error);
222 void setContactAttributeInterfaces(const QStringList &contactAttributeInterfaces);
223 protected:
224 BaseConnectionContactsInterface();
225
226 private:
227 void createAdaptor();
228
229 class Adaptee;
230 friend class Adaptee;
231 struct Private;
232 friend struct Private;
233 Private *mPriv;
234 };
235
236 class TP_QT_EXPORT BaseConnectionSimplePresenceInterface : public AbstractConnectionInterface
237 {
238 Q_OBJECT
239 Q_DISABLE_COPY(BaseConnectionSimplePresenceInterface)
240
241 public:
242 static BaseConnectionSimplePresenceInterfacePtr create()
243 {
244 return BaseConnectionSimplePresenceInterfacePtr(new BaseConnectionSimplePresenceInterface());
245 }
246 template<typename BaseConnectionSimplePresenceInterfaceSubclass>
247 static SharedPtr<BaseConnectionSimplePresenceInterfaceSubclass> create()
248 {
249 return SharedPtr<BaseConnectionSimplePresenceInterfaceSubclass>(
250 new BaseConnectionSimplePresenceInterfaceSubclass());
251 }
252
253 virtual ~BaseConnectionSimplePresenceInterface();
254
255 QVariantMap immutableProperties() const;
256
257 Tp::SimpleStatusSpecMap statuses() const;
258 void setStatuses(const Tp::SimpleStatusSpecMap &statuses);
259
260 uint maximumStatusMessageLength() const;
261 void setMaximumStatusMessageLength(uint maximumStatusMessageLength);
262
263 typedef Callback3<uint, const QString &, const QString &, DBusError*> SetPresenceCallback;
264 void setSetPresenceCallback(const SetPresenceCallback &cb);
265
266 void setPresences(const Tp::SimpleContactPresences &presences);
267
268 Tp::SimpleContactPresences getPresences(const Tp::UIntList &contacts);
269
270 protected:
271 BaseConnectionSimplePresenceInterface();
272
273 private:
274 void createAdaptor();
275
276 class Adaptee;
277 friend class Adaptee;
278 struct Private;
279 friend struct Private;
280 Private *mPriv;
281 };
282
283 class TP_QT_EXPORT BaseConnectionContactListInterface : public AbstractConnectionInterface
284 {
285 Q_OBJECT
286 Q_DISABLE_COPY(BaseConnectionContactListInterface)
287
288 public:
289 static BaseConnectionContactListInterfacePtr create()
290 {
291 return BaseConnectionContactListInterfacePtr(new BaseConnectionContactListInterface());
292 }
293 template<typename BaseConnectionContactListInterfaceSubclass>
294 static SharedPtr<BaseConnectionContactListInterfaceSubclass> create()
295 {
296 return SharedPtr<BaseConnectionContactListInterfaceSubclass>(
297 new BaseConnectionContactListInterfaceSubclass());
298 }
299
300 virtual ~BaseConnectionContactListInterface();
301
302 QVariantMap immutableProperties() const;
303
304 uint contactListState() const;
305 void setContactListState(uint contactListState);
306
307 bool contactListPersists() const;
308 void setContactListPersists(bool contactListPersists);
309
310 bool canChangeContactList() const;
311 void setCanChangeContactList(bool canChangeContactList);
312
313 bool requestUsesMessage() const;
314 void setRequestUsesMessage(bool requestUsesMessage);
315
316 bool downloadAtConnection() const;
317 void setDownloadAtConnection(bool downloadAtConnection);
318
319 typedef Callback3<Tp::ContactAttributesMap, const QStringList &, bool, DBusError*> GetContactListAttributesCallback;
320 void setGetContactListAttributesCallback(const GetContactListAttributesCallback &cb);
321 Tp::ContactAttributesMap getContactListAttributes(const QStringList &interfaces, bool hold, DBusError *error);
322
323 typedef Callback3<void, const Tp::UIntList &, const QString &, DBusError*> RequestSubscriptionCallback;
324 void setRequestSubscriptionCallback(const RequestSubscriptionCallback &cb);
325 void requestSubscription(const Tp::UIntList &contacts, const QString &message, DBusError *error);
326
327 typedef Callback2<void, const Tp::UIntList &, DBusError*> AuthorizePublicationCallback;
328 void setAuthorizePublicationCallback(const AuthorizePublicationCallback &cb);
329 void authorizePublication(const Tp::UIntList &contacts, DBusError *error);
330
331 typedef Callback2<void, const Tp::UIntList &, DBusError*> RemoveContactsCallback;
332 void setRemoveContactsCallback(const RemoveContactsCallback &cb);
333 void removeContacts(const Tp::UIntList &contacts, DBusError *error);
334
335 typedef Callback2<void, const Tp::UIntList &, DBusError*> UnsubscribeCallback;
336 void setUnsubscribeCallback(const UnsubscribeCallback &cb);
337 void unsubscribe(const Tp::UIntList &contacts, DBusError *error);
338
339 typedef Callback2<void, const Tp::UIntList &, DBusError*> UnpublishCallback;
340 void setUnpublishCallback(const UnpublishCallback &cb);
341 void unpublish(const Tp::UIntList &contacts, DBusError *error);
342
343 typedef Callback1<void, DBusError*> DownloadCallback;
344 void setDownloadCallback(const DownloadCallback &cb);
345 void download(DBusError *error);
346
347 void contactsChangedWithID(const Tp::ContactSubscriptionMap &changes, const Tp::HandleIdentifierMap &identifiers, const Tp::HandleIdentifierMap &removals);
348
349 protected:
350 BaseConnectionContactListInterface();
351
352 private:
353 void createAdaptor();
354
355 class Adaptee;
356 friend class Adaptee;
357 struct Private;
358 friend struct Private;
359 Private *mPriv;
360 };
361
362 class TP_QT_EXPORT BaseConnectionContactInfoInterface : public AbstractConnectionInterface
363 {
364 Q_OBJECT
365 Q_DISABLE_COPY(BaseConnectionContactInfoInterface)
366
367 public:
368 static BaseConnectionContactInfoInterfacePtr create()
369 {
370 return BaseConnectionContactInfoInterfacePtr(new BaseConnectionContactInfoInterface());
371 }
372 template<typename BaseConnectionContactInfoInterfaceSubclass>
373 static SharedPtr<BaseConnectionContactInfoInterfaceSubclass> create()
374 {
375 return SharedPtr<BaseConnectionContactInfoInterfaceSubclass>(
376 new BaseConnectionContactInfoInterfaceSubclass());
377 }
378
379 virtual ~BaseConnectionContactInfoInterface();
380
381 QVariantMap immutableProperties() const;
382
383 Tp::ContactInfoFlags contactInfoFlags() const;
384 void setContactInfoFlags(const Tp::ContactInfoFlags &contactInfoFlags);
385
386 Tp::FieldSpecs supportedFields() const;
387 void setSupportedFields(const Tp::FieldSpecs &supportedFields);
388
389 typedef Callback2<Tp::ContactInfoMap, const Tp::UIntList &, DBusError*> GetContactInfoCallback;
390 void setGetContactInfoCallback(const GetContactInfoCallback &cb);
391 Tp::ContactInfoMap getContactInfo(const Tp::UIntList &contacts, DBusError *error);
392
393 typedef Callback2<void, const Tp::UIntList &, DBusError*> RefreshContactInfoCallback;
394 void setRefreshContactInfoCallback(const RefreshContactInfoCallback &cb);
395 void refreshContactInfo(const Tp::UIntList &contacts, DBusError *error);
396
397 typedef Callback2<Tp::ContactInfoFieldList, uint, DBusError*> RequestContactInfoCallback;
398 void setRequestContactInfoCallback(const RequestContactInfoCallback &cb);
399 Tp::ContactInfoFieldList requestContactInfo(uint contact, DBusError *error);
400
401 typedef Callback2<void, const Tp::ContactInfoFieldList &, DBusError*> SetContactInfoCallback;
402 void setSetContactInfoCallback(const SetContactInfoCallback &cb);
403 void setContactInfo(const Tp::ContactInfoFieldList &contactInfo, DBusError *error);
404
405 void contactInfoChanged(uint contact, const Tp::ContactInfoFieldList &contactInfo);
406
407 protected:
408 BaseConnectionContactInfoInterface();
409
410 private:
411 void createAdaptor();
412
413 class Adaptee;
414 friend class Adaptee;
415 struct Private;
416 friend struct Private;
417 Private *mPriv;
418 };
419
420 class TP_QT_EXPORT BaseConnectionAddressingInterface : public AbstractConnectionInterface
421 {
422 Q_OBJECT
423 Q_DISABLE_COPY(BaseConnectionAddressingInterface)
424
425 public:
426 static BaseConnectionAddressingInterfacePtr create() {
427 return BaseConnectionAddressingInterfacePtr(new BaseConnectionAddressingInterface());
428 }
429 template<typename BaseConnectionAddressingInterfaceSubclass>
430 static SharedPtr<BaseConnectionAddressingInterfaceSubclass> create() {
431 return SharedPtr<BaseConnectionAddressingInterfaceSubclass>(
432 new BaseConnectionAddressingInterfaceSubclass());
433 }
434
435 virtual ~BaseConnectionAddressingInterface();
436
437 QVariantMap immutableProperties() const;
438
439
440
441 typedef Callback6 < void, const QString&, const QStringList&, const QStringList&,
442 Tp::AddressingNormalizationMap&, Tp::ContactAttributesMap&, DBusError* > GetContactsByVCardFieldCallback;
443 void setGetContactsByVCardFieldCallback(const GetContactsByVCardFieldCallback &cb);
444
445 typedef Callback5 < void, const QStringList&, const QStringList&,
446 Tp::AddressingNormalizationMap&, Tp::ContactAttributesMap&, DBusError* > GetContactsByURICallback;
447 void setGetContactsByURICallback(const GetContactsByURICallback &cb);
448
449 protected:
450 BaseConnectionAddressingInterface();
451
452 private:
453 void createAdaptor();
454
455 class Adaptee;
456 friend class Adaptee;
457 struct Private;
458 friend struct Private;
459 Private *mPriv;
460 };
461
462 class TP_QT_EXPORT BaseConnectionAliasingInterface : public AbstractConnectionInterface
463 {
464 Q_OBJECT
465 Q_DISABLE_COPY(BaseConnectionAliasingInterface)
466
467 public:
468 static BaseConnectionAliasingInterfacePtr create()
469 {
470 return BaseConnectionAliasingInterfacePtr(new BaseConnectionAliasingInterface());
471 }
472 template<typename BaseConnectionAliasingInterfaceSubclass>
473 static SharedPtr<BaseConnectionAliasingInterfaceSubclass> create()
474 {
475 return SharedPtr<BaseConnectionAliasingInterfaceSubclass>(
476 new BaseConnectionAliasingInterfaceSubclass());
477 }
478
479 virtual ~BaseConnectionAliasingInterface();
480
481 QVariantMap immutableProperties() const;
482
483 typedef Callback1<Tp::ConnectionAliasFlags, DBusError*> GetAliasFlagsCallback;
484 void setGetAliasFlagsCallback(const GetAliasFlagsCallback &cb);
485 Tp::ConnectionAliasFlags getAliasFlags(DBusError *error);
486
487 typedef Callback2<QStringList, const Tp::UIntList &, DBusError*> RequestAliasesCallback;
488 void setRequestAliasesCallback(const RequestAliasesCallback &cb);
489 QStringList requestAliases(const Tp::UIntList &contacts, DBusError *error);
490
491 typedef Callback2<Tp::AliasMap, const Tp::UIntList &, DBusError*> GetAliasesCallback;
492 void setGetAliasesCallback(const GetAliasesCallback &cb);
493 Tp::AliasMap getAliases(const Tp::UIntList &contacts, DBusError *error);
494
495 typedef Callback2<void, const Tp::AliasMap &, DBusError*> SetAliasesCallback;
496 void setSetAliasesCallback(const SetAliasesCallback &cb);
497 void setAliases(const Tp::AliasMap &aliases, DBusError *error);
498
499 void aliasesChanged(const Tp::AliasPairList &aliases);
500
501 protected:
502 BaseConnectionAliasingInterface();
503
504 private:
505 void createAdaptor();
506
507 class Adaptee;
508 friend class Adaptee;
509 struct Private;
510 friend struct Private;
511 Private *mPriv;
512 };
513
514 class TP_QT_EXPORT BaseConnectionAvatarsInterface : public AbstractConnectionInterface
515 {
516 Q_OBJECT
517 Q_DISABLE_COPY(BaseConnectionAvatarsInterface)
518
519 public:
520 static BaseConnectionAvatarsInterfacePtr create()
521 {
522 return BaseConnectionAvatarsInterfacePtr(new BaseConnectionAvatarsInterface());
523 }
524 template<typename BaseConnectionAvatarsInterfaceSubclass>
525 static SharedPtr<BaseConnectionAvatarsInterfaceSubclass> create()
526 {
527 return SharedPtr<BaseConnectionAvatarsInterfaceSubclass>(
528 new BaseConnectionAvatarsInterfaceSubclass());
529 }
530
531 virtual ~BaseConnectionAvatarsInterface();
532
533 QVariantMap immutableProperties() const;
534
535 AvatarSpec avatarDetails() const;
536 void setAvatarDetails(const AvatarSpec &spec);
537
538 typedef Callback2<Tp::AvatarTokenMap, const Tp::UIntList &, DBusError*> GetKnownAvatarTokensCallback;
539 void setGetKnownAvatarTokensCallback(const GetKnownAvatarTokensCallback &cb);
540 Tp::AvatarTokenMap getKnownAvatarTokens(const Tp::UIntList &contacts, DBusError *error);
541
542 typedef Callback2<void, const Tp::UIntList &, DBusError*> RequestAvatarsCallback;
543 void setRequestAvatarsCallback(const RequestAvatarsCallback &cb);
544 void requestAvatars(const Tp::UIntList &contacts, DBusError *error);
545
546 typedef Callback3<QString, const QByteArray &, const QString &, DBusError*> SetAvatarCallback;
547 void setSetAvatarCallback(const SetAvatarCallback &cb);
548 QString setAvatar(const QByteArray &avatar, const QString &mimeType, DBusError *error);
549
550 typedef Callback1<void, DBusError*> ClearAvatarCallback;
551 void setClearAvatarCallback(const ClearAvatarCallback &cb);
552 void clearAvatar(DBusError *error);
553
554 void avatarUpdated(uint contact, const QString &newAvatarToken);
555 void avatarRetrieved(uint contact, const QString &token, const QByteArray &avatar, const QString &type);
556
557 protected:
558 BaseConnectionAvatarsInterface();
559
560 private:
561 void createAdaptor();
562
563 class Adaptee;
564 friend class Adaptee;
565 struct Private;
566 friend struct Private;
567 Private *mPriv;
568 };
569
570 }
571
572 #endif
Tp::ChannelDetailsList
QList< ChannelDetails > ChannelDetailsList
Definition: build/TelepathyQt/_gen/types.h:820
Tp::BaseConnectionContactsInterface::GetContactAttributesCallback
Callback3< ContactAttributesMap, const Tp::UIntList &, const QStringList &, DBusError * > GetContactAttributesCallback
Definition: base-connection.h:217
Tp::BaseConnectionSimplePresenceInterface
Base class for implementations of Connection.Interface.SimplePresence.
Definition: base-connection.h:236
Tp::ContactInfoFieldList
QList< ContactInfoField > ContactInfoFieldList
Definition: build/TelepathyQt/_gen/types.h:1188
Tp::ContactInfoMap
Definition: build/TelepathyQt/_gen/types.h:3459
Tp::BaseConnection::InspectHandlesCallback
Callback3< QStringList, uint, const Tp::UIntList &, DBusError * > InspectHandlesCallback
Definition: base-connection.h:91
Tp::AbstractDBusServiceInterface
Base class for D-Bus service interfaces.
Definition: dbus-service.h:73
Tp::BaseConnectionAliasingInterface::RequestAliasesCallback
Callback2< QStringList, const Tp::UIntList &, DBusError * > RequestAliasesCallback
Definition: base-connection.h:487
Tp::AvatarSpec
The AvatarSpec class represents a Telepathy avatar information supported by a protocol.
Definition: avatar.h:51
Tp::BaseConnection
Base class for Connection implementations.
Definition: base-connection.h:44
Tp::BaseConnectionContactInfoInterface::create
static BaseConnectionContactInfoInterfacePtr create()
Definition: base-connection.h:368
Tp::BaseConnectionContactInfoInterface::RequestContactInfoCallback
Callback2< Tp::ContactInfoFieldList, uint, DBusError * > RequestContactInfoCallback
Definition: base-connection.h:397
Tp::BaseConnectionAddressingInterface::create
static BaseConnectionAddressingInterfacePtr create()
Definition: base-connection.h:426
Tp::BaseConnectionAliasingInterface::GetAliasFlagsCallback
Callback1< Tp::ConnectionAliasFlags, DBusError * > GetAliasFlagsCallback
Definition: base-connection.h:483
Tp::BaseConnectionAvatarsInterface::create
static SharedPtr< BaseConnectionAvatarsInterfaceSubclass > create()
Definition: base-connection.h:525
Tp::BaseConnectionAliasingInterface::SetAliasesCallback
Callback2< void, const Tp::AliasMap &, DBusError * > SetAliasesCallback
Definition: base-connection.h:495
Tp::AliasPairList
QList< AliasPair > AliasPairList
Definition: build/TelepathyQt/_gen/types.h:224
Tp::BaseConnectionAddressingInterface::GetContactsByURICallback
Callback5< void, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByURICallback
Definition: base-connection.h:446
Tp::BaseConnectionAvatarsInterface::create
static BaseConnectionAvatarsInterfacePtr create()
Definition: base-connection.h:520
Tp::BaseConnectionContactListInterface::RemoveContactsCallback
Callback2< void, const Tp::UIntList &, DBusError * > RemoveContactsCallback
Definition: base-connection.h:331
Tp::BaseConnectionContactInfoInterface::RefreshContactInfoCallback
Callback2< void, const Tp::UIntList &, DBusError * > RefreshContactInfoCallback
Definition: base-connection.h:393
Tp::BaseConnection::ConnectCallback
Callback1< void, DBusError * > ConnectCallback
Definition: base-connection.h:88
Tp::Callback3< QStringList, uint, const Tp::UIntList &, DBusError * >
Tp::BaseConnectionRequestsInterface
Base class for implementations of Connection.Interface.Requests.
Definition: base-connection.h:154
Tp::BaseConnectionContactListInterface::RequestSubscriptionCallback
Callback3< void, const Tp::UIntList &, const QString &, DBusError * > RequestSubscriptionCallback
Definition: base-connection.h:323
Tp::BaseConnectionContactsInterface
Base class for implementations of Connection.Interface.Contacts.
Definition: base-connection.h:197
Tp::BaseConnectionContactListInterface::GetContactListAttributesCallback
Callback3< Tp::ContactAttributesMap, const QStringList &, bool, DBusError * > GetContactListAttributesCallback
Definition: base-connection.h:319
Tp::AbstractConnectionInterface
Base class for all the Connection object interface implementations.
Definition: base-connection.h:137
Tp::BaseConnectionContactsInterface::create
static SharedPtr< BaseConnectionContactsInterfaceSubclass > create()
Definition: base-connection.h:208
Tp::AddressingNormalizationMap
Definition: build/TelepathyQt/_gen/types.h:161
Tp::BaseConnectionSimplePresenceInterface::create
static SharedPtr< BaseConnectionSimplePresenceInterfaceSubclass > create()
Definition: base-connection.h:247
Tp::BaseConnectionContactListInterface::DownloadCallback
Callback1< void, DBusError * > DownloadCallback
Definition: base-connection.h:343
Tp::BaseConnectionAvatarsInterface
Base class for implementations of Connection.Interface.Avatars.
Definition: base-connection.h:514
Tp::DBusService
Base class for D-Bus services.
Definition: dbus-service.h:46
Tp::UIntList
Definition: build/TelepathyQt/_gen/types.h:101
Tp::ConnectionAliasFlags
QFlags< ConnectionAliasFlag > ConnectionAliasFlags
Definition: build/TelepathyQt/_gen/constants.h:164
Tp::SharedPtr
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
Tp::BaseConnectionContactListInterface::create
static SharedPtr< BaseConnectionContactListInterfaceSubclass > create()
Definition: base-connection.h:294
Tp::BaseConnection::CreateChannelCallback
Callback2< BaseChannelPtr, const QVariantMap &, DBusError * > CreateChannelCallback
Definition: base-connection.h:84
Tp::RequestableChannelClassList
QList< RequestableChannelClass > RequestableChannelClassList
Definition: build/TelepathyQt/_gen/types.h:2621
Tp::BaseConnection::RequestHandlesCallback
Callback3< Tp::UIntList, uint, const QStringList &, DBusError * > RequestHandlesCallback
Definition: base-connection.h:95
Tp::FieldSpecs
QList< FieldSpec > FieldSpecs
Definition: build/TelepathyQt/_gen/types.h:1562
Tp::ContactInfoFlags
QFlags< ContactInfoFlag > ContactInfoFlags
Definition: build/TelepathyQt/_gen/constants.h:324
Tp::Callback6
Callback with 6 arguments.
Definition: callbacks.h:327
Tp::BaseConnectionRequestsInterface::requestableChannelClasses
Tp::RequestableChannelClassList requestableChannelClasses
Definition: base-connection.h:173
Tp::ContactAttributesMap
Definition: build/TelepathyQt/_gen/types.h:950
Tp::BaseConnectionContactInfoInterface::create
static SharedPtr< BaseConnectionContactInfoInterfaceSubclass > create()
Definition: base-connection.h:373
Tp::SimpleStatusSpecMap
Definition: build/TelepathyQt/_gen/types.h:3849
Tp::BaseConnectionSimplePresenceInterface::create
static BaseConnectionSimplePresenceInterfacePtr create()
Definition: base-connection.h:242
Tp::BaseConnectionContactListInterface::UnsubscribeCallback
Callback2< void, const Tp::UIntList &, DBusError * > UnsubscribeCallback
Definition: base-connection.h:335
Tp::BaseConnectionAliasingInterface
Base class for implementations of Connection.Interface.Aliasing.
Definition: base-connection.h:462
Tp::BaseConnectionAliasingInterface::create
static BaseConnectionAliasingInterfacePtr create()
Definition: base-connection.h:468
Tp::BaseConnectionContactsInterface::create
static BaseConnectionContactsInterfacePtr create()
Definition: base-connection.h:204
Tp::Callback2< BaseChannelPtr, const QVariantMap &, DBusError * >
Tp::BaseConnectionAvatarsInterface::ClearAvatarCallback
Callback1< void, DBusError * > ClearAvatarCallback
Definition: base-connection.h:550
Tp::BaseConnectionAliasingInterface::create
static SharedPtr< BaseConnectionAliasingInterfaceSubclass > create()
Definition: base-connection.h:473
Tp::BaseConnectionRequestsInterface::create
static SharedPtr< BaseConnectionRequestsInterfaceSubclass > create(BaseConnection *connection)
Definition: base-connection.h:164
Tp::ChannelInfoList
QList< ChannelInfo > ChannelInfoList
Definition: build/TelepathyQt/_gen/types.h:869
Tp::BaseConnectionContactListInterface
Base class for implementations of Connection.Interface.ContactList.
Definition: base-connection.h:283
Tp::DBusError
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
Tp::Callback5
Callback with 5 arguments.
Definition: callbacks.h:290
Tp::BaseConnectionContactListInterface::UnpublishCallback
Callback2< void, const Tp::UIntList &, DBusError * > UnpublishCallback
Definition: base-connection.h:339
Tp::BaseConnectionRequestsInterface::create
static BaseConnectionRequestsInterfacePtr create(BaseConnection *connection)
Definition: base-connection.h:160
Tp::BaseConnectionContactListInterface::create
static BaseConnectionContactListInterfacePtr create()
Definition: base-connection.h:289
Tp::BaseConnectionAddressingInterface::create
static SharedPtr< BaseConnectionAddressingInterfaceSubclass > create()
Definition: base-connection.h:430
Tp::BaseConnectionAvatarsInterface::SetAvatarCallback
Callback3< QString, const QByteArray &, const QString &, DBusError * > SetAvatarCallback
Definition: base-connection.h:546
Tp::HandleIdentifierMap
Definition: build/TelepathyQt/_gen/types.h:1646
Tp::BaseConnectionContactInfoInterface::SetContactInfoCallback
Callback2< void, const Tp::ContactInfoFieldList &, DBusError * > SetContactInfoCallback
Definition: base-connection.h:401
Tp::ContactSubscriptionMap
Definition: build/TelepathyQt/_gen/types.h:3505
Tp::BaseConnectionContactListInterface::AuthorizePublicationCallback
Callback2< void, const Tp::UIntList &, DBusError * > AuthorizePublicationCallback
Definition: base-connection.h:327
Tp::Callback1< void, DBusError * >
Tp::SimpleContactPresences
Definition: build/TelepathyQt/_gen/types.h:3827
Tp::BaseConnectionAddressingInterface::GetContactsByVCardFieldCallback
Callback6< void, const QString &, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByVCardFieldCallback
Definition: base-connection.h:442
Tp::BaseConnectionAvatarsInterface::GetKnownAvatarTokensCallback
Callback2< Tp::AvatarTokenMap, const Tp::UIntList &, DBusError * > GetKnownAvatarTokensCallback
Definition: base-connection.h:538
Tp::BaseConnectionContactInfoInterface::GetContactInfoCallback
Callback2< Tp::ContactInfoMap, const Tp::UIntList &, DBusError * > GetContactInfoCallback
Definition: base-connection.h:389
Tp::BaseConnectionAvatarsInterface::RequestAvatarsCallback
Callback2< void, const Tp::UIntList &, DBusError * > RequestAvatarsCallback
Definition: base-connection.h:542
Tp::BaseConnectionSimplePresenceInterface::SetPresenceCallback
Callback3< uint, const QString &, const QString &, DBusError * > SetPresenceCallback
Definition: base-connection.h:263
Tp::AvatarTokenMap
Definition: build/TelepathyQt/_gen/types.h:265
Tp::BaseConnectionAddressingInterface
Base class for implementations of Connection.Interface.Addressing.
Definition: base-connection.h:420
Tp::BaseConnectionAliasingInterface::GetAliasesCallback
Callback2< Tp::AliasMap, const Tp::UIntList &, DBusError * > GetAliasesCallback
Definition: base-connection.h:491
Tp::BaseConnection::create
static BaseConnectionPtr create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters, const QDBusConnection &dbusConnection=QDBusConnection::sessionBus())
Definition: base-connection.h:50
Tp::AliasMap
Definition: build/TelepathyQt/_gen/types.h:183
Tp::BaseConnection::create
static SharedPtr< BaseConnectionSubclass > create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters, const QDBusConnection &dbusConnection=QDBusConnection::sessionBus())
Definition: base-connection.h:58
Tp::BaseConnectionContactInfoInterface
Base class for implementations of Connection.Interface.Contact.Info.
Definition: base-connection.h:362