Skip to content

Instantly share code, notes, and snippets.

@gkiagia
Created November 1, 2016 14:43
Show Gist options
  • Save gkiagia/6583a6e1c621fc28a8109e20a08463a9 to your computer and use it in GitHub Desktop.
Save gkiagia/6583a6e1c621fc28a8109e20a08463a9 to your computer and use it in GitHub Desktop.
////// BASE CLASSES - for reference
class TP_QT_EXPORT DBusObject : public Object
{
Q_OBJECT
Q_DISABLE_COPY(DBusObject)
public:
static DBusObjectPtr create(const QDBusConnection &dbusConnection =
QDBusConnection::sessionBus());
virtual ~DBusObject();
QString objectPath() const;
QDBusConnection dbusConnection() const;
bool isRegistered() const;
bool registerObject(const QString &objectPath, DBusError *error);
QStringList interfaces() const;
AbstractDBusInterfaceAdapteePtr interfaceAdaptee(const QString &interfaceName) const;
bool plugInterfaceAdaptee(const AbstractDBusInterfaceAdapteePtr &adaptee);
protected:
DBusObject(const QDBusConnection &dbusConnection);
private:
struct Private;
friend struct Private;
Private *mPriv;
};
class TP_QT_EXPORT AbstractDBusInterfaceAdaptee : public Object
{
Q_OBJECT
Q_DISABLE_COPY(AbstractDBusInterfaceAdaptee)
public:
virtual ~AbstractDBusInterfaceAdaptee();
virtual QString interfaceName() const;
DBusObject *dbusObject() const;
inline bool isRegistered() const
{ return dbusObject() ? dbusObject()->isRegistered() : false; }
protected:
AbstractDBusInterfaceAdaptee();
virtual void createAdaptor() = 0;
private:
TP_QT_NO_EXPORT void attachToDBusObject(DBusObject *dbusObject);
friend class DBusObject;
struct Private;
friend struct Private;
Private *mPriv;
};
////// BEGIN PUBLIC HEADER PART
class ChannelTypeFileTransferAdaptee;
typedef SharedPtr<ChannelTypeFileTransferAdaptee> ChannelTypeFileTransferAdapteePtr;
/**
* \class ChannelTypeFileTransferAdaptee
* \headerfile svc-channel.h <svc-channel.h>
*
* Adaptee class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Type.FileTransfer".
*/
class TP_QT_EXPORT ChannelTypeFileTransferAdaptee : public Tp::AbstractDBusInterfaceAdaptee
{
Q_OBJECT
Q_DISABLE_COPY(ChannelTypeFileTransferAdaptee)
/**
* The exported D-Bus property \c State.
*
* DOCSTRING
*/
Q_PROPERTY(uint state READ state WRITE setState)
/**
* The exported D-Bus property \c ContentType.
*
* DOCSTRING
*/
Q_PROPERTY(QString contentType READ contentType WRITE setContentType)
/**
* The exported D-Bus property \c Filename.
*
* DOCSTRING
*/
Q_PROPERTY(QString filename READ filename WRITE setFilename)
/**
* The exported D-Bus property \c Size.
*
* DOCSTRING
*/
Q_PROPERTY(qulonglong size READ size WRITE setSize)
/**
* The exported D-Bus property \c ContentHashType.
*
* DOCSTRING
*/
Q_PROPERTY(uint contentHashType READ contentHashType WRITE setContentHashType)
/**
* The exported D-Bus property \c ContentHash.
*
* DOCSTRING
*/
Q_PROPERTY(QString contentHash READ contentHash WRITE setContentHash)
/**
* The exported D-Bus property \c Description.
*
* DOCSTRING
*/
Q_PROPERTY(QString description READ description WRITE setDescription)
/**
* The exported D-Bus property \c Date.
*
* DOCSTRING
*/
Q_PROPERTY(qlonglong date READ date WRITE setDate)
/**
* The exported D-Bus property \c AvailableSocketTypes.
*
* DOCSTRING
*/
Q_PROPERTY(Tp::SupportedSocketMap availableSocketTypes READ availableSocketTypes WRITE setAvailableSocketTypes)
/**
* The exported D-Bus property \c TransferredBytes.
*
* DOCSTRING
*/
Q_PROPERTY(qulonglong transferredBytes READ transferredBytes WRITE setTransferredBytes)
/**
* The exported D-Bus property \c InitialOffset.
*
* DOCSTRING
*/
Q_PROPERTY(qulonglong initialOffset READ initialOffset WRITE setInitialOffset)
/**
* The exported D-Bus property \c URI.
*
* DOCSTRING
*/
Q_PROPERTY(QString uri READ uri WRITE setURI)
/**
* The exported D-Bus property \c FileCollection.
*
* DOCSTRING
*/
Q_PROPERTY(QString fileCollection READ fileCollection WRITE setFileCollection)
protected:
ChannelTypeFileTransferAdaptee();
virtual void createAdaptor() Q_DECL_OVERRIDE;
public:
static ChannelTypeFileTransferAdapteePtr create() {
return ChannelTypeFileTransferAdapteePtr(new ChannelTypeFileTransferAdaptee());
}
virtual ~ChannelTypeFileTransferAdaptee();
virtual QString interfaceName() const Q_DECL_OVERRIDE;
public: // PROPERTIES
/**
* \return The value of the exported D-Bus property \c State.
*/
uint state() const;
/**
* Sets the value of the exported D-Bus property \c State
*/
void setState(const uint &newValue);
/**
* \return The value of the exported D-Bus property \c ContentType.
*/
QString contentType() const;
/**
* Sets the value of the exported D-Bus property \c ContentType
*/
void setContentType(const QString &newValue);
/**
* \return The value of the exported D-Bus property \c Filename.
*/
QString filename() const;
/**
* Sets the value of the exported D-Bus property \c Filename
*/
void setFilename(const QString &newValue);
/**
* \return The value of the exported D-Bus property \c Size.
*/
qulonglong size() const;
/**
* Sets the value of the exported D-Bus property \c Size
*/
void setSize(const qulonglong &newValue);
/**
* \return The value of the exported D-Bus property \c ContentHashType.
*/
uint contentHashType() const;
/**
* Sets the value of the exported D-Bus property \c ContentHashType
*/
void setContentHashType(const uint &newValue);
/**
* \return The value of the exported D-Bus property \c ContentHash.
*/
QString contentHash() const;
/**
* Sets the value of the exported D-Bus property \c ContentHash
*/
void setContentHash(const QString &newValue);
/**
* \return The value of the exported D-Bus property \c Description.
*/
QString description() const;
/**
* Sets the value of the exported D-Bus property \c Description
*/
void setDescription(const QString &newValue);
/**
* \return The value of the exported D-Bus property \c Date.
*/
qlonglong date() const;
/**
* Sets the value of the exported D-Bus property \c Date
*/
void setDate(const qlonglong &newValue);
/**
* \return The value of the exported D-Bus property \c AvailableSocketTypes.
*/
Tp::SupportedSocketMap availableSocketTypes() const;
/**
* Sets the value of the exported D-Bus property \c AvailableSocketTypes
*/
void setAvailableSocketTypes(const Tp::SupportedSocketMap &newValue);
/**
* \return The value of the exported D-Bus property \c TransferredBytes.
*/
qulonglong transferredBytes() const;
/**
* Sets the value of the exported D-Bus property \c TransferredBytes
*/
void setTransferredBytes(const qulonglong &newValue);
/**
* \return The value of the exported D-Bus property \c InitialOffset.
*/
qulonglong initialOffset() const;
/**
* Sets the value of the exported D-Bus property \c InitialOffset
*/
void setInitialOffset(const qulonglong &newValue);
/**
* \return The value of the exported D-Bus property \c URI.
*/
QString uri() const;
/**
* Sets the value of the exported D-Bus property \c URI
*/
void setURI(const QString &newValue);
/**
* Emitted when the exported D-Bus property \c URI was changed by a remote D-Bus call.
*/
Q_SIGNAL void uriChanged();
/**
* \return The value of the exported D-Bus property \c FileCollection.
*/
QString fileCollection() const;
/**
* Sets the value of the exported D-Bus property \c FileCollection
*/
void setFileCollection(const QString &newValue);
public: // METHODS
typedef Tp::MethodInvocationContextPtr< QDBusVariant > AcceptFileContextPtr;
typedef Tp::Callback5<void, uint, uint, QDBusVariant, qulonglong, AcceptFileContextPtr> AcceptFileCallback;
/**
* Begins a call to the exported D-Bus method \c AcceptFile on this object.
*
* This method is meant to be called by the D-Bus adaptor only. By default
* it returns a "not implemented" error. You can implement its logic by
* setting a callback using implementAcceptFile()
*
* Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError
* accordingly) on the received \a context object once the method has finished processing.
*
* DOCSTRING
*/
void acceptFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, qulonglong offset, const AcceptFileContextPtr& context);
void implementAcceptFile(const AcceptFileCallback& cb);
typedef Tp::MethodInvocationContextPtr< QDBusVariant > ProvideFileContextPtr;
typedef Tp::Callback4<void, uint, uint, QDBusVariant, ProvideFileContextPtr> ProvideFileCallback;
/**
* Begins a call to the exported D-Bus method \c ProvideFile on this object.
*
* This method is meant to be called by the D-Bus adaptor only. By default
* it returns a "not implemented" error. You can implement its logic by
* setting a callback using implementProvideFile()
*
* Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError
* accordingly) on the received \a context object once the method has finished processing.
*
* DOCSTRING
*/
void provideFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, const ProvideFileContextPtr& context);
void implementProvideFile(const ProvideFileCallback& cb);
public Q_SLOTS: // SIGNALS
/**
* Emits the exported D-Bus signal \c FileTransferStateChanged on this object.
*
* DOCSTRING
*/
void emitFileTransferStateChanged(uint state, uint reason);
/**
* Emits the exported D-Bus signal \c TransferredBytesChanged on this object.
*
* DOCSTRING
*/
void emitTransferredBytesChanged(qulonglong count);
/**
* Emits the exported D-Bus signal \c InitialOffsetDefined on this object.
*
* DOCSTRING
*/
void emitInitialOffsetDefined(qulonglong initialOffset);
/**
* Emits the exported D-Bus signal \c URIDefined on this object.
*
* DOCSTRING
*/
void emitURIDefined(const QString& URI);
private:
struct Private;
friend struct Private;
Private *mPriv;
};
//////// BEGIN PRIVATE HEADER PART
class TP_QT_NO_EXPORT ChannelTypeFileTransferAdaptor : public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Channel.Type.FileTransfer")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.freedesktop.Telepathy.Channel.Type.FileTransfer\">\n"
" <property access=\"read\" type=\"u\" name=\"State\"/>\n"
" <property access=\"read\" type=\"s\" name=\"ContentType\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Filename\"/>\n"
" <property access=\"read\" type=\"t\" name=\"Size\"/>\n"
" <property access=\"read\" type=\"u\" name=\"ContentHashType\"/>\n"
" <property access=\"read\" type=\"s\" name=\"ContentHash\"/>\n"
" <property access=\"read\" type=\"s\" name=\"Description\"/>\n"
" <property access=\"read\" type=\"x\" name=\"Date\"/>\n"
" <property access=\"read\" type=\"a{uau}\" name=\"AvailableSocketTypes\">\n"
" <annotation value=\"Tp::SupportedSocketMap\" name=\"org.qtproject.QtDBus.QtTypeName\"/>\n"
" </property>\n"
" <property access=\"read\" type=\"t\" name=\"TransferredBytes\"/>\n"
" <property access=\"read\" type=\"t\" name=\"InitialOffset\"/>\n"
" <property access=\"readwrite\" type=\"s\" name=\"URI\"/>\n"
" <property access=\"read\" type=\"s\" name=\"FileCollection\"/>\n"
" <method name=\"AcceptFile\">\n"
" <arg direction=\"in\" type=\"u\" name=\"addressType\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"accessControl\"/>\n"
" <arg direction=\"in\" type=\"v\" name=\"accessControlParam\"/>\n"
" <arg direction=\"in\" type=\"t\" name=\"offset\"/>\n"
" <arg direction=\"out\" type=\"v\" name=\"address\"/>\n"
" </method>\n"
" <method name=\"ProvideFile\">\n"
" <arg direction=\"in\" type=\"u\" name=\"addressType\"/>\n"
" <arg direction=\"in\" type=\"u\" name=\"accessControl\"/>\n"
" <arg direction=\"in\" type=\"v\" name=\"accessControlParam\"/>\n"
" <arg direction=\"out\" type=\"v\" name=\"address\"/>\n"
" </method>\n"
" <signal name=\"FileTransferStateChanged\">\n"
" <arg type=\"u\" name=\"state\"/>\n"
" <arg type=\"u\" name=\"reason\"/>\n"
" </signal>\n"
" <signal name=\"TransferredBytesChanged\">\n"
" <arg type=\"t\" name=\"count\"/>\n"
" </signal>\n"
" <signal name=\"InitialOffsetDefined\">\n"
" <arg type=\"t\" name=\"initialOffset\"/>\n"
" </signal>\n"
" <signal name=\"URIDefined\">\n"
" <arg type=\"s\" name=\"URI\"/>\n"
" </signal>\n"
" </interface>\n"
"")
Q_PROPERTY(uint State READ State )
Q_PROPERTY(QString ContentType READ ContentType )
Q_PROPERTY(QString Filename READ Filename )
Q_PROPERTY(qulonglong Size READ Size )
Q_PROPERTY(uint ContentHashType READ ContentHashType )
Q_PROPERTY(QString ContentHash READ ContentHash )
Q_PROPERTY(QString Description READ Description )
Q_PROPERTY(qlonglong Date READ Date )
Q_PROPERTY(Tp::SupportedSocketMap AvailableSocketTypes READ AvailableSocketTypes )
Q_PROPERTY(qulonglong TransferredBytes READ TransferredBytes )
Q_PROPERTY(qulonglong InitialOffset READ InitialOffset )
Q_PROPERTY(QString URI READ URI WRITE SetURI)
Q_PROPERTY(QString FileCollection READ FileCollection )
public:
ChannelTypeFileTransferAdaptor(const ChannelTypeFileTransferAdapteePtr &adaptee, QObject* dbusObject);
public: // PROPERTIES
uint State() const;
QString ContentType() const;
QString Filename() const;
qulonglong Size() const;
uint ContentHashType() const;
QString ContentHash() const;
QString Description() const;
qlonglong Date() const;
Tp::SupportedSocketMap AvailableSocketTypes() const;
qulonglong TransferredBytes() const;
qulonglong InitialOffset() const;
QString URI() const;
void SetURI(const QString &newValue);
QString FileCollection() const;
public Q_SLOTS: // METHODS
QDBusVariant AcceptFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, qulonglong offset, const QDBusMessage& dbusMessage);
QDBusVariant ProvideFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, const QDBusMessage& dbusMessage);
Q_SIGNALS: // SIGNALS
void FileTransferStateChanged(uint state, uint reason);
void TransferredBytesChanged(qulonglong count);
void InitialOffsetDefined(qulonglong initialOffset);
void URIDefined(const QString& URI);
private:
ChannelTypeFileTransferAdapteePtr mAdaptee;
};
//////// BEGIN GENERATED IMPLEMENTATION PART
struct TP_QT_NO_EXPORT ChannelTypeFileTransferAdaptee::Private
{
QPointer<ChannelTypeFileTransferAdaptor> adaptor;
uint state;
QString contentType;
QString filename;
qulonglong size;
uint contentHashType;
QString contentHash;
QString description;
qlonglong date;
Tp::SupportedSocketMap availableSocketTypes;
qulonglong transferredBytes;
qulonglong initialOffset;
QString uri;
QString fileCollection;
AcceptFileCallback acceptFileCb;
ProvideFileCallback provideFileCb;
};
ChannelTypeFileTransferAdaptee::ChannelTypeFileTransferAdaptee()
: Tp::AbstractDBusInterfaceAdaptee(),
mPriv(new Private)
{
}
ChannelTypeFileTransferAdaptee::~ChannelTypeFileTransferAdaptee()
{
delete mPriv;
}
void ChannelTypeFileTransferAdaptee::createAdaptor()
{
mPriv->adaptor = new ChannelTypeFileTransferAdaptor(ChannelTypeFileTransferAdapteePtr(this), dbusObject());
}
QString ChannelTypeFileTransferAdaptee::interfaceName() const
{
return QStringLiteral("org.freedesktop.Telepathy.Channel.Type.FileTransfer");
}
ChannelTypeFileTransferAdaptor::ChannelTypeFileTransferAdaptor(const ChannelTypeFileTransferAdapteePtr& adaptee, QObject* dbusObject)
: QDBusAbstractAdaptor(dbusObject),
mAdaptee(adaptee)
{
setAutoRelaySignals(false);
}
uint ChannelTypeFileTransferAdaptee::state() const
{
return mPriv->state;
}
uint ChannelTypeFileTransferAdaptor::State() const
{
return mAdaptee->state();
}
void ChannelTypeFileTransferAdaptee::setState(const uint &newValue)
{
mPriv->state = newValue;
}
QString ChannelTypeFileTransferAdaptee::contentType() const
{
return mPriv->contentType;
}
QString ChannelTypeFileTransferAdaptor::ContentType() const
{
return mAdaptee->contentType();
}
void ChannelTypeFileTransferAdaptee::setContentType(const QString &newValue)
{
mPriv->contentType = newValue;
}
QString ChannelTypeFileTransferAdaptee::filename() const
{
return mPriv->filename;
}
QString ChannelTypeFileTransferAdaptor::Filename() const
{
return mAdaptee->filename();
}
void ChannelTypeFileTransferAdaptee::setFilename(const QString &newValue)
{
mPriv->filename = newValue;
}
qulonglong ChannelTypeFileTransferAdaptee::size() const
{
return mPriv->size;
}
qulonglong ChannelTypeFileTransferAdaptor::Size() const
{
return mAdaptee->size();
}
void ChannelTypeFileTransferAdaptee::setSize(const qulonglong &newValue)
{
mPriv->size = newValue;
}
uint ChannelTypeFileTransferAdaptee::contentHashType() const
{
return mPriv->contentHashType;
}
uint ChannelTypeFileTransferAdaptor::ContentHashType() const
{
return mAdaptee->contentHashType();
}
void ChannelTypeFileTransferAdaptee::setContentHashType(const uint &newValue)
{
mPriv->contentHashType = newValue;
}
QString ChannelTypeFileTransferAdaptee::contentHash() const
{
return mPriv->contentHash;
}
QString ChannelTypeFileTransferAdaptor::ContentHash() const
{
return mAdaptee->contentHash();
}
void ChannelTypeFileTransferAdaptee::setContentHash(const QString &newValue)
{
mPriv->contentHash = newValue;
}
QString ChannelTypeFileTransferAdaptee::description() const
{
return mPriv->description;
}
QString ChannelTypeFileTransferAdaptor::Description() const
{
return mAdaptee->description();
}
void ChannelTypeFileTransferAdaptee::setDescription(const QString &newValue)
{
mPriv->description = newValue;
}
qlonglong ChannelTypeFileTransferAdaptee::date() const
{
return mPriv->date;
}
qlonglong ChannelTypeFileTransferAdaptor::Date() const
{
return mAdaptee->date();
}
void ChannelTypeFileTransferAdaptee::setDate(const qlonglong &newValue)
{
mPriv->date = newValue;
}
Tp::SupportedSocketMap ChannelTypeFileTransferAdaptee::availableSocketTypes() const
{
return mPriv->availableSocketTypes;
}
Tp::SupportedSocketMap ChannelTypeFileTransferAdaptor::AvailableSocketTypes() const
{
return mAdaptee->availableSocketTypes();
}
void ChannelTypeFileTransferAdaptee::setAvailableSocketTypes(const Tp::SupportedSocketMap &newValue)
{
mPriv->availableSocketTypes = newValue;
}
qulonglong ChannelTypeFileTransferAdaptee::transferredBytes() const
{
return mPriv->transferredBytes;
}
qulonglong ChannelTypeFileTransferAdaptor::TransferredBytes() const
{
return mAdaptee->transferredBytes();
}
void ChannelTypeFileTransferAdaptee::setTransferredBytes(const qulonglong &newValue)
{
mPriv->transferredBytes = newValue;
}
qulonglong ChannelTypeFileTransferAdaptee::initialOffset() const
{
return mPriv->initialOffset;
}
qulonglong ChannelTypeFileTransferAdaptor::InitialOffset() const
{
return mAdaptee->initialOffset();
}
void ChannelTypeFileTransferAdaptee::setInitialOffset(const qulonglong &newValue)
{
mPriv->initialOffset = newValue;
}
QString ChannelTypeFileTransferAdaptee::uri() const
{
return mPriv->uri;
}
QString ChannelTypeFileTransferAdaptor::URI() const
{
return mAdaptee->uri();
}
void ChannelTypeFileTransferAdaptee::setURI(const QString &newValue)
{
mPriv->uri = newValue;
}
void ChannelTypeFileTransferAdaptor::SetURI(const QString &newValue)
{
mAdaptee->setURI(newValue);
Q_EMIT mAdaptee->uriChanged();
}
QString ChannelTypeFileTransferAdaptee::fileCollection() const
{
return mPriv->fileCollection;
}
QString ChannelTypeFileTransferAdaptor::FileCollection() const
{
return mAdaptee->fileCollection();
}
void ChannelTypeFileTransferAdaptee::setFileCollection(const QString &newValue)
{
mPriv->fileCollection = newValue;
}
void ChannelTypeFileTransferAdaptee::acceptFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, qulonglong offset, const AcceptFileContextPtr& context)
{
if (mPriv->acceptFileCb.isValid()) {
mPriv->acceptFileCb(addressType, accessControl, accessControlParam, offset, context);
} else {
context->setFinishedWithError(TP_QT_ERROR_NOT_IMPLEMENTED,
QStringLiteral("Not implemented"));
}
}
QDBusVariant ChannelTypeFileTransferAdaptor::AcceptFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, qulonglong offset, const QDBusMessage& dbusMessage)
{
ChannelTypeFileTransferAdaptee::AcceptFileContextPtr context =
ChannelTypeFileTransferAdaptee::AcceptFileContextPtr(
new Tp::MethodInvocationContext< QDBusVariant >(
mAdaptee->dbusObject()->dbusConnection(), dbusMessage));
mAdaptee->acceptFile(addressType, accessControl, accessControlParam, offset, context);
return QDBusVariant();
}
void ChannelTypeFileTransferAdaptee::provideFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, const ProvideFileContextPtr& context)
{
if (mPriv->provideFileCb.isValid()) {
mPriv->provideFileCb(addressType, accessControl, accessControlParam, context);
} else {
context->setFinishedWithError(TP_QT_ERROR_NOT_IMPLEMENTED,
QStringLiteral("Not implemented"));
}
}
QDBusVariant ChannelTypeFileTransferAdaptor::ProvideFile(uint addressType, uint accessControl, const QDBusVariant& accessControlParam, const QDBusMessage& dbusMessage)
{
ChannelTypeFileTransferAdaptee::ProvideFileContextPtr context =
ChannelTypeFileTransferAdaptee::ProvideFileContextPtr(
new Tp::MethodInvocationContext< QDBusVariant >(
mAdaptee->dbusObject()->dbusConnection(), dbusMessage));
mAdaptee->provideFile(addressType, accessControl, accessControlParam, context);
return QDBusVariant();
}
void ChannelTypeFileTransferAdaptee::emitFileTransferStateChanged(uint state, uint reason)
{
if (mPriv->adaptor)
Q_EMIT mPriv->adaptor->FileTransferStateChanged(state, reason);
}
void ChannelTypeFileTransferAdaptee::emitTransferredBytesChanged(qulonglong count)
{
if (mPriv->adaptor)
Q_EMIT mPriv->adaptor->TransferredBytesChanged(count);
}
void ChannelTypeFileTransferAdaptee::emitInitialOffsetDefined(qulonglong initialOffset)
{
if (mPriv->adaptor)
Q_EMIT mPriv->adaptor->InitialOffsetDefined(initialOffset);
}
void ChannelTypeFileTransferAdaptee::emitURIDefined(const QString& URI)
{
if (mPriv->adaptor)
Q_EMIT mPriv->adaptor->URIDefined(URI);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment