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

cli-channel.h

00001 /*
00002  * This file contains D-Bus client proxy classes generated by qt4-client-gen.py.
00003  *
00004  * This file can be distributed under the same terms as the specification from
00005  * which it was generated.
00006  */
00007 
00008 #ifndef IN_TELEPATHY_QT4_YELL_HEADER
00009 #error IN_TELEPATHY_QT4_YELL_HEADER
00010 #endif
00011 
00012 #include <TelepathyQt4Yell/Types>
00013 #include <TelepathyQt4/Channel>
00014 
00015 #include <QtGlobal>
00016 
00017 #include <QString>
00018 #include <QObject>
00019 #include <QVariant>
00020 
00021 #include <QDBusPendingReply>
00022 
00023 #include <TelepathyQt4/AbstractInterface>
00024 #include <TelepathyQt4/DBusProxy>
00025 #include <TelepathyQt4/Global>
00026 
00027 namespace Tp
00028 {
00029 class PendingVariant;
00030 class PendingOperation;
00031 }
00032 
00033 namespace Tpy
00034 {
00035 namespace Client
00036 {
00037 
00045 class TELEPATHY_QT4_YELL_EXPORT CallContentCodecOfferInterface : public Tp::AbstractInterface
00046 {
00047     Q_OBJECT
00048 
00049 public:
00056     static inline QLatin1String staticInterfaceName()
00057     {
00058         return QLatin1String("org.freedesktop.Telepathy.Call.Content.CodecOffer.DRAFT");
00059     }
00060 
00068     CallContentCodecOfferInterface(
00069         const QString& busName,
00070         const QString& objectPath,
00071         QObject* parent = 0
00072     );
00073 
00082     CallContentCodecOfferInterface(
00083         const QDBusConnection& connection,
00084         const QString& busName,
00085         const QString& objectPath,
00086         QObject* parent = 0
00087     );
00088 
00095     CallContentCodecOfferInterface(Tp::DBusProxy *proxy);
00096 
00104     explicit CallContentCodecOfferInterface(const Tp::Client::ChannelInterface& mainInterface);
00105 
00113     CallContentCodecOfferInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
00114 
00126     inline Tp::PendingVariant *requestPropertyInterfaces() const
00127     {
00128         return internalRequestProperty(QLatin1String("Interfaces"));
00129     }
00130 
00140     inline Tp::PendingVariant *requestPropertyRemoteContactCodecs() const
00141     {
00142         return internalRequestProperty(QLatin1String("RemoteContactCodecs"));
00143     }
00144 
00154     inline Tp::PendingVariant *requestPropertyRemoteContact() const
00155     {
00156         return internalRequestProperty(QLatin1String("RemoteContact"));
00157     }
00158 
00165     Tp::PendingVariantMap *requestAllProperties() const
00166     {
00167         return internalRequestAllProperties();
00168     }
00169 
00170 public Q_SLOTS:
00186     inline QDBusPendingReply<> Accept(const Tpy::CodecList& codecs, int timeout = -1)
00187     {
00188         if (!invalidationReason().isEmpty()) {
00189             return QDBusPendingReply<>(QDBusMessage::createError(
00190                 invalidationReason(),
00191                 invalidationMessage()
00192             ));
00193         }
00194 
00195         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00196                 this->staticInterfaceName(), QLatin1String("Accept"));
00197         callMessage << QVariant::fromValue(codecs);
00198         return this->connection().asyncCall(callMessage, timeout);
00199     }
00200 
00212     inline QDBusPendingReply<> Reject(int timeout = -1)
00213     {
00214         if (!invalidationReason().isEmpty()) {
00215             return QDBusPendingReply<>(QDBusMessage::createError(
00216                 invalidationReason(),
00217                 invalidationMessage()
00218             ));
00219         }
00220 
00221         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00222                 this->staticInterfaceName(), QLatin1String("Reject"));
00223         return this->connection().asyncCall(callMessage, timeout);
00224     }
00225 
00226 protected:
00227     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00228 };
00229 
00237 class TELEPATHY_QT4_YELL_EXPORT CallContentInterface : public Tp::AbstractInterface
00238 {
00239     Q_OBJECT
00240 
00241 public:
00248     static inline QLatin1String staticInterfaceName()
00249     {
00250         return QLatin1String("org.freedesktop.Telepathy.Call.Content.DRAFT");
00251     }
00252 
00260     CallContentInterface(
00261         const QString& busName,
00262         const QString& objectPath,
00263         QObject* parent = 0
00264     );
00265 
00274     CallContentInterface(
00275         const QDBusConnection& connection,
00276         const QString& busName,
00277         const QString& objectPath,
00278         QObject* parent = 0
00279     );
00280 
00287     CallContentInterface(Tp::DBusProxy *proxy);
00288 
00296     explicit CallContentInterface(const Tp::Client::ChannelInterface& mainInterface);
00297 
00305     CallContentInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
00306 
00319     inline Tp::PendingVariant *requestPropertyInterfaces() const
00320     {
00321         return internalRequestProperty(QLatin1String("Interfaces"));
00322     }
00323 
00341     inline Tp::PendingVariant *requestPropertyName() const
00342     {
00343         return internalRequestProperty(QLatin1String("Name"));
00344     }
00345 
00355     inline Tp::PendingVariant *requestPropertyType() const
00356     {
00357         return internalRequestProperty(QLatin1String("Type"));
00358     }
00359 
00369     inline Tp::PendingVariant *requestPropertyDisposition() const
00370     {
00371         return internalRequestProperty(QLatin1String("Disposition"));
00372     }
00373 
00397     inline Tp::PendingVariant *requestPropertyStreams() const
00398     {
00399         return internalRequestProperty(QLatin1String("Streams"));
00400     }
00401 
00411     inline Tp::PendingVariant *requestPropertyPacketization() const
00412     {
00413         return internalRequestProperty(QLatin1String("Packetization"));
00414     }
00415 
00422     Tp::PendingVariantMap *requestAllProperties() const
00423     {
00424         return internalRequestAllProperties();
00425     }
00426 
00427 public Q_SLOTS:
00454     inline QDBusPendingReply<> Remove(uint reason, const QString& detailedRemovalReason, const QString& message, int timeout = -1)
00455     {
00456         if (!invalidationReason().isEmpty()) {
00457             return QDBusPendingReply<>(QDBusMessage::createError(
00458                 invalidationReason(),
00459                 invalidationMessage()
00460             ));
00461         }
00462 
00463         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00464                 this->staticInterfaceName(), QLatin1String("Remove"));
00465         callMessage << QVariant::fromValue(reason) << QVariant::fromValue(detailedRemovalReason) << QVariant::fromValue(message);
00466         return this->connection().asyncCall(callMessage, timeout);
00467     }
00468 
00469 Q_SIGNALS:
00477     void Removed();
00478 
00488     void StreamsAdded(const Tpy::ObjectPathList& streams);
00489 
00499     void StreamsRemoved(const Tpy::ObjectPathList& streams);
00500 
00501 protected:
00502     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00503 };
00504 
00512 class TELEPATHY_QT4_YELL_EXPORT CallContentInterfaceMediaInterface : public Tp::AbstractInterface
00513 {
00514     Q_OBJECT
00515 
00516 public:
00523     static inline QLatin1String staticInterfaceName()
00524     {
00525         return QLatin1String("org.freedesktop.Telepathy.Call.Content.Interface.Media.DRAFT");
00526     }
00527 
00535     CallContentInterfaceMediaInterface(
00536         const QString& busName,
00537         const QString& objectPath,
00538         QObject* parent = 0
00539     );
00540 
00549     CallContentInterfaceMediaInterface(
00550         const QDBusConnection& connection,
00551         const QString& busName,
00552         const QString& objectPath,
00553         QObject* parent = 0
00554     );
00555 
00562     CallContentInterfaceMediaInterface(Tp::DBusProxy *proxy);
00563 
00571     explicit CallContentInterfaceMediaInterface(const Tp::Client::ChannelInterface& mainInterface);
00572 
00580     CallContentInterfaceMediaInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
00581 
00593     inline Tp::PendingVariant *requestPropertyContactCodecMap() const
00594     {
00595         return internalRequestProperty(QLatin1String("ContactCodecMap"));
00596     }
00597 
00626     inline Tp::PendingVariant *requestPropertyCodecOffer() const
00627     {
00628         return internalRequestProperty(QLatin1String("CodecOffer"));
00629     }
00630 
00637     Tp::PendingVariantMap *requestAllProperties() const
00638     {
00639         return internalRequestAllProperties();
00640     }
00641 
00642 public Q_SLOTS:
00658     inline QDBusPendingReply<> UpdateCodecs(const Tpy::CodecList& codecs, int timeout = -1)
00659     {
00660         if (!invalidationReason().isEmpty()) {
00661             return QDBusPendingReply<>(QDBusMessage::createError(
00662                 invalidationReason(),
00663                 invalidationMessage()
00664             ));
00665         }
00666 
00667         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00668                 this->staticInterfaceName(), QLatin1String("UpdateCodecs"));
00669         callMessage << QVariant::fromValue(codecs);
00670         return this->connection().asyncCall(callMessage, timeout);
00671     }
00672 
00673 Q_SIGNALS:
00695     void CodecsChanged(const Tpy::ContactCodecMap& updatedCodecs, const Tpy::UIntList& removedContacts);
00696 
00728     void NewCodecOffer(uint contact, const QDBusObjectPath& offer, const Tpy::CodecList& codecs);
00729 
00730 protected:
00731     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00732 };
00733 
00741 class TELEPATHY_QT4_YELL_EXPORT CallContentInterfaceMuteInterface : public Tp::AbstractInterface
00742 {
00743     Q_OBJECT
00744 
00745 public:
00752     static inline QLatin1String staticInterfaceName()
00753     {
00754         return QLatin1String("org.freedesktop.Telepathy.Call.Content.Interface.Mute.DRAFT");
00755     }
00756 
00764     CallContentInterfaceMuteInterface(
00765         const QString& busName,
00766         const QString& objectPath,
00767         QObject* parent = 0
00768     );
00769 
00778     CallContentInterfaceMuteInterface(
00779         const QDBusConnection& connection,
00780         const QString& busName,
00781         const QString& objectPath,
00782         QObject* parent = 0
00783     );
00784 
00791     CallContentInterfaceMuteInterface(Tp::DBusProxy *proxy);
00792 
00800     explicit CallContentInterfaceMuteInterface(const Tp::Client::ChannelInterface& mainInterface);
00801 
00809     CallContentInterfaceMuteInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
00810 
00820     inline Tp::PendingVariant *requestPropertyMuteState() const
00821     {
00822         return internalRequestProperty(QLatin1String("MuteState"));
00823     }
00824 
00831     Tp::PendingVariantMap *requestAllProperties() const
00832     {
00833         return internalRequestAllProperties();
00834     }
00835 
00836 public Q_SLOTS:
00854     inline QDBusPendingReply<> SetMuted(bool muted, int timeout = -1)
00855     {
00856         if (!invalidationReason().isEmpty()) {
00857             return QDBusPendingReply<>(QDBusMessage::createError(
00858                 invalidationReason(),
00859                 invalidationMessage()
00860             ));
00861         }
00862 
00863         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00864                 this->staticInterfaceName(), QLatin1String("SetMuted"));
00865         callMessage << QVariant::fromValue(muted);
00866         return this->connection().asyncCall(callMessage, timeout);
00867     }
00868 
00869 Q_SIGNALS:
00882     void MuteStateChanged(bool muteState);
00883 
00884 protected:
00885     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00886 };
00887 
00895 class TELEPATHY_QT4_YELL_EXPORT CallStreamEndpointInterface : public Tp::AbstractInterface
00896 {
00897     Q_OBJECT
00898 
00899 public:
00906     static inline QLatin1String staticInterfaceName()
00907     {
00908         return QLatin1String("org.freedesktop.Telepathy.Call.Stream.Endpoint.DRAFT");
00909     }
00910 
00918     CallStreamEndpointInterface(
00919         const QString& busName,
00920         const QString& objectPath,
00921         QObject* parent = 0
00922     );
00923 
00932     CallStreamEndpointInterface(
00933         const QDBusConnection& connection,
00934         const QString& busName,
00935         const QString& objectPath,
00936         QObject* parent = 0
00937     );
00938 
00945     CallStreamEndpointInterface(Tp::DBusProxy *proxy);
00946 
00954     explicit CallStreamEndpointInterface(const Tp::Client::ChannelInterface& mainInterface);
00955 
00963     CallStreamEndpointInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
00964 
00977     inline Tp::PendingVariant *requestPropertyRemoteCredentials() const
00978     {
00979         return internalRequestProperty(QLatin1String("RemoteCredentials"));
00980     }
00981 
00991     inline Tp::PendingVariant *requestPropertyRemoteCandidates() const
00992     {
00993         return internalRequestProperty(QLatin1String("RemoteCandidates"));
00994     }
00995 
01007     inline Tp::PendingVariant *requestPropertySelectedCandidate() const
01008     {
01009         return internalRequestProperty(QLatin1String("SelectedCandidate"));
01010     }
01011 
01021     inline Tp::PendingVariant *requestPropertyStreamState() const
01022     {
01023         return internalRequestProperty(QLatin1String("StreamState"));
01024     }
01025 
01035     inline Tp::PendingVariant *requestPropertyTransport() const
01036     {
01037         return internalRequestProperty(QLatin1String("Transport"));
01038     }
01039 
01046     Tp::PendingVariantMap *requestAllProperties() const
01047     {
01048         return internalRequestAllProperties();
01049     }
01050 
01051 public Q_SLOTS:
01066     inline QDBusPendingReply<> SetSelectedCandidate(const Tpy::Candidate& candidate, int timeout = -1)
01067     {
01068         if (!invalidationReason().isEmpty()) {
01069             return QDBusPendingReply<>(QDBusMessage::createError(
01070                 invalidationReason(),
01071                 invalidationMessage()
01072             ));
01073         }
01074 
01075         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01076                 this->staticInterfaceName(), QLatin1String("SetSelectedCandidate"));
01077         callMessage << QVariant::fromValue(candidate);
01078         return this->connection().asyncCall(callMessage, timeout);
01079     }
01080 
01095     inline QDBusPendingReply<> SetStreamState(uint state, int timeout = -1)
01096     {
01097         if (!invalidationReason().isEmpty()) {
01098             return QDBusPendingReply<>(QDBusMessage::createError(
01099                 invalidationReason(),
01100                 invalidationMessage()
01101             ));
01102         }
01103 
01104         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01105                 this->staticInterfaceName(), QLatin1String("SetStreamState"));
01106         callMessage << QVariant::fromValue(state);
01107         return this->connection().asyncCall(callMessage, timeout);
01108     }
01109 
01110 Q_SIGNALS:
01126     void RemoteCredentialsSet(const QString& username, const QString& password);
01127 
01138     void RemoteCandidatesAdded(const Tpy::CandidateList& candidates);
01139 
01149     void CandidateSelected(const Tpy::Candidate& candidate);
01150 
01160     void StreamStateChanged(uint state);
01161 
01162 protected:
01163     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01164 };
01165 
01173 class TELEPATHY_QT4_YELL_EXPORT CallStreamInterface : public Tp::AbstractInterface
01174 {
01175     Q_OBJECT
01176 
01177 public:
01184     static inline QLatin1String staticInterfaceName()
01185     {
01186         return QLatin1String("org.freedesktop.Telepathy.Call.Stream.DRAFT");
01187     }
01188 
01196     CallStreamInterface(
01197         const QString& busName,
01198         const QString& objectPath,
01199         QObject* parent = 0
01200     );
01201 
01210     CallStreamInterface(
01211         const QDBusConnection& connection,
01212         const QString& busName,
01213         const QString& objectPath,
01214         QObject* parent = 0
01215     );
01216 
01223     CallStreamInterface(Tp::DBusProxy *proxy);
01224 
01232     explicit CallStreamInterface(const Tp::Client::ChannelInterface& mainInterface);
01233 
01241     CallStreamInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
01242 
01254     inline Tp::PendingVariant *requestPropertyInterfaces() const
01255     {
01256         return internalRequestProperty(QLatin1String("Interfaces"));
01257     }
01258 
01279     inline Tp::PendingVariant *requestPropertyRemoteMembers() const
01280     {
01281         return internalRequestProperty(QLatin1String("RemoteMembers"));
01282     }
01283 
01320     inline Tp::PendingVariant *requestPropertyLocalSendingState() const
01321     {
01322         return internalRequestProperty(QLatin1String("LocalSendingState"));
01323     }
01324 
01338     inline Tp::PendingVariant *requestPropertyCanRequestReceiving() const
01339     {
01340         return internalRequestProperty(QLatin1String("CanRequestReceiving"));
01341     }
01342 
01349     Tp::PendingVariantMap *requestAllProperties() const
01350     {
01351         return internalRequestAllProperties();
01352     }
01353 
01354 public Q_SLOTS:
01378     inline QDBusPendingReply<> SetSending(bool send, int timeout = -1)
01379     {
01380         if (!invalidationReason().isEmpty()) {
01381             return QDBusPendingReply<>(QDBusMessage::createError(
01382                 invalidationReason(),
01383                 invalidationMessage()
01384             ));
01385         }
01386 
01387         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01388                 this->staticInterfaceName(), QLatin1String("SetSending"));
01389         callMessage << QVariant::fromValue(send);
01390         return this->connection().asyncCall(callMessage, timeout);
01391     }
01392 
01414     inline QDBusPendingReply<> RequestReceiving(uint contact, bool receive, int timeout = -1)
01415     {
01416         if (!invalidationReason().isEmpty()) {
01417             return QDBusPendingReply<>(QDBusMessage::createError(
01418                 invalidationReason(),
01419                 invalidationMessage()
01420             ));
01421         }
01422 
01423         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01424                 this->staticInterfaceName(), QLatin1String("RequestReceiving"));
01425         callMessage << QVariant::fromValue(contact) << QVariant::fromValue(receive);
01426         return this->connection().asyncCall(callMessage, timeout);
01427     }
01428 
01429 Q_SIGNALS:
01447     void RemoteMembersChanged(const Tpy::ContactSendingStateMap& updates, const Tpy::UIntList& removed);
01448 
01458     void LocalSendingStateChanged(uint state);
01459 
01460 protected:
01461     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01462 };
01463 
01471 class TELEPATHY_QT4_YELL_EXPORT CallStreamInterfaceMediaInterface : public Tp::AbstractInterface
01472 {
01473     Q_OBJECT
01474 
01475 public:
01482     static inline QLatin1String staticInterfaceName()
01483     {
01484         return QLatin1String("org.freedesktop.Telepathy.Call.Stream.Interface.Media.DRAFT");
01485     }
01486 
01494     CallStreamInterfaceMediaInterface(
01495         const QString& busName,
01496         const QString& objectPath,
01497         QObject* parent = 0
01498     );
01499 
01508     CallStreamInterfaceMediaInterface(
01509         const QDBusConnection& connection,
01510         const QString& busName,
01511         const QString& objectPath,
01512         QObject* parent = 0
01513     );
01514 
01521     CallStreamInterfaceMediaInterface(Tp::DBusProxy *proxy);
01522 
01530     explicit CallStreamInterfaceMediaInterface(const Tp::Client::ChannelInterface& mainInterface);
01531 
01539     CallStreamInterfaceMediaInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
01540 
01550     inline Tp::PendingVariant *requestPropertyTransport() const
01551     {
01552         return internalRequestProperty(QLatin1String("Transport"));
01553     }
01554 
01564     inline Tp::PendingVariant *requestPropertyLocalCandidates() const
01565     {
01566         return internalRequestProperty(QLatin1String("LocalCandidates"));
01567     }
01568 
01578     inline Tp::PendingVariant *requestPropertyLocalCredentials() const
01579     {
01580         return internalRequestProperty(QLatin1String("LocalCredentials"));
01581     }
01582 
01602     inline Tp::PendingVariant *requestPropertySTUNServers() const
01603     {
01604         return internalRequestProperty(QLatin1String("STUNServers"));
01605     }
01606 
01686     inline Tp::PendingVariant *requestPropertyRelayInfo() const
01687     {
01688         return internalRequestProperty(QLatin1String("RelayInfo"));
01689     }
01690 
01708     inline Tp::PendingVariant *requestPropertyHasServerInfo() const
01709     {
01710         return internalRequestProperty(QLatin1String("HasServerInfo"));
01711     }
01712 
01723     inline Tp::PendingVariant *requestPropertyEndpoints() const
01724     {
01725         return internalRequestProperty(QLatin1String("Endpoints"));
01726     }
01727 
01734     Tp::PendingVariantMap *requestAllProperties() const
01735     {
01736         return internalRequestAllProperties();
01737     }
01738 
01739 public Q_SLOTS:
01759     inline QDBusPendingReply<> SetCredentials(const QString& username, const QString& password, int timeout = -1)
01760     {
01761         if (!invalidationReason().isEmpty()) {
01762             return QDBusPendingReply<>(QDBusMessage::createError(
01763                 invalidationReason(),
01764                 invalidationMessage()
01765             ));
01766         }
01767 
01768         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01769                 this->staticInterfaceName(), QLatin1String("SetCredentials"));
01770         callMessage << QVariant::fromValue(username) << QVariant::fromValue(password);
01771         return this->connection().asyncCall(callMessage, timeout);
01772     }
01773 
01789     inline QDBusPendingReply<> AddCandidates(const Tpy::CandidateList& candidates, int timeout = -1)
01790     {
01791         if (!invalidationReason().isEmpty()) {
01792             return QDBusPendingReply<>(QDBusMessage::createError(
01793                 invalidationReason(),
01794                 invalidationMessage()
01795             ));
01796         }
01797 
01798         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01799                 this->staticInterfaceName(), QLatin1String("AddCandidates"));
01800         callMessage << QVariant::fromValue(candidates);
01801         return this->connection().asyncCall(callMessage, timeout);
01802     }
01803 
01815     inline QDBusPendingReply<> CandidatesPrepared(int timeout = -1)
01816     {
01817         if (!invalidationReason().isEmpty()) {
01818             return QDBusPendingReply<>(QDBusMessage::createError(
01819                 invalidationReason(),
01820                 invalidationMessage()
01821             ));
01822         }
01823 
01824         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
01825                 this->staticInterfaceName(), QLatin1String("CandidatesPrepared"));
01826         return this->connection().asyncCall(callMessage, timeout);
01827     }
01828 
01829 Q_SIGNALS:
01839     void LocalCandidatesAdded(const Tpy::CandidateList& candidates);
01840 
01846     void LocalCredentialsChanged(const QString& username, const QString& password);
01847 
01853     void RelayInfoChanged(const Tpy::StringVariantMapList& relayInfo);
01854 
01860     void STUNServersChanged(const Tpy::SocketAddressIPList& servers);
01861 
01870     void ServerInfoRetrieved();
01871 
01885     void EndpointsChanged(const Tpy::ObjectPathList& endpointsAdded, const Tpy::ObjectPathList& endpointsRemoved);
01886 
01893     void PleaseRestartICE();
01894 
01895 protected:
01896     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
01897 };
01898 
01906 class TELEPATHY_QT4_YELL_EXPORT ChannelInterfaceCredentialsStorageInterface : public Tp::AbstractInterface
01907 {
01908     Q_OBJECT
01909 
01910 public:
01917     static inline QLatin1String staticInterfaceName()
01918     {
01919         return QLatin1String("org.freedesktop.Telepathy.Channel.Interface.CredentialsStorage.DRAFT");
01920     }
01921 
01929     ChannelInterfaceCredentialsStorageInterface(
01930         const QString& busName,
01931         const QString& objectPath,
01932         QObject* parent = 0
01933     );
01934 
01943     ChannelInterfaceCredentialsStorageInterface(
01944         const QDBusConnection& connection,
01945         const QString& busName,
01946         const QString& objectPath,
01947         QObject* parent = 0
01948     );
01949 
01956     ChannelInterfaceCredentialsStorageInterface(Tp::DBusProxy *proxy);
01957 
01965     explicit ChannelInterfaceCredentialsStorageInterface(const Tp::Client::ChannelInterface& mainInterface);
01966 
01974     ChannelInterfaceCredentialsStorageInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
01975 
01982     Tp::PendingVariantMap *requestAllProperties() const
01983     {
01984         return internalRequestAllProperties();
01985     }
01986 
01987 public Q_SLOTS:
02008     inline QDBusPendingReply<> StoreCredentials(bool store, int timeout = -1)
02009     {
02010         if (!invalidationReason().isEmpty()) {
02011             return QDBusPendingReply<>(QDBusMessage::createError(
02012                 invalidationReason(),
02013                 invalidationMessage()
02014             ));
02015         }
02016 
02017         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
02018                 this->staticInterfaceName(), QLatin1String("StoreCredentials"));
02019         callMessage << QVariant::fromValue(store);
02020         return this->connection().asyncCall(callMessage, timeout);
02021     }
02022 
02023 protected:
02024     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
02025 };
02026 
02034 class TELEPATHY_QT4_YELL_EXPORT ChannelTypeCallInterface : public Tp::AbstractInterface
02035 {
02036     Q_OBJECT
02037 
02038 public:
02045     static inline QLatin1String staticInterfaceName()
02046     {
02047         return QLatin1String("org.freedesktop.Telepathy.Channel.Type.Call.DRAFT");
02048     }
02049 
02057     ChannelTypeCallInterface(
02058         const QString& busName,
02059         const QString& objectPath,
02060         QObject* parent = 0
02061     );
02062 
02071     ChannelTypeCallInterface(
02072         const QDBusConnection& connection,
02073         const QString& busName,
02074         const QString& objectPath,
02075         QObject* parent = 0
02076     );
02077 
02084     ChannelTypeCallInterface(Tp::DBusProxy *proxy);
02085 
02093     explicit ChannelTypeCallInterface(const Tp::Client::ChannelInterface& mainInterface);
02094 
02102     ChannelTypeCallInterface(const Tp::Client::ChannelInterface& mainInterface, QObject* parent);
02103 
02117     inline Tp::PendingVariant *requestPropertyContents() const
02118     {
02119         return internalRequestProperty(QLatin1String("Contents"));
02120     }
02121 
02164     inline Tp::PendingVariant *requestPropertyCallStateDetails() const
02165     {
02166         return internalRequestProperty(QLatin1String("CallStateDetails"));
02167     }
02168 
02191     inline Tp::PendingVariant *requestPropertyCallState() const
02192     {
02193         return internalRequestProperty(QLatin1String("CallState"));
02194     }
02195 
02213     inline Tp::PendingVariant *requestPropertyCallFlags() const
02214     {
02215         return internalRequestProperty(QLatin1String("CallFlags"));
02216     }
02217 
02231     inline Tp::PendingVariant *requestPropertyCallStateReason() const
02232     {
02233         return internalRequestProperty(QLatin1String("CallStateReason"));
02234     }
02235 
02267     inline Tp::PendingVariant *requestPropertyHardwareStreaming() const
02268     {
02269         return internalRequestProperty(QLatin1String("HardwareStreaming"));
02270     }
02271 
02295     inline Tp::PendingVariant *requestPropertyCallMembers() const
02296     {
02297         return internalRequestProperty(QLatin1String("CallMembers"));
02298     }
02299 
02319     inline Tp::PendingVariant *requestPropertyInitialTransport() const
02320     {
02321         return internalRequestProperty(QLatin1String("InitialTransport"));
02322     }
02323 
02391     inline Tp::PendingVariant *requestPropertyInitialAudio() const
02392     {
02393         return internalRequestProperty(QLatin1String("InitialAudio"));
02394     }
02395 
02414     inline Tp::PendingVariant *requestPropertyInitialVideo() const
02415     {
02416         return internalRequestProperty(QLatin1String("InitialVideo"));
02417     }
02418 
02444     inline Tp::PendingVariant *requestPropertyInitialAudioName() const
02445     {
02446         return internalRequestProperty(QLatin1String("InitialAudioName"));
02447     }
02448 
02462     inline Tp::PendingVariant *requestPropertyInitialVideoName() const
02463     {
02464         return internalRequestProperty(QLatin1String("InitialVideoName"));
02465     }
02466 
02496     inline Tp::PendingVariant *requestPropertyMutableContents() const
02497     {
02498         return internalRequestProperty(QLatin1String("MutableContents"));
02499     }
02500 
02507     Tp::PendingVariantMap *requestAllProperties() const
02508     {
02509         return internalRequestAllProperties();
02510     }
02511 
02512 public Q_SLOTS:
02540     inline QDBusPendingReply<> SetRinging(int timeout = -1)
02541     {
02542         if (!invalidationReason().isEmpty()) {
02543             return QDBusPendingReply<>(QDBusMessage::createError(
02544                 invalidationReason(),
02545                 invalidationMessage()
02546             ));
02547         }
02548 
02549         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
02550                 this->staticInterfaceName(), QLatin1String("SetRinging"));
02551         return this->connection().asyncCall(callMessage, timeout);
02552     }
02553 
02587     inline QDBusPendingReply<> Accept(int timeout = -1)
02588     {
02589         if (!invalidationReason().isEmpty()) {
02590             return QDBusPendingReply<>(QDBusMessage::createError(
02591                 invalidationReason(),
02592                 invalidationMessage()
02593             ));
02594         }
02595 
02596         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
02597                 this->staticInterfaceName(), QLatin1String("Accept"));
02598         return this->connection().asyncCall(callMessage, timeout);
02599     }
02600 
02626     inline QDBusPendingReply<> Hangup(uint reason, const QString& detailedHangupReason, const QString& message, int timeout = -1)
02627     {
02628         if (!invalidationReason().isEmpty()) {
02629             return QDBusPendingReply<>(QDBusMessage::createError(
02630                 invalidationReason(),
02631                 invalidationMessage()
02632             ));
02633         }
02634 
02635         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
02636                 this->staticInterfaceName(), QLatin1String("Hangup"));
02637         callMessage << QVariant::fromValue(reason) << QVariant::fromValue(detailedHangupReason) << QVariant::fromValue(message);
02638         return this->connection().asyncCall(callMessage, timeout);
02639     }
02640 
02675     inline QDBusPendingReply<QDBusObjectPath> AddContent(const QString& contentName, uint contentType, int timeout = -1)
02676     {
02677         if (!invalidationReason().isEmpty()) {
02678             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
02679                 invalidationReason(),
02680                 invalidationMessage()
02681             ));
02682         }
02683 
02684         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
02685                 this->staticInterfaceName(), QLatin1String("AddContent"));
02686         callMessage << QVariant::fromValue(contentName) << QVariant::fromValue(contentType);
02687         return this->connection().asyncCall(callMessage, timeout);
02688     }
02689 
02690 Q_SIGNALS:
02700     void ContentAdded(const QDBusObjectPath& content);
02701 
02711     void ContentRemoved(const QDBusObjectPath& content);
02712 
02738     void CallStateChanged(uint callState, uint callFlags, const Tpy::CallStateReason& callStateReason, const QVariantMap& callStateDetails);
02739 
02758     void CallMembersChanged(const Tpy::CallMemberMap& flagsChanged, const Tpy::UIntList& removed);
02759 
02760 protected:
02761     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
02762 };
02763 }
02764 }
02765 Q_DECLARE_METATYPE(Tpy::Client::CallContentCodecOfferInterface*)
02766 Q_DECLARE_METATYPE(Tpy::Client::CallContentInterface*)
02767 Q_DECLARE_METATYPE(Tpy::Client::CallContentInterfaceMediaInterface*)
02768 Q_DECLARE_METATYPE(Tpy::Client::CallContentInterfaceMuteInterface*)
02769 Q_DECLARE_METATYPE(Tpy::Client::CallStreamEndpointInterface*)
02770 Q_DECLARE_METATYPE(Tpy::Client::CallStreamInterface*)
02771 Q_DECLARE_METATYPE(Tpy::Client::CallStreamInterfaceMediaInterface*)
02772 Q_DECLARE_METATYPE(Tpy::Client::ChannelInterfaceCredentialsStorageInterface*)
02773 Q_DECLARE_METATYPE(Tpy::Client::ChannelTypeCallInterface*)


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4-Yell 0.1.6