@@ -43,59 +43,71 @@ Settings::Settings(QObject* obj)
4343Settings Settings::getSettings (const  QString& prefix)
4444{
4545  Settings settings (proxy_.proxiedObject ());
46-   bool  rc = proxy_.invokeMethodWithReturn (" get_settings" Q_RETURN_ARG (Settings, settings), Q_ARG (QString, prefix));
46+   bool  rc = QMetaObject::invokeMethod (proxy_.proxiedObject (), " get_settings" Q_RETURN_ARG (Settings, settings), Q_ARG (QString, prefix));
47+   //  bool rc = proxy_.invokeMethodWithReturn("get_settings", Q_RETURN_ARG(Settings, settings), Q_ARG(QString, prefix));
4748  if  (!rc) throw  std::runtime_error (" Settings::get_settings() invoke method failed" 
4849  return  settings;
4950}
5051
5152QStringList Settings::allKeys () const 
5253{
5354  QStringList list;
54-   bool  rc = const_cast <Settings*>(this )->proxy_ .invokeMethodWithReturn (" all_keys" Q_RETURN_ARG (QStringList, list));
55+   bool  rc;
56+ 
57+   //  bool rc = QMetaObject::invokeMethod(proxy_.proxiedObject(), "all_keys", Qt::DirectConnection, Q_RETURN_ARG(QStringList, list));
58+   //  bool rc = const_cast<Settings*>(this)->proxy_.invokeMethodWithReturn("all_keys", Q_RETURN_ARG(QStringList, list));
5559  if  (!rc) throw  std::runtime_error (" Settings::all_keys() invoke method failed" 
5660  return  list;
5761}
5862
5963QStringList Settings::childGroups () const 
6064{
6165  QStringList list;
62-   bool  rc = const_cast <Settings*>(this )->proxy_ .invokeMethodWithReturn (" child_groups" Q_RETURN_ARG (QStringList, list));
66+   bool  rc;
67+   //  bool rc = const_cast<Settings*>(this)->proxy_.invokeMethodWithReturn("child_groups", Q_RETURN_ARG(QStringList, list));
6368  if  (!rc) throw  std::runtime_error (" Settings::child_groups() invoke method failed" 
6469  return  list;
6570}
6671
6772QStringList Settings::childKeys () const 
6873{
6974  QStringList list;
70-   bool  rc = const_cast <Settings*>(this )->proxy_ .invokeMethodWithReturn (" child_keys" Q_RETURN_ARG (QStringList, list));
75+   bool  rc;
76+   //  bool rc = const_cast<Settings*>(this)->proxy_.invokeMethodWithReturn("child_keys", Q_RETURN_ARG(QStringList, list));
7177  if  (!rc) throw  std::runtime_error (" Settings::child_keys() invoke method failed" 
7278  return  list;
7379}
7480
7581bool  Settings::contains (const  QString& key) const 
7682{
7783  bool  flag = false ;
78-   bool  rc = const_cast <Settings*>(this )->proxy_ .invokeMethodWithReturn (" contains" Q_RETURN_ARG (bool , flag), Q_ARG (QString, key));
84+   bool  rc;
85+   //  bool rc = const_cast<Settings*>(this)->proxy_.invokeMethodWithReturn("contains", Q_RETURN_ARG(bool, flag), Q_ARG(QString, key));
7986  if  (!rc) throw  std::runtime_error (" Settings::contains() invoke method failed" 
8087  return  flag;
8188}
8289
8390void  Settings::remove (const  QString& key)
8491{
85-   bool  rc = proxy_.invokeMethod (" remove" Q_ARG (QString, key));
92+   bool  rc;
93+   //  bool rc = proxy_.invokeMethod("remove", Q_ARG(QString, key));
8694  if  (!rc) throw  std::runtime_error (" Settings::remove() invoke method failed" 
8795}
8896
8997void  Settings::setValue (const  QString& key, const  QVariant& value)
9098{
91-   bool  rc = proxy_.invokeMethod (" set_value" Q_ARG (QString, key), Q_ARG (QVariant, value));
99+   bool  rc;
100+ 
101+   //  bool rc = proxy_.invokeMethod("set_value", Q_ARG(QString, key), Q_ARG(QVariant, value));
92102  if  (!rc) throw  std::runtime_error (" Settings::set_value() invoke method failed" 
93103}
94104
95105QVariant Settings::value (const  QString& key, const  QVariant& defaultValue) const 
96106{
97107  QVariant val;
98-   bool  rc = const_cast <Settings*>(this )->proxy_ .invokeMethodWithReturn (" value" Q_RETURN_ARG (QVariant, val), Q_ARG (QString, key), Q_ARG (QVariant, defaultValue));
108+   bool  rc;
109+   //  bool rc = QMetaObject::invokeMethod(proxy_.proxiedObject(), "value", Qt::DirectConnection, Q_RETURN_ARG(QVariant, val), Q_ARG(QString, key), Q_ARG(QVariant, defaultValue));
110+   //  bool rc = const_cast<Settings*>(this)->proxy_.invokeMethodWithReturn("value", Q_RETURN_ARG(QVariant, val), Q_ARG(QString, key), Q_ARG(QVariant, defaultValue));
99111  if  (!rc) throw  std::runtime_error (" Settings::value() invoke method failed" 
100112  return  val;
101113}
0 commit comments