/src/gsiqt/qt5/QtGui/gsiDeclQDesktopServices.cc

https://github.com/KLayout/klayout · C++ · 142 lines · 78 code · 32 blank · 32 comment · 0 complexity · 5945d99353433ca6cbe42c9cc3b3a00c MD5 · raw file

  1. /*
  2. KLayout Layout Viewer
  3. Copyright (C) 2006-2021 Matthias Koefferlein
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. */
  16. /**
  17. * @file gsiDeclQDesktopServices.cc
  18. *
  19. * DO NOT EDIT THIS FILE.
  20. * This file has been created automatically
  21. */
  22. #include <QDesktopServices>
  23. #include <QObject>
  24. #include <QUrl>
  25. #include "gsiQt.h"
  26. #include "gsiQtGuiCommon.h"
  27. #include "gsiDeclQtGuiTypeTraits.h"
  28. #include <memory>
  29. // -----------------------------------------------------------------------
  30. // class QDesktopServices
  31. // Constructor QDesktopServices::QDesktopServices()
  32. static void _init_ctor_QDesktopServices_0 (qt_gsi::GenericStaticMethod *decl)
  33. {
  34. decl->set_return_new<QDesktopServices> ();
  35. }
  36. static void _call_ctor_QDesktopServices_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
  37. {
  38. __SUPPRESS_UNUSED_WARNING(args);
  39. ret.write<QDesktopServices *> (new QDesktopServices ());
  40. }
  41. // static bool QDesktopServices::openUrl(const QUrl &url)
  42. static void _init_f_openUrl_1701 (qt_gsi::GenericStaticMethod *decl)
  43. {
  44. static gsi::ArgSpecBase argspec_0 ("url");
  45. decl->add_arg<const QUrl & > (argspec_0);
  46. decl->set_return<bool > ();
  47. }
  48. static void _call_f_openUrl_1701 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
  49. {
  50. __SUPPRESS_UNUSED_WARNING(args);
  51. tl::Heap heap;
  52. const QUrl &arg1 = gsi::arg_reader<const QUrl & >() (args, heap);
  53. ret.write<bool > ((bool)QDesktopServices::openUrl (arg1));
  54. }
  55. // static void QDesktopServices::setUrlHandler(const QString &scheme, QObject *receiver, const char *method)
  56. static void _init_f_setUrlHandler_4842 (qt_gsi::GenericStaticMethod *decl)
  57. {
  58. static gsi::ArgSpecBase argspec_0 ("scheme");
  59. decl->add_arg<const QString & > (argspec_0);
  60. static gsi::ArgSpecBase argspec_1 ("receiver");
  61. decl->add_arg<QObject * > (argspec_1);
  62. static gsi::ArgSpecBase argspec_2 ("method");
  63. decl->add_arg<const char * > (argspec_2);
  64. decl->set_return<void > ();
  65. }
  66. static void _call_f_setUrlHandler_4842 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
  67. {
  68. __SUPPRESS_UNUSED_WARNING(args);
  69. tl::Heap heap;
  70. const QString &arg1 = gsi::arg_reader<const QString & >() (args, heap);
  71. QObject *arg2 = gsi::arg_reader<QObject * >() (args, heap);
  72. const char *arg3 = gsi::arg_reader<const char * >() (args, heap);
  73. __SUPPRESS_UNUSED_WARNING(ret);
  74. QDesktopServices::setUrlHandler (arg1, arg2, arg3);
  75. }
  76. // static void QDesktopServices::unsetUrlHandler(const QString &scheme)
  77. static void _init_f_unsetUrlHandler_2025 (qt_gsi::GenericStaticMethod *decl)
  78. {
  79. static gsi::ArgSpecBase argspec_0 ("scheme");
  80. decl->add_arg<const QString & > (argspec_0);
  81. decl->set_return<void > ();
  82. }
  83. static void _call_f_unsetUrlHandler_2025 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret)
  84. {
  85. __SUPPRESS_UNUSED_WARNING(args);
  86. tl::Heap heap;
  87. const QString &arg1 = gsi::arg_reader<const QString & >() (args, heap);
  88. __SUPPRESS_UNUSED_WARNING(ret);
  89. QDesktopServices::unsetUrlHandler (arg1);
  90. }
  91. namespace gsi
  92. {
  93. static gsi::Methods methods_QDesktopServices () {
  94. gsi::Methods methods;
  95. methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QDesktopServices::QDesktopServices()\nThis method creates an object of class QDesktopServices.", &_init_ctor_QDesktopServices_0, &_call_ctor_QDesktopServices_0);
  96. methods += new qt_gsi::GenericStaticMethod ("openUrl", "@brief Static method bool QDesktopServices::openUrl(const QUrl &url)\nThis method is static and can be called without an instance.", &_init_f_openUrl_1701, &_call_f_openUrl_1701);
  97. methods += new qt_gsi::GenericStaticMethod ("setUrlHandler", "@brief Static method void QDesktopServices::setUrlHandler(const QString &scheme, QObject *receiver, const char *method)\nThis method is static and can be called without an instance.", &_init_f_setUrlHandler_4842, &_call_f_setUrlHandler_4842);
  98. methods += new qt_gsi::GenericStaticMethod ("unsetUrlHandler", "@brief Static method void QDesktopServices::unsetUrlHandler(const QString &scheme)\nThis method is static and can be called without an instance.", &_init_f_unsetUrlHandler_2025, &_call_f_unsetUrlHandler_2025);
  99. return methods;
  100. }
  101. gsi::Class<QDesktopServices> decl_QDesktopServices ("QtGui", "QDesktopServices",
  102. methods_QDesktopServices (),
  103. "@qt\n@brief Binding of QDesktopServices");
  104. GSI_QTGUI_PUBLIC gsi::Class<QDesktopServices> &qtdecl_QDesktopServices () { return decl_QDesktopServices; }
  105. }