"Fossies" - the Fresh Open Source Software Archive

Member "glibmm-2.74.0/untracked/gio/giomm/appinfomonitor.cc" (19 Sep 2022, 3742 Bytes) of package /linux/misc/glibmm-2.74.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "appinfomonitor.cc" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes reports: 2.73.2_vs_2.74.0 or 2.72.1_vs_2.74.0.

    1 // Generated by gmmproc 2.74.0 -- DO NOT MODIFY!
    2 
    3 
    4 #include <glibmm.h>
    5 
    6 #include <giomm/appinfomonitor.h>
    7 #include <giomm/private/appinfomonitor_p.h>
    8 
    9 
   10 /* Copyright (C) 2022 The giomm 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 <gio/gio.h>
   27 
   28 namespace Gio
   29 {
   30 
   31 } // namespace Gio
   32 
   33 namespace
   34 {
   35 
   36 
   37 static const Glib::SignalProxyInfo AppInfoMonitor_signal_changed_info =
   38 {
   39   "changed",
   40   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
   41   (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
   42 };
   43 
   44 
   45 } // anonymous namespace
   46 
   47 
   48 namespace Glib
   49 {
   50 
   51 Glib::RefPtr<Gio::AppInfoMonitor> wrap(GAppInfoMonitor* object, bool take_copy)
   52 {
   53   return Glib::make_refptr_for_instance<Gio::AppInfoMonitor>( dynamic_cast<Gio::AppInfoMonitor*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
   54   //We use dynamic_cast<> in case of multiple inheritance.
   55 }
   56 
   57 } /* namespace Glib */
   58 
   59 
   60 namespace Gio
   61 {
   62 
   63 
   64 /* The *_Class implementation: */
   65 
   66 const Glib::Class& AppInfoMonitor_Class::init()
   67 {
   68   if(!gtype_) // create the GType if necessary
   69   {
   70     // Glib::Class has to know the class init function to clone custom types.
   71     class_init_func_ = &AppInfoMonitor_Class::class_init_function;
   72 
   73     // This is actually just optimized away, apparently with no harm.
   74     // Make sure that the parent type has been created.
   75     //CppClassParent::CppObjectType::get_type();
   76 
   77     // Create the wrapper type, with the same class/instance size as the base type.
   78     register_derived_type(g_app_info_monitor_get_type());
   79 
   80     // Add derived versions of interfaces, if the C type implements any interfaces:
   81 
   82   }
   83 
   84   return *this;
   85 }
   86 
   87 
   88 void AppInfoMonitor_Class::class_init_function(void* g_class, void* class_data)
   89 {
   90   const auto klass = static_cast<BaseClassType*>(g_class);
   91   CppClassParent::class_init_function(klass, class_data);
   92 
   93 
   94 }
   95 
   96 
   97 Glib::ObjectBase* AppInfoMonitor_Class::wrap_new(GObject* object)
   98 {
   99   return new AppInfoMonitor((GAppInfoMonitor*)object);
  100 }
  101 
  102 
  103 /* The implementation: */
  104 
  105 GAppInfoMonitor* AppInfoMonitor::gobj_copy()
  106 {
  107   reference();
  108   return gobj();
  109 }
  110 
  111 AppInfoMonitor::AppInfoMonitor(const Glib::ConstructParams& construct_params)
  112 :
  113   Glib::Object(construct_params)
  114 {
  115 
  116 }
  117 
  118 AppInfoMonitor::AppInfoMonitor(GAppInfoMonitor* castitem)
  119 :
  120   Glib::Object((GObject*)(castitem))
  121 {}
  122 
  123 
  124 AppInfoMonitor::AppInfoMonitor(AppInfoMonitor&& src) noexcept
  125 : Glib::Object(std::move(src))
  126 {}
  127 
  128 AppInfoMonitor& AppInfoMonitor::operator=(AppInfoMonitor&& src) noexcept
  129 {
  130   Glib::Object::operator=(std::move(src));
  131   return *this;
  132 }
  133 
  134 
  135 AppInfoMonitor::~AppInfoMonitor() noexcept
  136 {}
  137 
  138 
  139 AppInfoMonitor::CppClassType AppInfoMonitor::appinfomonitor_class_; // initialize static member
  140 
  141 GType AppInfoMonitor::get_type()
  142 {
  143   return appinfomonitor_class_.init().get_type();
  144 }
  145 
  146 
  147 GType AppInfoMonitor::get_base_type()
  148 {
  149   return g_app_info_monitor_get_type();
  150 }
  151 
  152 
  153 Glib::RefPtr<AppInfoMonitor> AppInfoMonitor::get()
  154 {
  155   return Glib::wrap(g_app_info_monitor_get());
  156 }
  157 
  158 
  159 Glib::SignalProxy<void()> AppInfoMonitor::signal_changed()
  160 {
  161   return Glib::SignalProxy<void() >(this, &AppInfoMonitor_signal_changed_info);
  162 }
  163 
  164 
  165 } // namespace Gio
  166 
  167