18 #ifndef COM_UBUNTU_CONTENT_TRANSFER_H_
19 #define COM_UBUNTU_CONTENT_TRANSFER_H_
25 #include <QSharedPointer>
57 Q_PROPERTY(
int id READ
id)
100 Q_INVOKABLE
virtual int id()
const;
104 Q_INVOKABLE
virtual bool start();
105 Q_INVOKABLE
virtual bool abort();
106 Q_INVOKABLE
virtual bool finalize();
107 Q_INVOKABLE
virtual bool charge(
const QVector<Item>& items);
108 Q_INVOKABLE
virtual QVector<Item>
collect();
112 Q_INVOKABLE
virtual QString
downloadId()
const;
114 Q_INVOKABLE
virtual bool download();
116 Q_INVOKABLE
virtual QString
source()
const;
129 QSharedPointer<Private> d;
137 #endif // COM_UBUNTU_CONTENT_TRANSFER_H_
virtual Q_INVOKABLE QString destination() const
virtual Q_INVOKABLE bool setDownloadId(const QString)
Q_SIGNAL void downloadIdChanged()
virtual Q_INVOKABLE bool setSelectionType(const SelectionType &)
Q_SIGNAL void selectionTypeChanged()
virtual Q_INVOKABLE State state() const
virtual Q_INVOKABLE bool charge(const QVector< Item > &items)
Q_SIGNAL void storeChanged()
virtual Q_INVOKABLE bool start()
virtual Q_INVOKABLE QString contentType() const
Transfer(const Transfer &)=delete
virtual Q_INVOKABLE bool abort()
virtual Q_INVOKABLE QString source() const
friend class com::ubuntu::content::detail::Handler
virtual Q_INVOKABLE Direction direction() const
virtual Q_INVOKABLE QVector< Item > collect()
virtual Q_INVOKABLE Store store() const
virtual Q_INVOKABLE SelectionType selectionType() const
Q_SIGNAL void stateChanged()
virtual Q_INVOKABLE bool download()
virtual Q_INVOKABLE QString downloadId() const
virtual Q_INVOKABLE bool setStore(const Store *)
virtual Q_INVOKABLE bool finalize()
virtual Q_INVOKABLE int id() const
Transfer & operator=(const Transfer &)=delete