void GeolocationServiceMock::setError(PassRefPtr<PositionError> error) { initStatics(); GeolocationService::useMock(); *s_lastError = error; *s_lastPosition = 0; makeGeolocationCallbackFromAllInstances(); }
void GeolocationServiceMock::setPosition(PassRefPtr<Geoposition> position) { initStatics(); GeolocationService::useMock(); *s_lastPosition = position; *s_lastError = 0; makeGeolocationCallbackFromAllInstances(); }
QMakeGlobals::QMakeGlobals() { initStatics(); do_cache = true; #ifdef Q_OS_WIN dirlist_sep = QLatin1Char(';'); dir_sep = QLatin1Char('\\'); #else dirlist_sep = QLatin1Char(':'); dir_sep = QLatin1Char('/'); #endif qmakespec = getEnv(QLatin1String("QMAKESPEC")); }
QMakeGlobals::QMakeGlobals() { initStatics(); do_cache = true; #ifdef PROEVALUATOR_DEBUG debugLevel = 0; #endif #ifdef Q_OS_WIN dirlist_sep = QLatin1Char(';'); dir_sep = QLatin1Char('\\'); #else dirlist_sep = QLatin1Char(':'); dir_sep = QLatin1Char('/'); #endif }
//============================================================================== EXPORT bool __cdecl PLG_CALLBACK(GenericPluginLoadState loadState) { static PluginMain* s_pluginMain = nullptr; auto contextManager = s_GetContextFunc(); TF_ASSERT(contextManager); auto staticInitializer = contextManager->queryInterface<IStaticInitalizer>(); if (staticInitializer) { staticInitializer->initStatics(*contextManager); } switch (loadState) { case GenericPluginLoadState::Create: s_pluginMain = createPlugin(*contextManager); return true; case GenericPluginLoadState::PostLoad: return s_pluginMain->PostLoad(*contextManager); case GenericPluginLoadState::Initialise: s_pluginMain->Initialise(*contextManager); return true; case GenericPluginLoadState::Finalise: return s_pluginMain->Finalise(*contextManager); case GenericPluginLoadState::Unload: s_pluginMain->Unload(*contextManager); return true; case GenericPluginLoadState::Destroy: if (staticInitializer) { staticInitializer->destroy(); } delete s_pluginMain; s_pluginMain = nullptr; return true; default: break; } return false; }
GeolocationService* GeolocationServiceMock::create(GeolocationServiceClient* client) { initStatics(); return new GeolocationServiceMock(client); }
PassOwnPtr<GeolocationService> GeolocationServiceMock::create(GeolocationServiceClient* client) { initStatics(); return adoptPtr(new GeolocationServiceMock(client)); }