| 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 return BaseConnectionPtr(new BaseConnection(
53 QDBusConnection::sessionBus(), cmName, protocolName, parameters));
54 }
55 template<typename BaseConnectionSubclass>
56 static SharedPtr<BaseConnectionSubclass> create(const QString &cmName,
57 const QString &protocolName, const QVariantMap &parameters) {
58 return SharedPtr<BaseConnectionSubclass>(new BaseConnectionSubclass(
59 QDBusConnection::sessionBus(), cmName, protocolName, parameters));
60 }
61 static BaseConnectionPtr create(const QDBusConnection &dbusConnection,
62 const QString &cmName, const QString &protocolName,
63 const QVariantMap &parameters) {
64 return BaseConnectionPtr(new BaseConnection(
65 dbusConnection, cmName, protocolName, parameters));
66 }
67 template<typename BaseConnectionSubclass>
68 static SharedPtr<BaseConnectionSubclass> create(const QDBusConnection &dbusConnection,
69 const QString &cmName, const QString &protocolName,
70 const QVariantMap &parameters) {
71 return SharedPtr<BaseConnectionSubclass>(new BaseConnectionSubclass(
72 dbusConnection, cmName, protocolName, parameters));
73 }
74
75 virtual ~BaseConnection();
76
77 QString cmName() const;
78 QString protocolName() const;
79 QVariantMap parameters() const;
80 uint status() const;
81 QVariantMap immutableProperties() const;
82
83 void setStatus(uint newStatus, uint reason);
84
85 typedef Callback5<BaseChannelPtr, const QString&, uint, uint, const QVariantMap&, DBusError*> CreateChannelCallback;
86 void setCreateChannelCallback(const CreateChannelCallback &cb);
87 Tp::BaseChannelPtr createChannel(const QString &channelType, uint targetHandleType, uint targetHandle, uint initiatorHandle, bool suppressHandler, const QVariantMap &request, DBusError *error);
88
89 typedef Callback3<UIntList, uint, const QStringList&, DBusError*> RequestHandlesCallback;
90 void setRequestHandlesCallback(const RequestHandlesCallback &cb);
91 UIntList requestHandles(uint handleType, const QStringList &identifiers, DBusError* error);
92
93 //typedef Callback3<uint, const QString&, const QString&, DBusError*> SetPresenceCallback;
94 //void setSetPresenceCallback(const SetPresenceCallback &cb);
95
96 void setSelfHandle(uint selfHandle);
97 uint selfHandle() const;
98
99 typedef Callback1<void, DBusError*> ConnectCallback;
100 void setConnectCallback(const ConnectCallback &cb);
101
102 typedef Callback3<QStringList, uint, const Tp::UIntList&, DBusError*> InspectHandlesCallback;
103 void setInspectHandlesCallback(const InspectHandlesCallback &cb);
104
105 Tp::ChannelInfoList channelsInfo();
106 Tp::ChannelDetailsList channelsDetails();
107
108 BaseChannelPtr ensureChannel(const QString &channelType, uint targetHandleType,
109 uint targetHandle, bool &yours, uint initiatorHandle, bool suppressHandler, const QVariantMap &request, DBusError *error);
110 void addChannel(BaseChannelPtr channel);
111
112 QList<AbstractConnectionInterfacePtr> interfaces() const;
113 AbstractConnectionInterfacePtr interface(const QString &interfaceName) const;
114 bool plugInterface(const AbstractConnectionInterfacePtr &interface);
115
116 virtual QString uniqueName() const;
117 bool registerObject(DBusError *error = NULL);
118
119 Q_SIGNALS:
120 void disconnected();
121
122 private Q_SLOTS:
123 TP_QT_NO_EXPORT void removeChannel();
124
125 protected:
126 BaseConnection(const QDBusConnection &dbusConnection,
127 const QString &cmName, const QString &protocolName,
128 const QVariantMap &parameters);
129
130 virtual bool registerObject(const QString &busName, const QString &objectPath,
131 DBusError *error);
132
133 private:
134 class Adaptee;
135 friend class Adaptee;
136 class Private;
137 friend class Private;
138 Private *mPriv;
139 };
140
141 class TP_QT_EXPORT AbstractConnectionInterface : public AbstractDBusServiceInterface
142 {
143 Q_OBJECT
144 Q_DISABLE_COPY(AbstractConnectionInterface)
145
146 public:
147 AbstractConnectionInterface(const QString &interfaceName);
148 virtual ~AbstractConnectionInterface();
149
150 private:
151 friend class BaseConnection;
152
153 class Private;
154 friend class Private;
155 Private *mPriv;
156 };
157
158 class TP_QT_EXPORT BaseConnectionRequestsInterface : public AbstractConnectionInterface
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>
168 static SharedPtr<BaseConnectionRequestsInterfaceSubclass> create(BaseConnection* connection) {
169 return SharedPtr<BaseConnectionRequestsInterfaceSubclass>(
170 new BaseConnectionRequestsInterfaceSubclass(connection));
171 }
172
173 virtual ~BaseConnectionRequestsInterface();
174
175 QVariantMap immutableProperties() const;
176
177 Tp::RequestableChannelClassList requestableChannelClasses;
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:
188 BaseConnectionRequestsInterface(BaseConnection* connection);
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
200
201 class TP_QT_EXPORT BaseConnectionContactsInterface : public AbstractConnectionInterface
202 {
203 Q_OBJECT
204 Q_DISABLE_COPY(BaseConnectionContactsInterface)
205
206
207 public:
208 static BaseConnectionContactsInterfacePtr create() {
209 return BaseConnectionContactsInterfacePtr(new BaseConnectionContactsInterface());
210 }
211 template<typename BaseConnectionContactsInterfaceSubclass>
212 static SharedPtr<BaseConnectionContactsInterfaceSubclass> create() {
213 return SharedPtr<BaseConnectionContactsInterfaceSubclass>(
214 new BaseConnectionContactsInterfaceSubclass());
215 }
216
217 virtual ~BaseConnectionContactsInterface();
218
219 QVariantMap immutableProperties() const;
220
221 typedef Callback3<ContactAttributesMap, const Tp::UIntList&, const QStringList&, DBusError*> GetContactAttributesCallback;
222 void setGetContactAttributesCallback(const GetContactAttributesCallback &cb);
223 ContactAttributesMap getContactAttributes(const Tp::UIntList &handles,
224 const QStringList &interfaces,
225 DBusError *error);
226 void setContactAttributeInterfaces(const QStringList &contactAttributeInterfaces);
227 protected:
228 BaseConnectionContactsInterface();
229
230 private:
231 void createAdaptor();
232
233 class Adaptee;
234 friend class Adaptee;
235 struct Private;
236 friend struct Private;
237 Private *mPriv;
238 };
239
240 class TP_QT_EXPORT BaseConnectionSimplePresenceInterface : public AbstractConnectionInterface
241 {
242 Q_OBJECT
243 Q_DISABLE_COPY(BaseConnectionSimplePresenceInterface)
244
245 public:
246 static BaseConnectionSimplePresenceInterfacePtr create() {
247 return BaseConnectionSimplePresenceInterfacePtr(new BaseConnectionSimplePresenceInterface());
248 }
249 template<typename BaseConnectionSimplePresenceInterfaceSublclass>
250 static SharedPtr<BaseConnectionSimplePresenceInterfaceSublclass> create() {
251 return SharedPtr<BaseConnectionSimplePresenceInterfaceSublclass>(
252 new BaseConnectionSimplePresenceInterfaceSublclass());
253 }
254
255 virtual ~BaseConnectionSimplePresenceInterface();
256
257 QVariantMap immutableProperties() const;
258
259 Tp::SimpleStatusSpecMap statuses() const;
260 void setStatuses(const Tp::SimpleStatusSpecMap &statuses);
261
262 int maximumStatusMessageLength() const;
263 void setMaxmimumStatusMessageLength(uint maxmimumStatusMessageLength);
264
265 typedef Callback3<uint, const QString&, const QString&, DBusError*> SetPresenceCallback;
266 void setSetPresenceCallback(const SetPresenceCallback &cb);
267
268 void setPresences(const Tp::SimpleContactPresences &presences);
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::BaseConnectionContactListInterface::GetContactListAttributesCallback
Callback3< Tp::ContactAttributesMap, const QStringList &, bool, DBusError * > GetContactListAttributesCallback
Definition: base-connection.h:319
Tp::BaseConnectionContactListInterface::create
static BaseConnectionContactListInterfacePtr create()
Definition: base-connection.h:289
Tp::ContactAttributesMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:950
Tp::BaseConnection::InspectHandlesCallback
Callback3< QStringList, uint, const Tp::UIntList &, DBusError * > InspectHandlesCallback
Definition: base-connection.h:102
Tp::AvatarTokenMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:265
Tp::BaseConnectionAddressingInterface::GetContactsByURICallback
Callback5< void, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByURICallback
Definition: base-connection.h:446
Tp::BaseConnectionContactListInterface::UnpublishCallback
Callback2< void, const Tp::UIntList &, DBusError * > UnpublishCallback
Definition: base-connection.h:339
Tp::BaseConnectionAvatarsInterface::GetKnownAvatarTokensCallback
Callback2< Tp::AvatarTokenMap, const Tp::UIntList &, DBusError * > GetKnownAvatarTokensCallback
Definition: base-connection.h:538
Tp
Definition: abstract-adaptor.cpp:31
Tp::BaseConnectionContactInfoInterface::SetContactInfoCallback
Callback2< void, const Tp::ContactInfoFieldList &, DBusError * > SetContactInfoCallback
Definition: base-connection.h:401
Tp::BaseConnectionContactInfoInterface
Base class for implementations of Connection.Interface.Contact.Info.
Definition: base-connection.h:362
Tp::BaseConnectionContactInfoInterface::create
static SharedPtr< BaseConnectionContactInfoInterfaceSubclass > create()
Definition: base-connection.h:373
QByteArray
Tp::BaseConnectionAvatarsInterface::ClearAvatarCallback
Callback1< void, DBusError * > ClearAvatarCallback
Definition: base-connection.h:550
Tp::Callback2< void, const Tp::UIntList &, DBusError * >
Tp::BaseConnectionRequestsInterface::create
static BaseConnectionRequestsInterfacePtr create(BaseConnection *connection)
Definition: base-connection.h:164
Tp::BaseConnectionAvatarsInterface::SetAvatarCallback
Callback3< QString, const QByteArray &, const QString &, DBusError * > SetAvatarCallback
Definition: base-connection.h:546
Tp::BaseConnectionAddressingInterface::create
static BaseConnectionAddressingInterfacePtr create()
Definition: base-connection.h:426
Tp::BaseConnectionAliasingInterface::create
static SharedPtr< BaseConnectionAliasingInterfaceSubclass > create()
Definition: base-connection.h:473
QDBusConnection
QDBusConnection::sessionBus
QDBusConnection sessionBus()
Tp::BaseConnectionContactListInterface::create
static SharedPtr< BaseConnectionContactListInterfaceSubclass > create()
Definition: base-connection.h:294
Tp::AbstractDBusServiceInterface
Base class for D-Bus service interfaces.
Definition: dbus-service.h:73
Tp::AliasMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:183
Tp::ContactInfoMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:3459
QDBusObjectPath
Tp::BaseConnectionSimplePresenceInterface::SetPresenceCallback
Callback3< uint, const QString &, const QString &, DBusError * > SetPresenceCallback
Definition: base-connection.h:265
QFlags
Tp::AvatarSpec
The AvatarSpec class represents a Telepathy avatar information supported by a protocol.
Definition: avatar.h:51
Tp::BaseConnectionContactInfoInterface::GetContactInfoCallback
Callback2< Tp::ContactInfoMap, const Tp::UIntList &, DBusError * > GetContactInfoCallback
Definition: base-connection.h:389
Tp::BaseConnectionAvatarsInterface
Base class for implementations of Connection.Interface.Avatars.
Definition: base-connection.h:514
Tp::BaseConnectionContactInfoInterface::create
static BaseConnectionContactInfoInterfacePtr create()
Definition: base-connection.h:368
Tp::BaseConnectionAddressingInterface
Base class for implementations of Connection.Interface.Addressing.
Definition: base-connection.h:420
Tp::BaseConnectionContactListInterface::RequestSubscriptionCallback
Callback3< void, const Tp::UIntList &, const QString &, DBusError * > RequestSubscriptionCallback
Definition: base-connection.h:323
Tp::BaseConnectionAliasingInterface::GetAliasFlagsCallback
Callback1< Tp::ConnectionAliasFlags, DBusError * > GetAliasFlagsCallback
Definition: base-connection.h:483
Tp::AddressingNormalizationMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:161
Tp::ContactSubscriptionMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:3505
Tp::BaseConnectionAliasingInterface::SetAliasesCallback
Callback2< void, const Tp::AliasMap &, DBusError * > SetAliasesCallback
Definition: base-connection.h:495
Tp::Callback1< void, DBusError * >
Tp::BaseConnectionSimplePresenceInterface::create
static SharedPtr< BaseConnectionSimplePresenceInterfaceSublclass > create()
Definition: base-connection.h:250
QString
QList
Tp::BaseConnectionContactsInterface
Base class for implementations of Connection.Interface.Contacts.
Definition: base-connection.h:201
Tp::BaseConnectionAliasingInterface::GetAliasesCallback
Callback2< Tp::AliasMap, const Tp::UIntList &, DBusError * > GetAliasesCallback
Definition: base-connection.h:491
Tp::BaseConnection::create
static SharedPtr< BaseConnectionSubclass > create(const QDBusConnection &dbusConnection, const QString &cmName, const QString &protocolName, const QVariantMap &parameters)
Definition: base-connection.h:68
Tp::BaseConnection::ConnectCallback
Callback1< void, DBusError * > ConnectCallback
Definition: base-connection.h:99
Tp::BaseConnectionContactsInterface::create
static BaseConnectionContactsInterfacePtr create()
Definition: base-connection.h:208
Tp::Callback6
Callback with 6 arguments.
Definition: callbacks.h:327
Tp::BaseConnectionAddressingInterface::create
static SharedPtr< BaseConnectionAddressingInterfaceSubclass > create()
Definition: base-connection.h:430
Tp::BaseConnectionAvatarsInterface::RequestAvatarsCallback
Callback2< void, const Tp::UIntList &, DBusError * > RequestAvatarsCallback
Definition: base-connection.h:542
QStringList
Tp::BaseConnectionSimplePresenceInterface
Base class for implementations of Connection.Interface.SimplePresence.
Definition: base-connection.h:240
Tp::BaseConnectionSimplePresenceInterface::create
static BaseConnectionSimplePresenceInterfacePtr create()
Definition: base-connection.h:246
Tp::AbstractConnectionInterface
Base class for all the Connection object interface implementations.
Definition: base-connection.h:141
Tp::BaseConnection::CreateChannelCallback
Callback5< BaseChannelPtr, const QString &, uint, uint, const QVariantMap &, DBusError * > CreateChannelCallback
Definition: base-connection.h:85
Tp::DBusService
Base class for D-Bus services.
Definition: dbus-service.h:46
Tp::UIntList
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:101
Tp::BaseConnectionAvatarsInterface::create
static SharedPtr< BaseConnectionAvatarsInterfaceSubclass > create()
Definition: base-connection.h:525
Tp::BaseConnectionAliasingInterface
Base class for implementations of Connection.Interface.Aliasing.
Definition: base-connection.h:462
Tp::BaseConnectionContactListInterface::AuthorizePublicationCallback
Callback2< void, const Tp::UIntList &, DBusError * > AuthorizePublicationCallback
Definition: base-connection.h:327
Tp::BaseConnectionRequestsInterface::create
static SharedPtr< BaseConnectionRequestsInterfaceSubclass > create(BaseConnection *connection)
Definition: base-connection.h:168
Tp::BaseConnectionAliasingInterface::RequestAliasesCallback
Callback2< QStringList, const Tp::UIntList &, DBusError * > RequestAliasesCallback
Definition: base-connection.h:487
Tp::BaseConnection
Base class for Connection implementations.
Definition: base-connection.h:44
Tp::BaseConnectionAddressingInterface::GetContactsByVCardFieldCallback
Callback6< void, const QString &, const QStringList &, const QStringList &, Tp::AddressingNormalizationMap &, Tp::ContactAttributesMap &, DBusError * > GetContactsByVCardFieldCallback
Definition: base-connection.h:442
Tp::BaseConnection::create
static BaseConnectionPtr create(const QDBusConnection &dbusConnection, const QString &cmName, const QString &protocolName, const QVariantMap &parameters)
Definition: base-connection.h:61
Tp::BaseConnectionContactListInterface::RemoveContactsCallback
Callback2< void, const Tp::UIntList &, DBusError * > RemoveContactsCallback
Definition: base-connection.h:331
Tp::BaseConnection::RequestHandlesCallback
Callback3< UIntList, uint, const QStringList &, DBusError * > RequestHandlesCallback
Definition: base-connection.h:89
Tp::BaseConnectionContactInfoInterface::RequestContactInfoCallback
Callback2< Tp::ContactInfoFieldList, uint, DBusError * > RequestContactInfoCallback
Definition: base-connection.h:397
Tp::BaseConnection::create
static SharedPtr< BaseConnectionSubclass > create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters)
Definition: base-connection.h:56
Tp::BaseConnectionContactListInterface::DownloadCallback
Callback1< void, DBusError * > DownloadCallback
Definition: base-connection.h:343
Tp::DBusError
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
Tp::Callback5< BaseChannelPtr, const QString &, uint, uint, const QVariantMap &, DBusError * >
Tp::SimpleStatusSpecMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:3849
Tp::Callback3< UIntList, uint, const QStringList &, DBusError * >
Tp::BaseConnectionContactsInterface::GetContactAttributesCallback
Callback3< ContactAttributesMap, const Tp::UIntList &, const QStringList &, DBusError * > GetContactAttributesCallback
Definition: base-connection.h:221
Tp::BaseConnectionContactInfoInterface::RefreshContactInfoCallback
Callback2< void, const Tp::UIntList &, DBusError * > RefreshContactInfoCallback
Definition: base-connection.h:393
Tp::HandleIdentifierMap
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:1646
Tp::BaseConnectionAvatarsInterface::create
static BaseConnectionAvatarsInterfacePtr create()
Definition: base-connection.h:520
Tp::BaseConnectionContactListInterface
Base class for implementations of Connection.Interface.ContactList.
Definition: base-connection.h:283
Tp::BaseConnectionAliasingInterface::create
static BaseConnectionAliasingInterfacePtr create()
Definition: base-connection.h:468
Tp::BaseConnectionContactsInterface::create
static SharedPtr< BaseConnectionContactsInterfaceSubclass > create()
Definition: base-connection.h:212
Tp::SimpleContactPresences
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:3827
Tp::SharedPtr
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
Tp::BaseConnectionContactListInterface::UnsubscribeCallback
Callback2< void, const Tp::UIntList &, DBusError * > UnsubscribeCallback
Definition: base-connection.h:335
Tp::BaseConnectionRequestsInterface::requestableChannelClasses
Tp::RequestableChannelClassList requestableChannelClasses
Definition: base-connection.h:177
Tp::BaseConnectionRequestsInterface
Base class for implementations of Connection.Interface.Requests.
Definition: base-connection.h:158
Tp::BaseConnection::create
static BaseConnectionPtr create(const QString &cmName, const QString &protocolName, const QVariantMap &parameters)
Definition: base-connection.h:50