summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index c71a96fd9..2517b7fb6 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -220,6 +220,9 @@ DCDeviceData::DCDeviceData()
#else
data.libdc_log = false;
#endif
+#if defined(Q_OS_ANDROID)
+ data.androidUsbDeviceDescriptor = nullptr;
+#endif
}
DCDeviceData *DCDeviceData::instance()
@@ -320,6 +323,13 @@ void DCDeviceData::setDevName(const QString &devName)
data.devname = copy_qstring(devName);
}
+#if defined(Q_OS_ANDROID)
+void DCDeviceData::setUsbDevice(void *device)
+{
+ data.androidUsbDeviceDescriptor = device;
+}
+#endif
+
void DCDeviceData::setDevBluetoothName(const QString &name)
{
m_devBluetoothName = name;