|
Line 0
Link Here
|
|
|
1 |
--- src/device/IDevice.cpp.orig 2016-06-04 19:56:45 UTC |
| 2 |
+++ src/device/IDevice.cpp |
| 3 |
@@ -22,7 +22,7 @@ |
| 4 |
#include "gis/prj/IGisProject.h" |
| 5 |
#include "helpers/CSelectCopyAction.h" |
| 6 |
|
| 7 |
-#ifdef Q_OS_LINUX |
| 8 |
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) |
| 9 |
#include <QtDBus> |
| 10 |
#endif |
| 11 |
|
| 12 |
@@ -52,7 +52,7 @@ IDevice::~IDevice() |
| 13 |
|
| 14 |
void IDevice::mount(const QString& path) |
| 15 |
{ |
| 16 |
-#ifdef Q_OS_LINUX |
| 17 |
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) |
| 18 |
QDBusMessage message = QDBusMessage::createMethodCall("org.freedesktop.UDisks2",path,"org.freedesktop.UDisks2.Filesystem","Mount"); |
| 19 |
QVariantMap args; |
| 20 |
args.insert("options", "sync"); |
| 21 |
@@ -63,7 +63,7 @@ void IDevice::mount(const QString& path) |
| 22 |
|
| 23 |
void IDevice::umount(const QString &path) |
| 24 |
{ |
| 25 |
-#ifdef Q_OS_LINUX |
| 26 |
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) |
| 27 |
QDBusMessage message = QDBusMessage::createMethodCall("org.freedesktop.UDisks2",path,"org.freedesktop.UDisks2.Filesystem","Unmount"); |
| 28 |
QVariantMap args; |
| 29 |
message << args; |