Changeset View
Changeset View
Standalone View
Standalone View
src/obextransfer.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | |||||
110 | { | 110 | { | ||
111 | if (!m_bluezTransfer->path().startsWith(session->objectPath().path())) { | 111 | if (!m_bluezTransfer->path().startsWith(session->objectPath().path())) { | ||
112 | return; | 112 | return; | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | // Change status to Error if org.bluez.obex crashes | 115 | // Change status to Error if org.bluez.obex crashes | ||
116 | if (m_status != ObexTransfer::Complete && m_status != ObexTransfer::Error) { | 116 | if (m_status != ObexTransfer::Complete && m_status != ObexTransfer::Error) { | ||
117 | m_status = ObexTransfer::Error; | 117 | m_status = ObexTransfer::Error; | ||
118 | Q_EMIT q.data()->statusChanged(m_status); | 118 | Q_EMIT q.lock()->statusChanged(m_status); | ||
119 | } | 119 | } | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | ObexTransfer::ObexTransfer(const QString &path, const QVariantMap &properties) | 122 | ObexTransfer::ObexTransfer(const QString &path, const QVariantMap &properties) | ||
123 | : QObject() | 123 | : QObject() | ||
124 | , d(new ObexTransferPrivate(path, properties)) | 124 | , d(new ObexTransferPrivate(path, properties)) | ||
125 | { | 125 | { | ||
126 | } | 126 | } | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |