48
/** @addtogroup giommEnums Enums and Flags */
61
#ifndef DOXYGEN_SHOULD_SKIP_THIS
66
class Value<Gio::DriveStartFlags> : public Glib::Value_Enum<Gio::DriveStartFlags>
69
static GType value_type() G_GNUC_CONST;
73
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
48
80
/** Virtual File System drive management.
50
82
* This represent a piece of hardware connected to the machine. It's generally only created for removable hardware or hardware with removable media.
194
226
* @param flags Flags affecting the unmount if required for eject.
196
228
void eject(const SlotAsyncReady& slot, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
229
void eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
230
void eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
199
232
/** Ejects the drive.
200
233
* @param slot A callback which will be called when the eject is completed.
201
234
* @param flags Flags affecting the unmount if required for eject.
203
236
void eject(MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
237
void eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
240
// eject_finish() is deprecated in favor of eject_with_operation_finish(), and
241
// since all of our eject() overloads are implemented by
242
// eject_with_operation(), we implement the _finish() with
243
// eject_with_operation_finish and ignore the deprecated one
206
/** Finishes ejecting a drive.
207
* @param result A AsyncResult.
208
* @return <tt>true</tt> if the drive has been ejected successfully,
209
* <tt>false</tt> otherwise.
211
245
#ifdef GLIBMM_EXCEPTIONS_ENABLED
212
246
bool eject_finish(const Glib::RefPtr<AsyncResult>& result);
214
248
bool eject_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
215
249
#endif //GLIBMM_EXCEPTIONS_ENABLED
218
252
/** Polls drive to see if media has been inserted or removed.
219
253
* @param slot A callback which will be called when the poll is completed.
220
254
* @param cancellable A cancellable object which can be used to cancel the operation.
260
294
Glib::StringArrayHandle enumerate_identifiers() const;
297
void start(const Glib::RefPtr<MountOperation>& mount_operation, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, DriveStartFlags flags = DRIVE_START_NONE);
299
void start(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, DriveStartFlags flags = DRIVE_START_NONE);
302
#ifdef GLIBMM_EXCEPTIONS_ENABLED
303
bool start_finish(const Glib::RefPtr<AsyncResult>& result);
305
bool start_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
306
#endif //GLIBMM_EXCEPTIONS_ENABLED
310
bool can_start() const;
313
bool can_start_degraded() const;
316
void stop(const Glib::RefPtr<MountOperation>& mount_operation, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
318
void stop(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, MountUnmountFlags flags = MOUNT_UNMOUNT_NONE);
321
#ifdef GLIBMM_EXCEPTIONS_ENABLED
322
bool stop_finish(const Glib::RefPtr<AsyncResult>& result);
324
bool stop_finish(const Glib::RefPtr<AsyncResult>& result, std::auto_ptr<Glib::Error>& error);
325
#endif //GLIBMM_EXCEPTIONS_ENABLED
329
bool can_stop() const;
287
355
Glib::SignalProxy0< void > signal_eject_button();
360
* <tt>void on_my_%stop_button()</tt>
363
Glib::SignalProxy0< void > signal_stop_button();
290
366
//_WRAP_VFUNC(Glib::ustring get_name() const, get_name)
291
367
//Careful of ref-counting: //_WRAP_VFUNC(Glib::RefPtr<Icon> get_icon() const, get_icon)
292
368
//_WRAP_VFUNC(bool has_volumes() const, has_volumes)