18 #ifndef COM_UBUNTU_CONTENT_TRANSFER_H_ 19 #define COM_UBUNTU_CONTENT_TRANSFER_H_ 25 #include <QSharedPointer> 57 Q_PROPERTY(
int id READ
id)
58 Q_PROPERTY(
State state READ state NOTIFY stateChanged)
59 Q_PROPERTY(QVector<
Item> items READ collect WRITE charge)
60 Q_PROPERTY(
Store store READ store NOTIFY storeChanged)
61 Q_PROPERTY(
SelectionType selectionType READ selectionType WRITE setSelectionType NOTIFY selectionTypeChanged)
63 Q_PROPERTY(QString downloadId READ downloadId WRITE setDownloadId NOTIFY downloadIdChanged)
64 Q_PROPERTY(QString contentType READ contentType)
65 Q_PROPERTY(QString source READ source)
66 Q_PROPERTY(QString destination READ destination)
100 Q_INVOKABLE
virtual int id()
const;
101 Q_INVOKABLE
virtual State state()
const;
103 Q_INVOKABLE
virtual Direction direction()
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();
109 Q_INVOKABLE
virtual Store store()
const;
110 Q_INVOKABLE
virtual bool setStore(
const Store*);
111 Q_INVOKABLE
virtual bool setSelectionType(
const SelectionType&);
112 Q_INVOKABLE
virtual QString downloadId()
const;
113 Q_INVOKABLE
virtual bool setDownloadId(
const QString);
114 Q_INVOKABLE
virtual bool download();
115 Q_INVOKABLE
virtual QString contentType()
const;
116 Q_INVOKABLE
virtual QString source()
const;
117 Q_INVOKABLE
virtual QString destination()
const;
119 Q_SIGNAL
void stateChanged();
120 Q_SIGNAL
void storeChanged();
121 Q_SIGNAL
void selectionTypeChanged();
122 Q_SIGNAL
void downloadIdChanged();
126 friend struct Private;
128 friend class com::ubuntu::content::detail::Handler;
129 QSharedPointer<Private> d;
137 #endif // COM_UBUNTU_CONTENT_TRANSFER_H_