1 // -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 /* Copyright (C) 2007 The gtkmm Development Team
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include <giomm/drive.h>
21 #include <giomm/volume.h>
23 #include "slot_async.h"
28 void Mount::unmount(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
30 // Create a copy of the slot.
31 // A pointer to it will be passed through the callback's data parameter
32 // and deleted in the callback.
33 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
35 g_mount_unmount(gobj(),
36 GMountUnmountFlags(flags),
38 &SignalProxy_async_callback,
42 void Mount::unmount(const SlotAsyncReady& slot, MountUnmountFlags flags)
44 // Create a copy of the slot.
45 // A pointer to it will be passed through the callback's data parameter
46 // and deleted in the callback.
47 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
49 g_mount_unmount(gobj(),
50 GMountUnmountFlags(flags),
52 &SignalProxy_async_callback,
56 void Mount::unmount(MountUnmountFlags flags)
58 g_mount_unmount(gobj(),
59 GMountUnmountFlags(flags),
66 void Mount::remount(const Glib::RefPtr<MountOperation>& operation, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountMountFlags flags)
68 // Create a copy of the slot.
69 // A pointer to it will be passed through the callback's data parameter
70 // and deleted in the callback.
71 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
73 g_mount_remount(gobj(),
74 static_cast<GMountMountFlags>(flags),
77 &SignalProxy_async_callback,
81 void Mount::remount(const Glib::RefPtr<MountOperation>& operation, const SlotAsyncReady& slot, MountMountFlags flags)
83 // Create a copy of the slot.
84 // A pointer to it will be passed through the callback's data parameter
85 // and deleted in the callback.
86 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
88 g_mount_remount(gobj(),
89 static_cast<GMountMountFlags>(flags),
92 &SignalProxy_async_callback,
96 void Mount::remount(const Glib::RefPtr<MountOperation>& operation, MountMountFlags flags)
98 g_mount_remount(gobj(),
99 static_cast<GMountMountFlags>(flags),
106 void Mount::remount(MountMountFlags flags)
108 g_mount_remount(gobj(),
109 static_cast<GMountMountFlags>(flags),
116 void Mount::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
118 // Create a copy of the slot.
119 // A pointer to it will be passed through the callback's data parameter
120 // and deleted in the callback.
121 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
123 g_mount_eject(gobj(),
124 GMountUnmountFlags(flags),
126 &SignalProxy_async_callback,
130 void Mount::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
132 // Create a copy of the slot.
133 // A pointer to it will be passed through the callback's data parameter
134 // and deleted in the callback.
135 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
137 g_mount_eject(gobj(),
138 GMountUnmountFlags(flags),
140 &SignalProxy_async_callback,
144 void Mount::eject(MountUnmountFlags flags)
146 g_mount_eject(gobj(),
147 GMountUnmountFlags(flags),
154 void Mount::guess_content_type(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, bool force_rescan)
156 // Create a copy of the slot.
157 // A pointer to it will be passed through the callback's data parameter
158 // and deleted in the callback.
159 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
161 g_mount_guess_content_type(gobj(),
164 &SignalProxy_async_callback,
168 void Mount::guess_content_type(const SlotAsyncReady& slot, bool force_rescan)
170 // Create a copy of the slot.
171 // A pointer to it will be passed through the callback's data parameter
172 // and deleted in the callback.
173 SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
175 g_mount_guess_content_type(gobj(),
178 &SignalProxy_async_callback,
182 void Mount::guess_content_type(bool force_rescan)
184 g_mount_guess_content_type(gobj(),