Home · Modules · All Classes · All Namespaces
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 
85  void setCreateChannelCallback(const CreateChannelCallback &cb);
86  BaseChannelPtr createChannel(const QVariantMap &request, bool suppressHandler, DBusError *error);
87 
89  void setConnectCallback(const ConnectCallback &cb);
90 
92  void setInspectHandlesCallback(const InspectHandlesCallback &cb);
93  QStringList inspectHandles(uint handleType, const Tp::UIntList &handles, DBusError *error);
94 
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 getExistingChannel(const QVariantMap &request, DBusError *error);
103  BaseChannelPtr ensureChannel(const QVariantMap &request, bool &yours, bool suppressHandler, DBusError *error);
104 
105  void addChannel(BaseChannelPtr channel, bool suppressHandler = false);
106 
107  QList<AbstractConnectionInterfacePtr> interfaces() const;
108  AbstractConnectionInterfacePtr interface(const QString &interfaceName) const;
109  bool plugInterface(const AbstractConnectionInterfacePtr &interface);
110  bool registerObject(DBusError *error = NULL);
111 
112  virtual QString uniqueName() const;
113 
114 Q_SIGNALS:
115  void disconnected();
116 
117 private Q_SLOTS:
118  TP_QT_NO_EXPORT void removeChannel();
119 
120 protected:
121  BaseConnection(const QDBusConnection &dbusConnection,
122  const QString &cmName, const QString &protocolName,
123  const QVariantMap &parameters);
124 
125  virtual bool registerObject(const QString &busName, const QString &objectPath,
126  DBusError *error);
127 
128  virtual bool matchChannel(const Tp::BaseChannelPtr &channel, const QVariantMap &request, Tp::DBusError *error);
129 
130 private:
131  class Adaptee;
132  friend class Adaptee;
133  struct Private;
134  friend struct Private;
135  Private *mPriv;
136 };
137 
139 {
140  Q_OBJECT
141  Q_DISABLE_COPY(AbstractConnectionInterface)
142 
143 public:
144  AbstractConnectionInterface(const QString &interfaceName);
145  virtual ~AbstractConnectionInterface();
146 
147 protected:
148  virtual void setBaseConnection(BaseConnection *connection);
149 
150 private:
151  friend class BaseConnection;
152 
153  struct Private;
154  friend struct Private;
155  Private *mPriv;
156 };
157 
159 {
160  Q_OBJECT
161  Q_DISABLE_COPY(BaseConnectionRequestsInterface)
162 
163 public:
164  static BaseConnectionRequestsInterfacePtr create(BaseConnection* connection) {
165  return BaseConnectionRequestsInterfacePtr(new BaseConnectionRequestsInterface(connection));
166  }
167  template<typename BaseConnectionRequestsInterfaceSubclass>
170  new BaseConnectionRequestsInterfaceSubclass(connection));
171  }
172 
174 
175  QVariantMap immutableProperties() const;
176 
178  void ensureChannel(const QVariantMap &request, bool &yours,
179  QDBusObjectPath &channel, QVariantMap &details, DBusError* error);
180  void createChannel(const QVariantMap &request, QDBusObjectPath &channel,
181  QVariantMap &details, DBusError* error);
182 
183 public Q_SLOTS:
184  void newChannels(const Tp::ChannelDetailsList &channels);
185  void channelClosed(const QDBusObjectPath &removed);
186 
187 protected:
189 
190 private:
191  void createAdaptor();
192 
193  class Adaptee;
194  friend class Adaptee;
195  struct Private;
196  friend struct Private;
197  Private *mPriv;
198 };
199 
201 {
202  Q_OBJECT
203  Q_DISABLE_COPY(BaseConnectionContactsInterface)
204 
205 public:
206  static BaseConnectionContactsInterfacePtr create()
207  {
208  return BaseConnectionContactsInterfacePtr(new BaseConnectionContactsInterface());
209  }
210  template<typename BaseConnectionContactsInterfaceSubclass>
212  {
214  new BaseConnectionContactsInterfaceSubclass());
215  }
216 
218 
219  QVariantMap immutableProperties() const;
220 
221  QStringList contactAttributeInterfaces() const;
222  void setContactAttributeInterfaces(const QStringList &contactAttributeInterfaces);
223 
225  void setGetContactAttributesCallback(const GetContactAttributesCallback &cb);
226  Tp::ContactAttributesMap getContactAttributes(const Tp::UIntList &handles, const QStringList &interfaces, DBusError *error);
227 
228  void getContactByID(const QString &identifier, const QStringList &interfaces, uint &handle, QVariantMap &attributes, DBusError *error);
229 
230 protected:
232  void setBaseConnection(BaseConnection *connection);
233 
234 private:
235  void createAdaptor();
236 
237  class Adaptee;
238  friend class Adaptee;
239  struct Private;
240  friend struct Private;
241  Private *mPriv;
242 };
243 
245 {
246  Q_OBJECT
248 
249 public:
250  static BaseConnectionSimplePresenceInterfacePtr create()
251  {
252  return BaseConnectionSimplePresenceInterfacePtr(new BaseConnectionSimplePresenceInterface());
253  }
254  template<typename BaseConnectionSimplePresenceInterfaceSubclass>
256  {
258  new BaseConnectionSimplePresenceInterfaceSubclass());
259  }
260 
262 
263  Tp::SimpleStatusSpecMap statuses() const;
264  void setStatuses(const Tp::SimpleStatusSpecMap &statuses);
265 
266  uint maximumStatusMessageLength() const;
267  void setMaximumStatusMessageLength(uint maximumStatusMessageLength);
268 
270  void setSetPresenceCallback(const SetPresenceCallback &cb);
271 
272  void setPresences(const Tp::SimpleContactPresences &presences);
273 
274  Tp::SimpleContactPresences getPresences(const Tp::UIntList &contacts);
275 
276 protected:
278 
279 private:
280  void createAdaptor();
281 
282  class Adaptee;
283  friend class Adaptee;
284  struct Private;
285  friend struct Private;
286  Private *mPriv;
287 };
288 
290 {
291  Q_OBJECT
292  Q_DISABLE_COPY(BaseConnectionContactListInterface)
293 
294 public:
295  static BaseConnectionContactListInterfacePtr create()
296  {
297  return BaseConnectionContactListInterfacePtr(new BaseConnectionContactListInterface());
298  }
299  template<typename BaseConnectionContactListInterfaceSubclass>
301  {
303  new BaseConnectionContactListInterfaceSubclass());
304  }
305 
307 
308  uint contactListState() const;
309  void setContactListState(uint contactListState);
310 
311  bool contactListPersists() const;
312  void setContactListPersists(bool contactListPersists);
313 
314  bool canChangeContactList() const;
315  void setCanChangeContactList(bool canChangeContactList);
316 
317  bool requestUsesMessage() const;
318  void setRequestUsesMessage(bool requestUsesMessage);
319 
320  bool downloadAtConnection() const;
321  void setDownloadAtConnection(bool downloadAtConnection);
322 
324  void setGetContactListAttributesCallback(const GetContactListAttributesCallback &cb);
325  Tp::ContactAttributesMap getContactListAttributes(const QStringList &interfaces, bool hold, DBusError *error);
326 
328  void setRequestSubscriptionCallback(const RequestSubscriptionCallback &cb);
329  void requestSubscription(const Tp::UIntList &contacts, const QString &message, DBusError *error);
330 
332  void setAuthorizePublicationCallback(const AuthorizePublicationCallback &cb);
333  void authorizePublication(const Tp::UIntList &contacts, DBusError *error);
334 
336  void setRemoveContactsCallback(const RemoveContactsCallback &cb);
337  void removeContacts(const Tp::UIntList &contacts, DBusError *error);
338 
340  void setUnsubscribeCallback(const UnsubscribeCallback &cb);
341  void unsubscribe(const Tp::UIntList &contacts, DBusError *error);
342 
344  void setUnpublishCallback(const UnpublishCallback &cb);
345  void unpublish(const Tp::UIntList &contacts, DBusError *error);
346 
348  void setDownloadCallback(const DownloadCallback &cb);
349  void download(DBusError *error);
350 
351  void contactsChangedWithID(const Tp::ContactSubscriptionMap &changes, const Tp::HandleIdentifierMap &identifiers, const Tp::HandleIdentifierMap &removals);
352 
353 protected:
355 
356 private:
357  void createAdaptor();
358 
359  class Adaptee;
360  friend class Adaptee;
361  struct Private;
362  friend struct Private;
363  Private *mPriv;
364 };
365 
367 {
368  Q_OBJECT
370 
371 public:
372  static BaseConnectionContactGroupsInterfacePtr create()
373  {
374  return BaseConnectionContactGroupsInterfacePtr(new BaseConnectionContactGroupsInterface());
375  }
376  template<typename BaseConnectionContactGroupsInterfaceSubclass>
378  {
380  new BaseConnectionContactGroupsInterfaceSubclass());
381  }
382 
384 
385  bool disjointGroups() const;
386  void setDisjointGroups(bool disjointGroups);
387 
388  Tp::ContactMetadataStorageType groupStorage() const;
389  void setGroupStorage(Tp::ContactMetadataStorageType groupStorage);
390 
391  QStringList groups() const;
392  void setGroups(const QStringList &groups);
393 
395  void setSetContactGroupsCallback(const SetContactGroupsCallback &cb);
396  void setContactGroups(uint contact, const QStringList &groups, DBusError *error);
397 
399  void setSetGroupMembersCallback(const SetGroupMembersCallback &cb);
400  void setGroupMembers(const QString &group, const Tp::UIntList &members, DBusError *error);
401 
403  void setAddToGroupCallback(const AddToGroupCallback &cb);
404  void addToGroup(const QString &group, const Tp::UIntList &members, DBusError *error);
405 
407  void setRemoveFromGroupCallback(const RemoveFromGroupCallback &cb);
408  void removeFromGroup(const QString &group, const Tp::UIntList &members, DBusError *error);
409 
411  void setRemoveGroupCallback(const RemoveGroupCallback &cb);
412  void removeGroup(const QString &group, DBusError *error);
413 
415  void setRenameGroupCallback(const RenameGroupCallback &cb);
416  void renameGroup(const QString &oldName, const QString &newName, DBusError *error);
417 
418  void groupsCreated(const QStringList &names);
419  void groupRenamed(const QString &oldName, const QString &newName);
420  void groupsRemoved(const QStringList &names);
421  void groupsChanged(const Tp::UIntList &contact, const QStringList &added, const QStringList &removed);
422 
423 protected:
425 
426 private:
427  void createAdaptor();
428 
429  class Adaptee;
430  friend class Adaptee;
431  struct Private;
432  friend struct Private;
433  Private *mPriv;
434 };
435 
437 {
438  Q_OBJECT
439  Q_DISABLE_COPY(BaseConnectionContactInfoInterface)
440 
441 public:
442  static BaseConnectionContactInfoInterfacePtr create()
443  {
444  return BaseConnectionContactInfoInterfacePtr(new BaseConnectionContactInfoInterface());
445  }
446  template<typename BaseConnectionContactInfoInterfaceSubclass>
448  {
450  new BaseConnectionContactInfoInterfaceSubclass());
451  }
452 
454 
455  Tp::ContactInfoFlags contactInfoFlags() const;
456  void setContactInfoFlags(const Tp::ContactInfoFlags &contactInfoFlags);
457 
458  Tp::FieldSpecs supportedFields() const;
459  void setSupportedFields(const Tp::FieldSpecs &supportedFields);
460 
462  void setGetContactInfoCallback(const GetContactInfoCallback &cb);
463  Tp::ContactInfoMap getContactInfo(const Tp::UIntList &contacts, DBusError *error);
464 
466  void setRefreshContactInfoCallback(const RefreshContactInfoCallback &cb);
467  void refreshContactInfo(const Tp::UIntList &contacts, DBusError *error);
468 
470  void setRequestContactInfoCallback(const RequestContactInfoCallback &cb);
471  Tp::ContactInfoFieldList requestContactInfo(uint contact, DBusError *error);
472 
474  void setSetContactInfoCallback(const SetContactInfoCallback &cb);
475  void setContactInfo(const Tp::ContactInfoFieldList &contactInfo, DBusError *error);
476 
477  void contactInfoChanged(uint contact, const Tp::ContactInfoFieldList &contactInfo);
478 
479 protected:
481 
482 private:
483  void createAdaptor();
484 
485  class Adaptee;
486  friend class Adaptee;
487  struct Private;
488  friend struct Private;
489  Private *mPriv;
490 };
491 
493 {
494  Q_OBJECT
495  Q_DISABLE_COPY(BaseConnectionAddressingInterface)
496 
497 public:
498  static BaseConnectionAddressingInterfacePtr create() {
499  return BaseConnectionAddressingInterfacePtr(new BaseConnectionAddressingInterface());
500  }
501  template<typename BaseConnectionAddressingInterfaceSubclass>
504  new BaseConnectionAddressingInterfaceSubclass());
505  }
506 
508 
509  typedef Callback6 < void, const QString&, const QStringList&, const QStringList&,
511  void setGetContactsByVCardFieldCallback(const GetContactsByVCardFieldCallback &cb);
512 
513  typedef Callback5 < void, const QStringList&, const QStringList&,
515  void setGetContactsByURICallback(const GetContactsByURICallback &cb);
516 
517 protected:
519 
520 private:
521  void createAdaptor();
522 
523  class Adaptee;
524  friend class Adaptee;
525  struct Private;
526  friend struct Private;
527  Private *mPriv;
528 };
529 
531 {
532  Q_OBJECT
533  Q_DISABLE_COPY(BaseConnectionAliasingInterface)
534 
535 public:
536  static BaseConnectionAliasingInterfacePtr create()
537  {
538  return BaseConnectionAliasingInterfacePtr(new BaseConnectionAliasingInterface());
539  }
540  template<typename BaseConnectionAliasingInterfaceSubclass>
542  {
544  new BaseConnectionAliasingInterfaceSubclass());
545  }
546 
548 
550  void setGetAliasFlagsCallback(const GetAliasFlagsCallback &cb);
551  Tp::ConnectionAliasFlags getAliasFlags(DBusError *error);
552 
554  void setRequestAliasesCallback(const RequestAliasesCallback &cb);
555  QStringList requestAliases(const Tp::UIntList &contacts, DBusError *error);
556 
558  void setGetAliasesCallback(const GetAliasesCallback &cb);
559  Tp::AliasMap getAliases(const Tp::UIntList &contacts, DBusError *error);
560 
562  void setSetAliasesCallback(const SetAliasesCallback &cb);
563  void setAliases(const Tp::AliasMap &aliases, DBusError *error);
564 
565  void aliasesChanged(const Tp::AliasPairList &aliases);
566 
567 protected:
569 
570 private:
571  void createAdaptor();
572 
573  class Adaptee;
574  friend class Adaptee;
575  struct Private;
576  friend struct Private;
577  Private *mPriv;
578 };
579 
581 {
582  Q_OBJECT
583  Q_DISABLE_COPY(BaseConnectionAvatarsInterface)
584 
585 public:
586  static BaseConnectionAvatarsInterfacePtr create()
587  {
588  return BaseConnectionAvatarsInterfacePtr(new BaseConnectionAvatarsInterface());
589  }
590  template<typename BaseConnectionAvatarsInterfaceSubclass>
592  {
594  new BaseConnectionAvatarsInterfaceSubclass());
595  }
596 
598 
599  AvatarSpec avatarDetails() const;
600  void setAvatarDetails(const AvatarSpec &spec);
601 
603  void setGetKnownAvatarTokensCallback(const GetKnownAvatarTokensCallback &cb);
604  Tp::AvatarTokenMap getKnownAvatarTokens(const Tp::UIntList &contacts, DBusError *error);
605 
607  void setRequestAvatarsCallback(const RequestAvatarsCallback &cb);
608  void requestAvatars(const Tp::UIntList &contacts, DBusError *error);
609 
611  void setSetAvatarCallback(const SetAvatarCallback &cb);
612  QString setAvatar(const QByteArray &avatar, const QString &mimeType, DBusError *error);
613 
615  void setClearAvatarCallback(const ClearAvatarCallback &cb);
616  void clearAvatar(DBusError *error);
617 
618  void avatarUpdated(uint contact, const QString &newAvatarToken);
619  void avatarRetrieved(uint contact, const QString &token, const QByteArray &avatar, const QString &type);
620 
621 protected:
623 
624 private:
625  void createAdaptor();
626 
627  class Adaptee;
628  friend class Adaptee;
629  struct Private;
630  friend struct Private;
631  Private *mPriv;
632 };
633 
635 {
636  Q_OBJECT
637  Q_DISABLE_COPY(BaseConnectionClientTypesInterface)
638 
639 public:
640  static BaseConnectionClientTypesInterfacePtr create()
641  {
642  return BaseConnectionClientTypesInterfacePtr(new BaseConnectionClientTypesInterface());
643  }
644  template<typename BaseConnectionClientTypesInterfaceSubclass>
646  {
648  new BaseConnectionClientTypesInterfaceSubclass());
649  }
650 
652 
654  void setGetClientTypesCallback(const GetClientTypesCallback &cb);
655  Tp::ContactClientTypes getClientTypes(const Tp::UIntList &contacts, DBusError *error);
656 
658  void setRequestClientTypesCallback(const RequestClientTypesCallback &cb);
659  QStringList requestClientTypes(uint contact, DBusError *error);
660 
661  void clientTypesUpdated(uint contact, const QStringList &clientTypes);
662 
663 protected:
665 
666 private:
667  void createAdaptor();
668 
669  class Adaptee;
670  friend class Adaptee;
671  struct Private;
672  friend struct Private;
673  Private *mPriv;
674 };
675 
677 {
678  Q_OBJECT
680 
681 public:
682  static BaseConnectionContactCapabilitiesInterfacePtr create()
683  {
684  return BaseConnectionContactCapabilitiesInterfacePtr(new BaseConnectionContactCapabilitiesInterface());
685  }
686  template<typename BaseConnectionContactCapabilitiesInterfaceSubclass>
688  {
690  new BaseConnectionContactCapabilitiesInterfaceSubclass());
691  }
692 
694 
696  void setUpdateCapabilitiesCallback(const UpdateCapabilitiesCallback &cb);
697  void updateCapabilities(const Tp::HandlerCapabilitiesList &handlerCapabilities, DBusError *error);
698 
700  void setGetContactCapabilitiesCallback(const GetContactCapabilitiesCallback &cb);
701  Tp::ContactCapabilitiesMap getContactCapabilities(const Tp::UIntList &handles, DBusError *error);
702 
703  void contactCapabilitiesChanged(const Tp::ContactCapabilitiesMap &caps);
704 
705 protected:
707 
708 private:
709  void createAdaptor();
710 
711  class Adaptee;
712  friend class Adaptee;
713  struct Private;
714  friend struct Private;
715  Private *mPriv;
716 };
717 
718 }
719 
720 #endif
Callback2< Tp::ContactCapabilitiesMap, const Tp::UIntList &, DBusError * > GetContactCapabilitiesCallback
Definition: base-connection.h:699
static SharedPtr< BaseConnectionAvatarsInterfaceSubclass > create()
Definition: base-connection.h:591
Callback2< void, const Tp::UIntList &, DBusError * > RequestAvatarsCallback
Definition: base-connection.h:606
QList< FieldSpec > FieldSpecs
Definition: build/TelepathyQt/_gen/types.h:1593
Base class for D-Bus services.
Definition: dbus-service.h:46
Callback2< void, const Tp::AliasMap &, DBusError * > SetAliasesCallback
Definition: base-connection.h:561
Definition: build/TelepathyQt/_gen/types.h:196
static SharedPtr< BaseConnectionSimplePresenceInterfaceSubclass > create()
Definition: base-connection.h:255
Definition: build/TelepathyQt/_gen/types.h:109
Definition: build/TelepathyQt/_gen/types.h:973
static BaseConnectionAvatarsInterfacePtr create()
Definition: base-connection.h:586
Callback1< void, DBusError * > ClearAvatarCallback
Definition: base-connection.h:614
static SharedPtr< BaseConnectionRequestsInterfaceSubclass > create(BaseConnection *connection)
Definition: base-connection.h:168
Callback3< void, const QString &, const QString &, DBusError * > RenameGroupCallback
Definition: base-connection.h:414
Definition: build/TelepathyQt/_gen/types.h:3556
QFlags< ContactInfoFlag > ContactInfoFlags
Definition: build/TelepathyQt/_gen/constants.h:324
Definition: build/TelepathyQt/_gen/types.h:3476
QList< ContactInfoField > ContactInfoFieldList
Definition: build/TelepathyQt/_gen/types.h:1213
static BaseConnectionClientTypesInterfacePtr create()
Definition: base-connection.h:640
Definition: build/TelepathyQt/_gen/types.h:173
Callback2< QStringList, const Tp::UIntList &, DBusError * > RequestAliasesCallback
Definition: base-connection.h:553
Callback6< void, const QString &, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByVCardFieldCallback
Definition: base-connection.h:510
QList< AliasPair > AliasPairList
Definition: build/TelepathyQt/_gen/types.h:238
Callback with 5 arguments.
Definition: callbacks.h:290
static BaseConnectionAliasingInterfacePtr create()
Definition: base-connection.h:536
Callback3< QStringList, uint, const Tp::UIntList &, DBusError * > InspectHandlesCallback
Definition: base-connection.h:91
Base class for D-Bus service interfaces.
Definition: dbus-service.h:73
static BaseConnectionAddressingInterfacePtr create()
Definition: base-connection.h:498
static BaseConnectionContactsInterfacePtr create()
Definition: base-connection.h:206
Callback2< BaseChannelPtr, const QVariantMap &, DBusError * > CreateChannelCallback
Definition: base-connection.h:84
Callback2< Tp::AvatarTokenMap, const Tp::UIntList &, DBusError * > GetKnownAvatarTokensCallback
Definition: base-connection.h:602
Callback2< void, const Tp::UIntList &, DBusError * > RemoveContactsCallback
Definition: base-connection.h:335
ContactMetadataStorageType
Definition: build/TelepathyQt/_gen/constants.h:1880
Base class for implementations of Connection.Interface.Contacts.
Definition: base-connection.h:200
Definition: build/TelepathyQt/_gen/types.h:3903
static BaseConnectionRequestsInterfacePtr create(BaseConnection *connection)
Definition: base-connection.h:164
Callback2< void, const Tp::UIntList &, DBusError * > UnsubscribeCallback
Definition: base-connection.h:339
Base class for Connection implementations.
Definition: base-connection.h:44
Callback2< Tp::ContactInfoFieldList, uint, DBusError * > RequestContactInfoCallback
Definition: base-connection.h:469
Callback with 6 arguments.
Definition: callbacks.h:327
Callback2< void, const QString &, DBusError * > RemoveGroupCallback
Definition: base-connection.h:410
Callback1< void, DBusError * > DownloadCallback
Definition: base-connection.h:347
QFlags< ConnectionAliasFlag > ConnectionAliasFlags
Definition: build/TelepathyQt/_gen/constants.h:164
Callback2< void, const Tp::ContactInfoFieldList &, DBusError * > SetContactInfoCallback
Definition: base-connection.h:473
static SharedPtr< BaseConnectionAliasingInterfaceSubclass > create()
Definition: base-connection.h:541
Definition: build/TelepathyQt/_gen/types.h:279
Callback3< void, uint, const QStringList &, DBusError * > SetContactGroupsCallback
Definition: base-connection.h:394
Base class for implementations of Connection.Interface.Addressing.
Definition: base-connection.h:492
Callback2< Tp::ContactClientTypes, const Tp::UIntList &, DBusError * > GetClientTypesCallback
Definition: base-connection.h:653
Callback3< Tp::ContactAttributesMap, const Tp::UIntList &, const QStringList &, DBusError * > GetContactAttributesCallback
Definition: base-connection.h:224
Callback3< QString, const QByteArray &, const QString &, DBusError * > SetAvatarCallback
Definition: base-connection.h:610
Base class for implementations of Connection.Interface.ContactList.
Definition: base-connection.h:289
Callback2< void, const Tp::UIntList &, DBusError * > RefreshContactInfoCallback
Definition: base-connection.h:465
static BaseConnectionSimplePresenceInterfacePtr create()
Definition: base-connection.h:250
Callback3< void, const QString &, const Tp::UIntList &, DBusError * > RemoveFromGroupCallback
Definition: base-connection.h:406
static SharedPtr< BaseConnectionAddressingInterfaceSubclass > create()
Definition: base-connection.h:502
QList< HandlerCapabilities > HandlerCapabilitiesList
Definition: build/TelepathyQt/_gen/types.h:3619
Callback3< Tp::ContactAttributesMap, const QStringList &, bool, DBusError * > GetContactListAttributesCallback
Definition: base-connection.h:323
Callback2< Tp::ContactInfoMap, const Tp::UIntList &, DBusError * > GetContactInfoCallback
Definition: base-connection.h:461
Callback2< Tp::AliasMap, const Tp::UIntList &, DBusError * > GetAliasesCallback
Definition: base-connection.h:557
Base class for implementations of Connection.Interface.Avatars.
Definition: base-connection.h:580
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
static BaseConnectionContactGroupsInterfacePtr create()
Definition: base-connection.h:372
Callback2< void, const Tp::UIntList &, DBusError * > UnpublishCallback
Definition: base-connection.h:343
Definition: build/TelepathyQt/_gen/types.h:3508
Tp::RequestableChannelClassList requestableChannelClasses
Definition: base-connection.h:177
Callback2< void, const Tp::HandlerCapabilitiesList &, DBusError * > UpdateCapabilitiesCallback
Definition: base-connection.h:695
static SharedPtr< BaseConnectionContactsInterfaceSubclass > create()
Definition: base-connection.h:211
Callback2< void, const Tp::UIntList &, DBusError * > AuthorizePublicationCallback
Definition: base-connection.h:331
static SharedPtr< BaseConnectionContactListInterfaceSubclass > create()
Definition: base-connection.h:300
Base class for implementations of Connection.Interface.Requests.
Definition: base-connection.h:158
Definition: build/TelepathyQt/_gen/types.h:3880
Callback3< void, const Tp::UIntList &, const QString &, DBusError * > RequestSubscriptionCallback
Definition: base-connection.h:327
static SharedPtr< BaseConnectionContactCapabilitiesInterfaceSubclass > create()
Definition: base-connection.h:687
Callback5< void, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByURICallback
Definition: base-connection.h:514
Definition: build/TelepathyQt/_gen/types.h:1031
Base class for implementations of Connection.Interface.Contact.Info.
Definition: base-connection.h:436
static BaseConnectionContactListInterfacePtr create()
Definition: base-connection.h:295
Callback3< Tp::UIntList, uint, const QStringList &, DBusError * > RequestHandlesCallback
Definition: base-connection.h:95
Callback1< Tp::ConnectionAliasFlags, DBusError * > GetAliasFlagsCallback
Definition: base-connection.h:549
Base class for implementations of Connection.Interface.SimplePresence.
Definition: base-connection.h:244
Callback2< QStringList, uint, DBusError * > RequestClientTypesCallback
Definition: base-connection.h:657
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
static BaseConnectionContactCapabilitiesInterfacePtr create()
Definition: base-connection.h:682
Base class for all the Connection object interface implementations.
Definition: base-connection.h:138
static SharedPtr< BaseConnectionContactInfoInterfaceSubclass > create()
Definition: base-connection.h:447
Definition: build/TelepathyQt/_gen/types.h:1677
Base class for implementations of Connection.Interface.ContactCapabilities.
Definition: base-connection.h:676
Callback3< void, const QString &, const Tp::UIntList &, DBusError * > SetGroupMembersCallback
Definition: base-connection.h:398
static SharedPtr< BaseConnectionSubclass > create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters, const QDBusConnection &dbusConnection=QDBusConnection::sessionBus())
Definition: base-connection.h:58
static SharedPtr< BaseConnectionClientTypesInterfaceSubclass > create()
Definition: base-connection.h:645
QList< ChannelInfo > ChannelInfoList
Definition: build/TelepathyQt/_gen/types.h:889
Base class for implementations of Connection.Interface.Aliasing.
Definition: base-connection.h:530
Base class for implementations of Connection.Interface.ContactGroups.
Definition: base-connection.h:366
Callback3< void, const QString &, const Tp::UIntList &, DBusError * > AddToGroupCallback
Definition: base-connection.h:402
QList< ChannelDetails > ChannelDetailsList
Definition: build/TelepathyQt/_gen/types.h:840
Definition: abstract-adaptor.cpp:31
Callback1< void, DBusError * > ConnectCallback
Definition: base-connection.h:88
static BaseConnectionPtr create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters, const QDBusConnection &dbusConnection=QDBusConnection::sessionBus())
Definition: base-connection.h:50
The AvatarSpec class represents a Telepathy avatar information supported by a protocol.
Definition: avatar.h:51
static BaseConnectionContactInfoInterfacePtr create()
Definition: base-connection.h:442
QList< RequestableChannelClass > RequestableChannelClassList
Definition: build/TelepathyQt/_gen/types.h:2664
Base class for implementations of Connection.Interface.ClientTypes.
Definition: base-connection.h:634
Callback3< uint, const QString &, const QString &, DBusError * > SetPresenceCallback
Definition: base-connection.h:269
static SharedPtr< BaseConnectionContactGroupsInterfaceSubclass > create()
Definition: base-connection.h:377