219
class TP_QT_EXPORT BaseChannelRoomListType : public AbstractChannelInterface
222
Q_DISABLE_COPY(BaseChannelRoomListType)
225
static BaseChannelRoomListTypePtr create(const QString &server = QString())
227
return BaseChannelRoomListTypePtr(new BaseChannelRoomListType(server));
229
template<typename BaseChannelRoomListTypeSubclass>
230
static SharedPtr<BaseChannelRoomListTypeSubclass> create(const QString &server = QString())
232
return SharedPtr<BaseChannelRoomListTypeSubclass>(
233
new BaseChannelRoomListTypeSubclass(server));
236
virtual ~BaseChannelRoomListType();
238
QVariantMap immutableProperties() const;
240
QString server() const;
242
bool getListingRooms();
243
void setListingRooms(bool listing);
245
typedef Callback1<void, DBusError*> ListRoomsCallback;
246
void setListRoomsCallback(const ListRoomsCallback &cb);
247
void listRooms(DBusError *error);
249
typedef Callback1<void, DBusError*> StopListingCallback;
250
void setStopListingCallback(const StopListingCallback &cb);
251
void stopListing(DBusError *error);
253
void gotRooms(const Tp::RoomInfoList &rooms);
256
BaseChannelRoomListType(const QString &server);
259
void createAdaptor();
262
friend class Adaptee;
264
friend struct Private;
219
268
class TP_QT_EXPORT BaseChannelServerAuthenticationType : public AbstractChannelInterface
342
class TP_QT_EXPORT BaseChannelSASLAuthenticationInterface : public AbstractChannelInterface
345
Q_DISABLE_COPY(BaseChannelSASLAuthenticationInterface)
348
static BaseChannelSASLAuthenticationInterfacePtr create(const QStringList &availableMechanisms,
351
const QString &authorizationIdentity,
352
const QString &defaultUsername,
353
const QString &defaultRealm,
354
bool maySaveResponse)
356
return BaseChannelSASLAuthenticationInterfacePtr(new BaseChannelSASLAuthenticationInterface(availableMechanisms,
359
authorizationIdentity,
364
template<typename BaseChannelSASLAuthenticationInterfaceSubclass>
365
static SharedPtr<BaseChannelSASLAuthenticationInterfaceSubclass> create(const QStringList &availableMechanisms,
368
const QString &authorizationIdentity,
369
const QString &defaultUsername,
370
const QString &defaultRealm,
371
bool maySaveResponse)
373
return SharedPtr<BaseChannelSASLAuthenticationInterfaceSubclass>(
374
new BaseChannelSASLAuthenticationInterfaceSubclass(availableMechanisms,
377
authorizationIdentity,
383
virtual ~BaseChannelSASLAuthenticationInterface();
385
QVariantMap immutableProperties() const;
387
QStringList availableMechanisms() const;
388
bool hasInitialData() const;
389
bool canTryAgain() const;
390
QString authorizationIdentity() const;
391
QString defaultUsername() const;
392
QString defaultRealm() const;
393
bool maySaveResponse() const;
395
uint saslStatus() const;
396
void setSaslStatus(uint status, const QString &reason, const QVariantMap &details);
398
QString saslError() const;
399
void setSaslError(const QString &saslError);
401
QVariantMap saslErrorDetails() const;
402
void setSaslErrorDetails(const QVariantMap &saslErrorDetails);
404
typedef Callback2<void, const QString &, DBusError*> StartMechanismCallback;
405
void setStartMechanismCallback(const StartMechanismCallback &cb);
406
void startMechanism(const QString &mechanism, DBusError *error);
408
typedef Callback3<void, const QString &, const QByteArray &, DBusError*> StartMechanismWithDataCallback;
409
void setStartMechanismWithDataCallback(const StartMechanismWithDataCallback &cb);
410
void startMechanismWithData(const QString &mechanism, const QByteArray &initialData, DBusError *error);
412
typedef Callback2<void, const QByteArray &, DBusError*> RespondCallback;
413
void setRespondCallback(const RespondCallback &cb);
414
void respond(const QByteArray &responseData, DBusError *error);
416
typedef Callback1<void, DBusError*> AcceptSASLCallback;
417
void setAcceptSaslCallback(const AcceptSASLCallback &cb);
418
void acceptSasl(DBusError *error);
420
typedef Callback3<void, uint, const QString &, DBusError*> AbortSASLCallback;
421
void setAbortSaslCallback(const AbortSASLCallback &cb);
422
void abortSasl(uint reason, const QString &debugMessage, DBusError *error);
424
void newChallenge(const QByteArray &challengeData);
427
BaseChannelSASLAuthenticationInterface(const QStringList &availableMechanisms,
430
const QString &authorizationIdentity,
431
const QString &defaultUsername,
432
const QString &defaultRealm,
433
bool maySaveResponse);
436
void createAdaptor();
439
friend class Adaptee;
441
friend struct Private;
445
class TP_QT_EXPORT BaseChannelSecurableInterface : public AbstractChannelInterface
448
Q_DISABLE_COPY(BaseChannelSecurableInterface)
451
static BaseChannelSecurableInterfacePtr create()
453
return BaseChannelSecurableInterfacePtr(new BaseChannelSecurableInterface());
455
template<typename BaseChannelSecurableInterfaceSubclass>
456
static SharedPtr<BaseChannelSecurableInterfaceSubclass> create()
458
return SharedPtr<BaseChannelSecurableInterfaceSubclass>(
459
new BaseChannelSecurableInterfaceSubclass());
462
virtual ~BaseChannelSecurableInterface();
464
QVariantMap immutableProperties() const;
466
bool encrypted() const;
467
void setEncrypted(bool encrypted);
469
bool verified() const;
470
void setVerified(bool verified);
473
BaseChannelSecurableInterface();
476
void createAdaptor();
479
friend class Adaptee;
481
friend struct Private;
485
class TP_QT_EXPORT BaseChannelChatStateInterface : public AbstractChannelInterface
488
Q_DISABLE_COPY(BaseChannelChatStateInterface)
491
static BaseChannelChatStateInterfacePtr create()
493
return BaseChannelChatStateInterfacePtr(new BaseChannelChatStateInterface());
495
template<typename BaseChannelChatStateInterfaceSubclass>
496
static SharedPtr<BaseChannelChatStateInterfaceSubclass> create()
498
return SharedPtr<BaseChannelChatStateInterfaceSubclass>(
499
new BaseChannelChatStateInterfaceSubclass());
502
virtual ~BaseChannelChatStateInterface();
504
QVariantMap immutableProperties() const;
506
Tp::ChatStateMap chatStates() const;
507
void setChatStates(const Tp::ChatStateMap &chatStates);
509
typedef Callback2<void, uint, DBusError*> SetChatStateCallback;
510
void setSetChatStateCallback(const SetChatStateCallback &cb);
511
void setChatState(uint state, DBusError *error);
513
void chatStateChanged(uint contact, uint state);
516
BaseChannelChatStateInterface();
519
void createAdaptor();
522
friend class Adaptee;
524
friend struct Private;
293
528
class TP_QT_EXPORT BaseChannelGroupInterface : public AbstractChannelInterface
568
class TP_QT_EXPORT BaseChannelRoomInterface : public AbstractChannelInterface
571
Q_DISABLE_COPY(BaseChannelRoomInterface)
574
static BaseChannelRoomInterfacePtr create(const QString &roomName,
575
const QString &server,
576
const QString &creator,
578
const QDateTime &creationTimestamp)
580
return BaseChannelRoomInterfacePtr(new BaseChannelRoomInterface(roomName,
586
template<typename BaseChannelRoomInterfaceSubclass>
587
static SharedPtr<BaseChannelRoomInterfaceSubclass> create(const QString &roomName,
588
const QString &server,
589
const QString &creator,
591
const QDateTime &creationTimestamp)
593
return SharedPtr<BaseChannelRoomInterfaceSubclass>(
594
new BaseChannelRoomInterfaceSubclass(roomName,
601
virtual ~BaseChannelRoomInterface();
603
QVariantMap immutableProperties() const;
605
QString roomName() const;
606
QString server() const;
607
QString creator() const;
608
uint creatorHandle() const;
609
QDateTime creationTimestamp() const;
612
BaseChannelRoomInterface(const QString &roomName,
613
const QString &server,
614
const QString &creator,
616
const QDateTime &creationTimestamp);
619
void createAdaptor();
622
friend class Adaptee;
624
friend struct Private;
628
class TP_QT_EXPORT BaseChannelRoomConfigInterface : public AbstractChannelInterface
631
Q_DISABLE_COPY(BaseChannelRoomConfigInterface)
634
static BaseChannelRoomConfigInterfacePtr create()
636
return BaseChannelRoomConfigInterfacePtr(new BaseChannelRoomConfigInterface());
638
template<typename BaseChannelRoomConfigInterfaceSubclass>
639
static SharedPtr<BaseChannelRoomConfigInterfaceSubclass> create()
641
return SharedPtr<BaseChannelRoomConfigInterfaceSubclass>(
642
new BaseChannelRoomConfigInterfaceSubclass());
645
virtual ~BaseChannelRoomConfigInterface();
647
QVariantMap immutableProperties() const;
649
bool anonymous() const;
650
void setAnonymous(bool anonymous);
652
bool inviteOnly() const;
653
void setInviteOnly(bool inviteOnly);
656
void setLimit(uint limit);
658
bool moderated() const;
659
void setModerated(bool moderated);
661
QString title() const;
662
void setTitle(const QString &title);
664
QString description() const;
665
void setDescription(const QString &description);
667
bool persistent() const;
668
void setPersistent(bool persistent);
670
bool isPrivate() const;
671
void setPrivate(bool newPrivate);
673
bool passwordProtected() const;
674
void setPasswordProtected(bool passwordProtected);
676
QString password() const;
677
void setPassword(const QString &password);
679
QString passwordHint() const;
680
void setPasswordHint(const QString &passwordHint);
682
bool canUpdateConfiguration() const;
683
void setCanUpdateConfiguration(bool canUpdateConfiguration);
685
QStringList mutableProperties() const;
686
void setMutableProperties(const QStringList &mutableProperties);
688
bool configurationRetrieved() const;
689
void setConfigurationRetrieved(bool configurationRetrieved);
691
typedef Callback2<void, const QVariantMap &, DBusError*> UpdateConfigurationCallback;
692
void setUpdateConfigurationCallback(const UpdateConfigurationCallback &cb);
693
void updateConfiguration(const QVariantMap &properties, DBusError *error);
696
BaseChannelRoomConfigInterface();
699
void createAdaptor();
702
friend class Adaptee;
704
friend struct Private;
333
708
class TP_QT_EXPORT BaseChannelCallType : public AbstractChannelInterface