1 // Generated by gmmproc 2.64.2 -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <giomm/mount.h>
7 #include <giomm/private/mount_p.h>
8 
9 
10 /* Copyright (C) 2007 The gtkmm Development Team
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #include <glibmm/error.h>
27 #include <glibmm/exceptionhandler.h>
28 #include <giomm/drive.h>
29 #include <giomm/volume.h>
30 #include <gio/gio.h>
31 #include "slot_async.h"
32 
33 namespace Gio
34 {
35 
36 void
unmount(const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,MountUnmountFlags flags)37 Mount::unmount(
38   const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
39 {
40   // Create a copy of the slot.
41   // A pointer to it will be passed through the callback's data parameter
42   // and deleted in the callback.
43   auto slot_copy = new SlotAsyncReady(slot);
44 
45   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags),
46     nullptr, // mount_operation
47     Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
48 }
49 
50 void
unmount(const SlotAsyncReady & slot,MountUnmountFlags flags)51 Mount::unmount(const SlotAsyncReady& slot, MountUnmountFlags flags)
52 {
53   // Create a copy of the slot.
54   // A pointer to it will be passed through the callback's data parameter
55   // and deleted in the callback.
56   auto slot_copy = new SlotAsyncReady(slot);
57 
58   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags),
59     nullptr, // mount_operation
60     nullptr, // cancellable
61     &SignalProxy_async_callback, slot_copy);
62 }
63 
64 void
unmount(MountUnmountFlags flags)65 Mount::unmount(MountUnmountFlags flags)
66 {
67   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags),
68     nullptr, // mount_operation
69     nullptr, // cancellable
70     nullptr, // callback
71     nullptr); // data
72 }
73 
74 void
unmount(const Glib::RefPtr<MountOperation> & mount_operation,const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,MountUnmountFlags flags)75 Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
76   const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
77 {
78   // Create a copy of the slot.
79   // A pointer to it will be passed through the callback's data parameter
80   // and deleted in the callback.
81   auto slot_copy = new SlotAsyncReady(slot);
82 
83   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
84     Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
85 }
86 
87 void
unmount(const Glib::RefPtr<MountOperation> & mount_operation,const SlotAsyncReady & slot,MountUnmountFlags flags)88 Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
89   MountUnmountFlags flags)
90 {
91   // Create a copy of the slot.
92   // A pointer to it will be passed through the callback's data parameter
93   // and deleted in the callback.
94   auto slot_copy = new SlotAsyncReady(slot);
95 
96   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
97     nullptr, // cancellable
98     &SignalProxy_async_callback, slot_copy);
99 }
100 
101 void
unmount(const Glib::RefPtr<MountOperation> & mount_operation,MountUnmountFlags flags)102 Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags)
103 {
104   g_mount_unmount_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
105     nullptr, // cancellable
106     nullptr, // callback
107     nullptr); // data
108 }
109 
110 void
remount(const Glib::RefPtr<MountOperation> & operation,const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,MountMountFlags flags)111 Mount::remount(const Glib::RefPtr<MountOperation>& operation, const SlotAsyncReady& slot,
112   const Glib::RefPtr<Cancellable>& cancellable, MountMountFlags flags)
113 {
114   // Create a copy of the slot.
115   // A pointer to it will be passed through the callback's data parameter
116   // and deleted in the callback.
117   auto slot_copy = new SlotAsyncReady(slot);
118 
119   g_mount_remount(gobj(), static_cast<GMountMountFlags>(flags), Glib::unwrap(operation),
120     Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
121 }
122 
123 void
remount(const Glib::RefPtr<MountOperation> & operation,const SlotAsyncReady & slot,MountMountFlags flags)124 Mount::remount(
125   const Glib::RefPtr<MountOperation>& operation, const SlotAsyncReady& slot, MountMountFlags flags)
126 {
127   // Create a copy of the slot.
128   // A pointer to it will be passed through the callback's data parameter
129   // and deleted in the callback.
130   auto slot_copy = new SlotAsyncReady(slot);
131 
132   g_mount_remount(gobj(), static_cast<GMountMountFlags>(flags), Glib::unwrap(operation), nullptr,
133     &SignalProxy_async_callback, slot_copy);
134 }
135 
136 void
remount(const Glib::RefPtr<MountOperation> & operation,MountMountFlags flags)137 Mount::remount(const Glib::RefPtr<MountOperation>& operation, MountMountFlags flags)
138 {
139   g_mount_remount(gobj(), static_cast<GMountMountFlags>(flags), Glib::unwrap(operation), nullptr,
140     nullptr, nullptr);
141 }
142 
143 void
remount(MountMountFlags flags)144 Mount::remount(MountMountFlags flags)
145 {
146   g_mount_remount(gobj(), static_cast<GMountMountFlags>(flags), nullptr, nullptr, nullptr, nullptr);
147 }
148 
149 void
eject(const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,MountUnmountFlags flags)150 Mount::eject(
151   const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
152 {
153   // Create a copy of the slot.
154   // A pointer to it will be passed through the callback's data parameter
155   // and deleted in the callback.
156   auto slot_copy = new SlotAsyncReady(slot);
157 
158   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags),
159     nullptr, // mount_operation
160     Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
161 }
162 
163 void
eject(const SlotAsyncReady & slot,MountUnmountFlags flags)164 Mount::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
165 {
166   // Create a copy of the slot.
167   // A pointer to it will be passed through the callback's data parameter
168   // and deleted in the callback.
169   auto slot_copy = new SlotAsyncReady(slot);
170 
171   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags),
172     nullptr, // mount_operation
173     nullptr, // cancellable
174     &SignalProxy_async_callback, slot_copy);
175 }
176 
177 void
eject(MountUnmountFlags flags)178 Mount::eject(MountUnmountFlags flags)
179 {
180   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags),
181     nullptr, // mount_operation
182     nullptr, // cancellable
183     nullptr, // callback
184     nullptr); // data
185 }
186 
187 void
eject(const Glib::RefPtr<MountOperation> & mount_operation,const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,MountUnmountFlags flags)188 Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
189   const Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
190 {
191   // Create a copy of the slot.
192   // A pointer to it will be passed through the callback's data parameter
193   // and deleted in the callback.
194   auto slot_copy = new SlotAsyncReady(slot);
195 
196   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
197     Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
198 }
199 
200 void
eject(const Glib::RefPtr<MountOperation> & mount_operation,const SlotAsyncReady & slot,MountUnmountFlags flags)201 Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot,
202   MountUnmountFlags flags)
203 {
204   // Create a copy of the slot.
205   // A pointer to it will be passed through the callback's data parameter
206   // and deleted in the callback.
207   auto slot_copy = new SlotAsyncReady(slot);
208 
209   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
210     nullptr, // cancellable
211     &SignalProxy_async_callback, slot_copy);
212 }
213 
214 void
eject(const Glib::RefPtr<MountOperation> & mount_operation,MountUnmountFlags flags)215 Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags)
216 {
217   g_mount_eject_with_operation(gobj(), GMountUnmountFlags(flags), Glib::unwrap(mount_operation),
218     nullptr, // cancellable
219     nullptr, // callback
220     nullptr); // data
221 }
222 
223 void
guess_content_type(const SlotAsyncReady & slot,const Glib::RefPtr<Cancellable> & cancellable,bool force_rescan)224 Mount::guess_content_type(
225   const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, bool force_rescan)
226 {
227   // Create a copy of the slot.
228   // A pointer to it will be passed through the callback's data parameter
229   // and deleted in the callback.
230   auto slot_copy = new SlotAsyncReady(slot);
231 
232   g_mount_guess_content_type(
233     gobj(), force_rescan, Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
234 }
235 
236 void
guess_content_type(const SlotAsyncReady & slot,bool force_rescan)237 Mount::guess_content_type(const SlotAsyncReady& slot, bool force_rescan)
238 {
239   // Create a copy of the slot.
240   // A pointer to it will be passed through the callback's data parameter
241   // and deleted in the callback.
242   auto slot_copy = new SlotAsyncReady(slot);
243 
244   g_mount_guess_content_type(gobj(), force_rescan, nullptr, &SignalProxy_async_callback, slot_copy);
245 }
246 
247 void
guess_content_type(bool force_rescan)248 Mount::guess_content_type(bool force_rescan)
249 {
250   g_mount_guess_content_type(gobj(), force_rescan, nullptr, nullptr, nullptr);
251 }
252 
253 void
guess_content_type_sync(const Glib::RefPtr<Cancellable> & cancellable,bool force_rescan)254 Mount::guess_content_type_sync(const Glib::RefPtr<Cancellable>& cancellable, bool force_rescan)
255 {
256   GError* gerror = nullptr;
257   g_mount_guess_content_type_sync(gobj(), force_rescan, Glib::unwrap(cancellable), &gerror);
258   if (gerror)
259     ::Glib::Error::throw_exception(gerror);
260 }
261 
262 void
guess_content_type_sync(bool force_rescan)263 Mount::guess_content_type_sync(bool force_rescan)
264 {
265   GError* gerror = nullptr;
266   g_mount_guess_content_type_sync(gobj(), force_rescan, nullptr, &gerror);
267   if (gerror)
268     ::Glib::Error::throw_exception(gerror);
269 }
270 
271 } // namespace Gio
272 
273 namespace
274 {
275 
276 
277 static const Glib::SignalProxyInfo Mount_signal_changed_info =
278 {
279   "changed",
280   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
281   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
282 };
283 
284 
285 static const Glib::SignalProxyInfo Mount_signal_unmounted_info =
286 {
287   "unmounted",
288   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
289   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
290 };
291 
292 
293 static const Glib::SignalProxyInfo Mount_signal_pre_unmount_info =
294 {
295   "pre_unmount",
296   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
297   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
298 };
299 
300 
301 } // anonymous namespace
302 
303 
304 namespace Glib
305 {
306 
wrap(GMount * object,bool take_copy)307 Glib::RefPtr<Gio::Mount> wrap(GMount* object, bool take_copy)
308 {
309   return Glib::RefPtr<Gio::Mount>( dynamic_cast<Gio::Mount*> (Glib::wrap_auto_interface<Gio::Mount> ((GObject*)(object), take_copy)) );
310   //We use dynamic_cast<> in case of multiple inheritance.
311 }
312 
313 } // namespace Glib
314 
315 
316 namespace Gio
317 {
318 
319 
320 /* The *_Class implementation: */
321 
init()322 const Glib::Interface_Class& Mount_Class::init()
323 {
324   if(!gtype_) // create the GType if necessary
325   {
326     // Glib::Interface_Class has to know the interface init function
327     // in order to add interfaces to implementing types.
328     class_init_func_ = &Mount_Class::iface_init_function;
329 
330     // We can not derive from another interface, and it is not necessary anyway.
331     gtype_ = g_mount_get_type();
332   }
333 
334   return *this;
335 }
336 
iface_init_function(void * g_iface,void *)337 void Mount_Class::iface_init_function(void* g_iface, void*)
338 {
339   const auto klass = static_cast<BaseClassType*>(g_iface);
340 
341   //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
342   //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
343   g_assert(klass != nullptr);
344 
345 
346   klass->changed = &changed_callback;
347   klass->unmounted = &unmounted_callback;
348 }
349 
350 
changed_callback(GMount * self)351 void Mount_Class::changed_callback(GMount* self)
352 {
353   const auto obj_base = static_cast<Glib::ObjectBase*>(
354       Glib::ObjectBase::_get_current_wrapper((GObject*)self));
355 
356   // Non-gtkmmproc-generated custom classes implicitly call the default
357   // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
358   // generated classes can use this optimisation, which avoids the unnecessary
359   // parameter conversions if there is no possibility of the virtual function
360   // being overridden:
361   if(obj_base && obj_base->is_derived_())
362   {
363     const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
364     if(obj) // This can be NULL during destruction.
365     {
366       try // Trap C++ exceptions which would normally be lost because this is a C callback.
367       {
368         // Call the virtual member method, which derived classes might override.
369         obj->on_changed();
370         return;
371       }
372       catch(...)
373       {
374         Glib::exception_handlers_invoke();
375       }
376     }
377   }
378 
379   const auto base = static_cast<BaseClassType*>(
380         g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
381 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
382 )    );
383 
384   // Call the original underlying C function:
385   if(base && base->changed)
386     (*base->changed)(self);
387 }
unmounted_callback(GMount * self)388 void Mount_Class::unmounted_callback(GMount* self)
389 {
390   const auto obj_base = static_cast<Glib::ObjectBase*>(
391       Glib::ObjectBase::_get_current_wrapper((GObject*)self));
392 
393   // Non-gtkmmproc-generated custom classes implicitly call the default
394   // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
395   // generated classes can use this optimisation, which avoids the unnecessary
396   // parameter conversions if there is no possibility of the virtual function
397   // being overridden:
398   if(obj_base && obj_base->is_derived_())
399   {
400     const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
401     if(obj) // This can be NULL during destruction.
402     {
403       try // Trap C++ exceptions which would normally be lost because this is a C callback.
404       {
405         // Call the virtual member method, which derived classes might override.
406         obj->on_unmounted();
407         return;
408       }
409       catch(...)
410       {
411         Glib::exception_handlers_invoke();
412       }
413     }
414   }
415 
416   const auto base = static_cast<BaseClassType*>(
417         g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
418 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
419 )    );
420 
421   // Call the original underlying C function:
422   if(base && base->unmounted)
423     (*base->unmounted)(self);
424 }
425 
426 
wrap_new(GObject * object)427 Glib::ObjectBase* Mount_Class::wrap_new(GObject* object)
428 {
429   return new Mount((GMount*)(object));
430 }
431 
432 
433 /* The implementation: */
434 
Mount()435 Mount::Mount()
436 :
437   Glib::Interface(mount_class_.init())
438 {}
439 
Mount(GMount * castitem)440 Mount::Mount(GMount* castitem)
441 :
442   Glib::Interface((GObject*)(castitem))
443 {}
444 
Mount(const Glib::Interface_Class & interface_class)445 Mount::Mount(const Glib::Interface_Class& interface_class)
446 : Glib::Interface(interface_class)
447 {
448 }
449 
Mount(Mount && src)450 Mount::Mount(Mount&& src) noexcept
451 : Glib::Interface(std::move(src))
452 {}
453 
operator =(Mount && src)454 Mount& Mount::operator=(Mount&& src) noexcept
455 {
456   Glib::Interface::operator=(std::move(src));
457   return *this;
458 }
459 
~Mount()460 Mount::~Mount() noexcept
461 {}
462 
463 // static
add_interface(GType gtype_implementer)464 void Mount::add_interface(GType gtype_implementer)
465 {
466   mount_class_.init().add_interface(gtype_implementer);
467 }
468 
469 Mount::CppClassType Mount::mount_class_; // initialize static member
470 
get_type()471 GType Mount::get_type()
472 {
473   return mount_class_.init().get_type();
474 }
475 
476 
get_base_type()477 GType Mount::get_base_type()
478 {
479   return g_mount_get_type();
480 }
481 
482 
get_root()483 Glib::RefPtr<File> Mount::get_root()
484 {
485   Glib::RefPtr<File> retvalue = Glib::wrap(g_mount_get_root(gobj()));
486   if(retvalue)
487     retvalue->reference(); //The function does not do a ref for us.
488   return retvalue;
489 }
490 
get_root() const491 Glib::RefPtr<const File> Mount::get_root() const
492 {
493   return const_cast<Mount*>(this)->get_root();
494 }
495 
get_name() const496 std::string Mount::get_name() const
497 {
498   return Glib::convert_return_gchar_ptr_to_stdstring(g_mount_get_name(const_cast<GMount*>(gobj())));
499 }
500 
get_icon()501 Glib::RefPtr<Icon> Mount::get_icon()
502 {
503   Glib::RefPtr<Icon> retvalue = Glib::wrap(g_mount_get_icon(gobj()));
504   if(retvalue)
505     retvalue->reference(); //The function does not do a ref for us.
506   return retvalue;
507 }
508 
get_icon() const509 Glib::RefPtr<const Icon> Mount::get_icon() const
510 {
511   return const_cast<Mount*>(this)->get_icon();
512 }
513 
get_symbolic_icon()514 Glib::RefPtr<Icon> Mount::get_symbolic_icon()
515 {
516   Glib::RefPtr<Icon> retvalue = Glib::wrap(g_mount_get_symbolic_icon(gobj()));
517   if(retvalue)
518     retvalue->reference(); //The function does not do a ref for us.
519   return retvalue;
520 }
521 
get_symbolic_icon() const522 Glib::RefPtr<const Icon> Mount::get_symbolic_icon() const
523 {
524   return const_cast<Mount*>(this)->get_symbolic_icon();
525 }
526 
get_uuid() const527 std::string Mount::get_uuid() const
528 {
529   return Glib::convert_return_gchar_ptr_to_stdstring(g_mount_get_uuid(const_cast<GMount*>(gobj())));
530 }
531 
get_volume()532 Glib::RefPtr<Volume> Mount::get_volume()
533 {
534   Glib::RefPtr<Volume> retvalue = Glib::wrap(g_mount_get_volume(gobj()));
535   if(retvalue)
536     retvalue->reference(); //The function does not do a ref for us.
537   return retvalue;
538 }
539 
get_volume() const540 Glib::RefPtr<const Volume> Mount::get_volume() const
541 {
542   return const_cast<Mount*>(this)->get_volume();
543 }
544 
get_drive()545 Glib::RefPtr<Drive> Mount::get_drive()
546 {
547   Glib::RefPtr<Drive> retvalue = Glib::wrap(g_mount_get_drive(gobj()));
548   if(retvalue)
549     retvalue->reference(); //The function does not do a ref for us.
550   return retvalue;
551 }
552 
get_drive() const553 Glib::RefPtr<const Drive> Mount::get_drive() const
554 {
555   return const_cast<Mount*>(this)->get_drive();
556 }
557 
can_unmount() const558 bool Mount::can_unmount() const
559 {
560   return g_mount_can_unmount(const_cast<GMount*>(gobj()));
561 }
562 
can_eject() const563 bool Mount::can_eject() const
564 {
565   return g_mount_can_eject(const_cast<GMount*>(gobj()));
566 }
567 
unmount_finish(const Glib::RefPtr<AsyncResult> & result)568 bool Mount::unmount_finish(const Glib::RefPtr<AsyncResult>& result)
569 {
570   GError* gerror = nullptr;
571   bool retvalue = g_mount_unmount_with_operation_finish(gobj(), Glib::unwrap(result), &(gerror));
572   if(gerror)
573     ::Glib::Error::throw_exception(gerror);
574   return retvalue;
575 }
576 
remount_finish(const Glib::RefPtr<AsyncResult> & result)577 bool Mount::remount_finish(const Glib::RefPtr<AsyncResult>& result)
578 {
579   GError* gerror = nullptr;
580   bool retvalue = g_mount_remount_finish(gobj(), Glib::unwrap(result), &(gerror));
581   if(gerror)
582     ::Glib::Error::throw_exception(gerror);
583   return retvalue;
584 }
585 
eject_finish(const Glib::RefPtr<AsyncResult> & result)586 bool Mount::eject_finish(const Glib::RefPtr<AsyncResult>& result)
587 {
588   GError* gerror = nullptr;
589   bool retvalue = g_mount_eject_with_operation_finish(gobj(), Glib::unwrap(result), &(gerror));
590   if(gerror)
591     ::Glib::Error::throw_exception(gerror);
592   return retvalue;
593 }
594 
guess_content_type_finish(const Glib::RefPtr<AsyncResult> & result)595 Glib::StringArrayHandle Mount::guess_content_type_finish(const Glib::RefPtr<AsyncResult>& result)
596 {
597   GError* gerror = nullptr;
598   Glib::StringArrayHandle retvalue = Glib::StringArrayHandle(g_mount_guess_content_type_finish(gobj(), Glib::unwrap(result), &(gerror)), Glib::OWNERSHIP_DEEP);
599   if(gerror)
600     ::Glib::Error::throw_exception(gerror);
601   return retvalue;
602 }
603 
is_shadowed() const604 bool Mount::is_shadowed() const
605 {
606   return g_mount_is_shadowed(const_cast<GMount*>(gobj()));
607 }
608 
shadow()609 void Mount::shadow()
610 {
611   g_mount_shadow(gobj());
612 }
613 
unshadow()614 void Mount::unshadow()
615 {
616   g_mount_unshadow(gobj());
617 }
618 
get_default_location() const619 Glib::RefPtr<File> Mount::get_default_location() const
620 {
621   return Glib::wrap(g_mount_get_default_location(const_cast<GMount*>(gobj())));
622 }
623 
get_sort_key() const624 Glib::ustring Mount::get_sort_key() const
625 {
626   return Glib::convert_const_gchar_ptr_to_ustring(g_mount_get_sort_key(const_cast<GMount*>(gobj())));
627 }
628 
629 
signal_changed()630 Glib::SignalProxy< void > Mount::signal_changed()
631 {
632   return Glib::SignalProxy< void >(this, &Mount_signal_changed_info);
633 }
634 
635 
signal_unmounted()636 Glib::SignalProxy< void > Mount::signal_unmounted()
637 {
638   return Glib::SignalProxy< void >(this, &Mount_signal_unmounted_info);
639 }
640 
641 
signal_pre_unmount()642 Glib::SignalProxy< void > Mount::signal_pre_unmount()
643 {
644   return Glib::SignalProxy< void >(this, &Mount_signal_pre_unmount_info);
645 }
646 
647 
on_changed()648 void Gio::Mount::on_changed()
649 {
650   const auto base = static_cast<BaseClassType*>(
651       g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
652 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
653 )  );
654 
655   if(base && base->changed)
656     (*base->changed)(gobj());
657 }
on_unmounted()658 void Gio::Mount::on_unmounted()
659 {
660   const auto base = static_cast<BaseClassType*>(
661       g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
662 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
663 )  );
664 
665   if(base && base->unmounted)
666     (*base->unmounted)(gobj());
667 }
668 
669 
670 } // namespace Gio
671 
672 
673