[podsleuth] Sync DkDisk with Banshee's
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [podsleuth] Sync DkDisk with Banshee's
- Date: Mon, 10 May 2010 19:46:48 +0000 (UTC)
commit 7b45117c2cd1a82923d5469ebd48631b9ec4b51a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon May 10 12:12:55 2010 -0700
Sync DkDisk with Banshee's
src/PodSleuth.Hal/PodSleuth.HalFrontend/DkDisk.cs | 40 +++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/src/PodSleuth.Hal/PodSleuth.HalFrontend/DkDisk.cs b/src/PodSleuth.Hal/PodSleuth.HalFrontend/DkDisk.cs
index 16d05f7..df09f60 100644
--- a/src/PodSleuth.Hal/PodSleuth.HalFrontend/DkDisk.cs
+++ b/src/PodSleuth.Hal/PodSleuth.HalFrontend/DkDisk.cs
@@ -1,3 +1,31 @@
+//
+// DkDisk.cs
+//
+// Author:
+// Gabriel Burt <gburt novell com>
+//
+// Copyright (C) 2009 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
using System;
using NDesk.DBus;
@@ -61,6 +89,16 @@ namespace PodSleuth.HalFrontend
}
}
+ public void Eject ()
+ {
+ disk.DriveEject (new string [0]);
+ }
+
+ public void Unmount ()
+ {
+ disk.FilesystemUnmount (new string [0]);
+ }
+
private static IDkDisks disks;
static DkDisk ()
@@ -84,5 +122,7 @@ namespace PodSleuth.HalFrontend
{
bool DeviceIsMounted { get; }
string [] DeviceMountPaths { get; }
+ void DriveEject (string [] options);
+ void FilesystemUnmount (string [] options);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]