summaryrefslogtreecommitdiff
path: root/gio/src/drive.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'gio/src/drive.ccg')
-rw-r--r--gio/src/drive.ccg157
1 files changed, 64 insertions, 93 deletions
diff --git a/gio/src/drive.ccg b/gio/src/drive.ccg
index 0adb0dcc..c75dd14d 100644
--- a/gio/src/drive.ccg
+++ b/gio/src/drive.ccg
@@ -26,100 +26,96 @@
namespace Gio
{
-void Drive::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
+void
+Drive::eject(
+ const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- nullptr, // mount_operation
- Glib::unwrap(cancellable),
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ nullptr, // mount_operation
+ Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
}
-void Drive::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
+void
+Drive::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- nullptr, // mount_operation
- nullptr, // cancellable
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ &SignalProxy_async_callback, slot_copy);
}
-void Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
+void
+Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
+ const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- Glib::unwrap(mount_operation),
- Glib::unwrap(cancellable),
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ Glib::unwrap(mount_operation), Glib::unwrap(cancellable), &SignalProxy_async_callback,
+ slot_copy);
}
-void Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, MountUnmountFlags flags)
+void
+Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
+ MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- Glib::unwrap(mount_operation),
- nullptr, // cancellable
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ Glib::unwrap(mount_operation),
+ nullptr, // cancellable
+ &SignalProxy_async_callback, slot_copy);
}
-void Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags)
+void
+Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags)
{
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- Glib::unwrap(mount_operation),
- nullptr, // cancellable
- nullptr, // callback
- nullptr); // user_data
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ Glib::unwrap(mount_operation),
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // user_data
}
-void Drive::eject(MountUnmountFlags flags)
+void
+Drive::eject(MountUnmountFlags flags)
{
- g_drive_eject_with_operation(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- nullptr, // mount_operation
- nullptr, // cancellable
- nullptr, // callback
- nullptr); // user_data
+ g_drive_eject_with_operation(gobj(), static_cast<GMountUnmountFlags>(flags),
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // user_data
}
-void Drive::poll_for_media(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable)
+void
+Drive::poll_for_media(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_poll_for_media(gobj(),
- Glib::unwrap(cancellable),
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_poll_for_media(gobj(), Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
}
-void Drive::poll_for_media(const SlotAsyncReady& slot)
+void
+Drive::poll_for_media(const SlotAsyncReady& slot)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
@@ -127,93 +123,68 @@ void Drive::poll_for_media(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_drive_poll_for_media(gobj(),
- nullptr, // cancellable
- &SignalProxy_async_callback,
- slot_copy);
+ nullptr, // cancellable
+ &SignalProxy_async_callback, slot_copy);
}
-void Drive::poll_for_media()
+void
+Drive::poll_for_media()
{
g_drive_poll_for_media(gobj(),
- nullptr, // cancellable
- nullptr,
- nullptr);
+ nullptr, // cancellable
+ nullptr, nullptr);
}
void
Drive::stop(const Glib::RefPtr<MountOperation>& mount_operation,
- const Glib::RefPtr<Cancellable>& cancellable,
- const SlotAsyncReady& slot,
- MountUnmountFlags flags)
+ const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_stop(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- Glib::unwrap(mount_operation),
- Glib::unwrap(cancellable),
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_stop(gobj(), static_cast<GMountUnmountFlags>(flags), Glib::unwrap(mount_operation),
+ Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
}
void
-Drive::stop(const Glib::RefPtr<MountOperation>& mount_operation,
- const SlotAsyncReady& slot,
- MountUnmountFlags flags)
+Drive::stop(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
+ MountUnmountFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_stop(gobj(),
- static_cast<GMountUnmountFlags>(flags),
- Glib::unwrap(mount_operation),
- nullptr,
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_stop(gobj(), static_cast<GMountUnmountFlags>(flags), Glib::unwrap(mount_operation),
+ nullptr, &SignalProxy_async_callback, slot_copy);
}
-
void
Drive::start(const Glib::RefPtr<MountOperation>& mount_operation,
- const Glib::RefPtr<Cancellable>& cancellable,
- const SlotAsyncReady& slot,
- DriveStartFlags flags)
+ const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot, DriveStartFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_start(gobj(),
- static_cast<GDriveStartFlags>(flags),
- Glib::unwrap(mount_operation),
- Glib::unwrap(cancellable),
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_start(gobj(), static_cast<GDriveStartFlags>(flags), Glib::unwrap(mount_operation),
+ Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
}
void
-Drive::start(const Glib::RefPtr<MountOperation>& mount_operation,
- const SlotAsyncReady& slot,
- DriveStartFlags flags)
+Drive::start(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
+ DriveStartFlags flags)
{
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_drive_start(gobj(),
- static_cast<GDriveStartFlags>(flags),
- Glib::unwrap(mount_operation),
- nullptr,
- &SignalProxy_async_callback,
- slot_copy);
+ g_drive_start(gobj(), static_cast<GDriveStartFlags>(flags), Glib::unwrap(mount_operation),
+ nullptr, &SignalProxy_async_callback, slot_copy);
}
} // namespace Gio
-