PropertyManager::PropertyManager()
{
  initTypes();

  connect(this, SIGNAL(valueChanged(QtProperty *, const QVariant &)),
              this, SLOT(slotValueChanged(QtProperty *, const QVariant &)));
}
  void initModule_xbmcaddon()
  {
    initTypes();

    // init general xbmcaddon modules
    PyObject* module;


    Py_INCREF(&(TyXBMCAddon_xbmcaddon_Addon_Type.pythonType));

    module = Py_InitModule((char*)"xbmcaddon", xbmcaddon_methods);
    if (module == NULL) return;


    PyModule_AddObject(module, (char*)"Addon", (PyObject*)(&(TyXBMCAddon_xbmcaddon_Addon_Type.pythonType)));

   // constants
   PyModule_AddStringConstant(module, (char*)"__author__", (char*)"Team Kodi <http://kodi.tv>");
   PyModule_AddStringConstant(module, (char*)"__date__", (char*)"Tue Oct 24 17:29:50 GMT 2017");
   PyModule_AddStringConstant(module, (char*)"__version__", (char*)"2.25.0");
   PyModule_AddStringConstant(module, (char*)"__credits__", (char*)"Team Kodi");
   PyModule_AddStringConstant(module, (char*)"__platform__", (char*)"ALL");

   // need to handle constants

  }
Example #3
0
Type *getTypeByName(std::string name) {
	initTypes();

	if (mapOfSimpleTypes->find(name) != mapOfSimpleTypes->end()) {
		return simpleTypes[mapOfSimpleTypes->find(name)->second];
	}

	return NULL;
}
Example #4
0
TypeString::TypeString(void)
{
	initTypes();
}
Example #5
0
File: type.c Project: orez-/520proj
void typeSERVICE(SERVICE* s)
{
    initTypes();
    typeFUNCTION(s->function);
    typeSESSION(s->session);
}
void CfgExternalToolModel::init() {
    initTypes();
    initFormats();
}
Example #7
0
Type *getTypeBySimpleTypeId(int id) {
	initTypes();

	return simpleTypes[id];
}