vmx-manager r82 - trunk/hal-sharp
- From: jwillcox svn gnome org
- To: svn-commits-list gnome org
- Subject: vmx-manager r82 - trunk/hal-sharp
- Date: Sat, 17 May 2008 16:23:36 +0000 (UTC)
Author: jwillcox
Date: Sat May 17 16:23:36 2008
New Revision: 82
URL: http://svn.gnome.org/viewvc/vmx-manager?rev=82&view=rev
Log:
oops, forgot to commit this
Added:
trunk/hal-sharp/Volume.cs
Added: trunk/hal-sharp/Volume.cs
==============================================================================
--- (empty file)
+++ trunk/hal-sharp/Volume.cs Sat May 17 16:23:36 2008
@@ -0,0 +1,53 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+using NDesk.DBus;
+
+namespace Hal
+{
+ [Interface("org.freedesktop.Hal.Device.Volume")]
+ internal interface IVolume
+ {
+ void Mount(string [] args);
+ void Unmount(string [] args);
+ void Eject(string [] args);
+ }
+
+ public class Volume : Device
+ {
+ public Volume(string udi) : base(udi)
+ {
+ }
+
+ public void Mount()
+ {
+ Mount(new string [] { String.Empty });
+ }
+
+ public void Mount(params string [] args)
+ {
+ CastDevice<IVolume>().Mount(args);
+ }
+
+ public void Unmount()
+ {
+ Unmount(new string [] { String.Empty });
+ }
+
+ public void Unmount(params string [] args)
+ {
+ CastDevice<IVolume>().Unmount(args);
+ }
+
+ public void Eject()
+ {
+ Eject(new string [] { String.Empty });
+ }
+
+ public void Eject(params string [] args)
+ {
+ CastDevice<IVolume>().Eject(args);
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]