1*2a97ec55SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2a97ec55SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2a97ec55SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2a97ec55SAndrew Rist * distributed with this work for additional information 6*2a97ec55SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2a97ec55SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2a97ec55SAndrew Rist * "License"); you may not use this file except in compliance 9*2a97ec55SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*2a97ec55SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*2a97ec55SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2a97ec55SAndrew Rist * software distributed under the License is distributed on an 15*2a97ec55SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2a97ec55SAndrew Rist * KIND, either express or implied. See the License for the 17*2a97ec55SAndrew Rist * specific language governing permissions and limitations 18*2a97ec55SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*2a97ec55SAndrew Rist *************************************************************/ 21*2a97ec55SAndrew Rist 22*2a97ec55SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_extensions.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <memory> 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include "updatecheck.hxx" 30cdf0e10cSrcweir #include "updatecheckconfig.hxx" 31cdf0e10cSrcweir #include "updatehdl.hxx" 32cdf0e10cSrcweir #include "updateprotocol.hxx" 33cdf0e10cSrcweir 34cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> 35cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx> 36cdf0e10cSrcweir 37cdf0e10cSrcweir #include "com/sun/star/frame/XDesktop.hpp" 38cdf0e10cSrcweir #include "com/sun/star/frame/XTerminateListener.hpp" 39cdf0e10cSrcweir #include <com/sun/star/task/XJob.hpp> 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace beans = com::sun::star::beans ; 42cdf0e10cSrcweir namespace frame = com::sun::star::frame ; 43cdf0e10cSrcweir namespace lang = com::sun::star::lang ; 44cdf0e10cSrcweir namespace task = com::sun::star::task ; 45cdf0e10cSrcweir namespace uno = com::sun::star::uno ; 46cdf0e10cSrcweir 47cdf0e10cSrcweir #define UNISTRING(s) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s)) 48cdf0e10cSrcweir 49cdf0e10cSrcweir namespace 50cdf0e10cSrcweir { 51cdf0e10cSrcweir 52cdf0e10cSrcweir class InitUpdateCheckJobThread : public osl::Thread 53cdf0e10cSrcweir { 54cdf0e10cSrcweir public: 55cdf0e10cSrcweir InitUpdateCheckJobThread( const uno::Reference< uno::XComponentContext > &xContext, 56cdf0e10cSrcweir const uno::Sequence< beans::NamedValue > &xParameters, 57cdf0e10cSrcweir bool bShowDialog ); 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual void SAL_CALL run(); 60cdf0e10cSrcweir 61cdf0e10cSrcweir void setTerminating(); 62cdf0e10cSrcweir 63cdf0e10cSrcweir private: 64cdf0e10cSrcweir osl::Condition m_aCondition; 65cdf0e10cSrcweir uno::Reference<uno::XComponentContext> m_xContext; 66cdf0e10cSrcweir uno::Sequence<beans::NamedValue> m_xParameters; 67cdf0e10cSrcweir bool m_bShowDialog; 68cdf0e10cSrcweir bool m_bTerminating; 69cdf0e10cSrcweir }; 70cdf0e10cSrcweir 71cdf0e10cSrcweir class UpdateCheckJob : 72cdf0e10cSrcweir public ::cppu::WeakImplHelper3< task::XJob, lang::XServiceInfo, frame::XTerminateListener > 73cdf0e10cSrcweir { 74cdf0e10cSrcweir virtual ~UpdateCheckJob(); 75cdf0e10cSrcweir 76cdf0e10cSrcweir public: 77cdf0e10cSrcweir 78cdf0e10cSrcweir UpdateCheckJob(const uno::Reference<uno::XComponentContext>& xContext); 79cdf0e10cSrcweir 80cdf0e10cSrcweir static uno::Sequence< rtl::OUString > getServiceNames(); 81cdf0e10cSrcweir static rtl::OUString getImplName(); 82cdf0e10cSrcweir 83cdf0e10cSrcweir // Allows runtime exceptions to be thrown by const methods 84cdf0e10cSrcweir inline SAL_CALL operator uno::Reference< uno::XInterface > () const 85cdf0e10cSrcweir { return const_cast< cppu::OWeakObject * > (static_cast< cppu::OWeakObject const * > (this)); }; 86cdf0e10cSrcweir 87cdf0e10cSrcweir // XJob 88cdf0e10cSrcweir virtual uno::Any SAL_CALL execute(const uno::Sequence<beans::NamedValue>&) 89cdf0e10cSrcweir throw (lang::IllegalArgumentException, uno::Exception); 90cdf0e10cSrcweir 91cdf0e10cSrcweir // XServiceInfo 92cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName() 93cdf0e10cSrcweir throw (uno::RuntimeException); 94cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService(rtl::OUString const & serviceName) 95cdf0e10cSrcweir throw (uno::RuntimeException); 96cdf0e10cSrcweir virtual uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() 97cdf0e10cSrcweir throw (uno::RuntimeException); 98cdf0e10cSrcweir 99cdf0e10cSrcweir // XEventListener 100cdf0e10cSrcweir virtual void SAL_CALL disposing( ::com::sun::star::lang::EventObject const & evt ) 101cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 102cdf0e10cSrcweir 103cdf0e10cSrcweir // XTerminateListener 104cdf0e10cSrcweir virtual void SAL_CALL queryTermination( lang::EventObject const & evt ) 105cdf0e10cSrcweir throw ( frame::TerminationVetoException, uno::RuntimeException ); 106cdf0e10cSrcweir virtual void SAL_CALL notifyTermination( lang::EventObject const & evt ) 107cdf0e10cSrcweir throw ( uno::RuntimeException ); 108cdf0e10cSrcweir 109cdf0e10cSrcweir private: 110cdf0e10cSrcweir uno::Reference<uno::XComponentContext> m_xContext; 111cdf0e10cSrcweir uno::Reference< frame::XDesktop > m_xDesktop; 112cdf0e10cSrcweir std::auto_ptr< InitUpdateCheckJobThread > m_pInitThread; 113cdf0e10cSrcweir 114cdf0e10cSrcweir void handleExtensionUpdates( const uno::Sequence< beans::NamedValue > &rListProp ); 115cdf0e10cSrcweir }; 116cdf0e10cSrcweir 117cdf0e10cSrcweir //------------------------------------------------------------------------------ 118cdf0e10cSrcweir //------------------------------------------------------------------------------ 119cdf0e10cSrcweir //------------------------------------------------------------------------------ 120cdf0e10cSrcweir InitUpdateCheckJobThread::InitUpdateCheckJobThread( 121cdf0e10cSrcweir const uno::Reference< uno::XComponentContext > &xContext, 122cdf0e10cSrcweir const uno::Sequence< beans::NamedValue > &xParameters, 123cdf0e10cSrcweir bool bShowDialog ) : 124cdf0e10cSrcweir m_xContext( xContext ), 125cdf0e10cSrcweir m_xParameters( xParameters ), 126cdf0e10cSrcweir m_bShowDialog( bShowDialog ), 127cdf0e10cSrcweir m_bTerminating( false ) 128cdf0e10cSrcweir { 129cdf0e10cSrcweir create(); 130cdf0e10cSrcweir } 131cdf0e10cSrcweir 132cdf0e10cSrcweir //------------------------------------------------------------------------------ 133cdf0e10cSrcweir void SAL_CALL InitUpdateCheckJobThread::run() 134cdf0e10cSrcweir { 135cdf0e10cSrcweir if (!m_bShowDialog) { 136cdf0e10cSrcweir TimeValue tv = { 25, 0 }; 137cdf0e10cSrcweir m_aCondition.wait( &tv ); 138cdf0e10cSrcweir if ( m_bTerminating ) 139cdf0e10cSrcweir return; 140cdf0e10cSrcweir } 141cdf0e10cSrcweir 142cdf0e10cSrcweir rtl::Reference< UpdateCheck > aController( UpdateCheck::get() ); 143cdf0e10cSrcweir aController->initialize( m_xParameters, m_xContext ); 144cdf0e10cSrcweir 145cdf0e10cSrcweir if ( m_bShowDialog ) 146cdf0e10cSrcweir aController->showDialog( true ); 147cdf0e10cSrcweir } 148cdf0e10cSrcweir 149cdf0e10cSrcweir void InitUpdateCheckJobThread::setTerminating() { 150cdf0e10cSrcweir m_bTerminating = true; 151cdf0e10cSrcweir m_aCondition.set(); 152cdf0e10cSrcweir } 153cdf0e10cSrcweir 154cdf0e10cSrcweir //------------------------------------------------------------------------------ 155cdf0e10cSrcweir //------------------------------------------------------------------------------ 156cdf0e10cSrcweir //------------------------------------------------------------------------------ 157cdf0e10cSrcweir 158cdf0e10cSrcweir UpdateCheckJob::UpdateCheckJob( const uno::Reference<uno::XComponentContext>& xContext ) : 159cdf0e10cSrcweir m_xContext(xContext) 160cdf0e10cSrcweir { 161cdf0e10cSrcweir m_xDesktop.set( xContext->getServiceManager()->createInstanceWithContext( UNISTRING("com.sun.star.frame.Desktop"), xContext ), uno::UNO_QUERY ); 162cdf0e10cSrcweir if ( m_xDesktop.is() ) 163cdf0e10cSrcweir m_xDesktop->addTerminateListener( this ); 164cdf0e10cSrcweir } 165cdf0e10cSrcweir 166cdf0e10cSrcweir //------------------------------------------------------------------------------ 167cdf0e10cSrcweir 168cdf0e10cSrcweir UpdateCheckJob::~UpdateCheckJob() 169cdf0e10cSrcweir { 170cdf0e10cSrcweir } 171cdf0e10cSrcweir 172cdf0e10cSrcweir //------------------------------------------------------------------------------ 173cdf0e10cSrcweir 174cdf0e10cSrcweir uno::Sequence< rtl::OUString > 175cdf0e10cSrcweir UpdateCheckJob::getServiceNames() 176cdf0e10cSrcweir { 177cdf0e10cSrcweir uno::Sequence< rtl::OUString > aServiceList(1); 178cdf0e10cSrcweir aServiceList[0] = UNISTRING( "com.sun.star.setup.UpdateCheck"); 179cdf0e10cSrcweir return aServiceList; 180cdf0e10cSrcweir }; 181cdf0e10cSrcweir 182cdf0e10cSrcweir //------------------------------------------------------------------------------ 183cdf0e10cSrcweir 184cdf0e10cSrcweir rtl::OUString 185cdf0e10cSrcweir UpdateCheckJob::getImplName() 186cdf0e10cSrcweir { 187cdf0e10cSrcweir return UNISTRING( "vnd.sun.UpdateCheck"); 188cdf0e10cSrcweir } 189cdf0e10cSrcweir 190cdf0e10cSrcweir 191cdf0e10cSrcweir //------------------------------------------------------------------------------ 192cdf0e10cSrcweir 193cdf0e10cSrcweir uno::Any 194cdf0e10cSrcweir UpdateCheckJob::execute(const uno::Sequence<beans::NamedValue>& namedValues) 195cdf0e10cSrcweir throw (lang::IllegalArgumentException, uno::Exception) 196cdf0e10cSrcweir { 197cdf0e10cSrcweir for ( sal_Int32 n=namedValues.getLength(); n-- > 0; ) 198cdf0e10cSrcweir { 199cdf0e10cSrcweir if ( namedValues[ n ].Name.equalsAscii( "DynamicData" ) ) 200cdf0e10cSrcweir { 201cdf0e10cSrcweir uno::Sequence<beans::NamedValue> aListProp; 202cdf0e10cSrcweir if ( namedValues[n].Value >>= aListProp ) 203cdf0e10cSrcweir { 204cdf0e10cSrcweir for ( sal_Int32 i=aListProp.getLength(); i-- > 0; ) 205cdf0e10cSrcweir { 206cdf0e10cSrcweir if ( aListProp[ i ].Name.equalsAscii( "updateList" ) ) 207cdf0e10cSrcweir { 208cdf0e10cSrcweir handleExtensionUpdates( aListProp ); 209cdf0e10cSrcweir return uno::Any(); 210cdf0e10cSrcweir } 211cdf0e10cSrcweir } 212cdf0e10cSrcweir } 213cdf0e10cSrcweir } 214cdf0e10cSrcweir } 215cdf0e10cSrcweir 216cdf0e10cSrcweir uno::Sequence<beans::NamedValue> aConfig = 217cdf0e10cSrcweir getValue< uno::Sequence<beans::NamedValue> > (namedValues, "JobConfig"); 218cdf0e10cSrcweir 219cdf0e10cSrcweir /* Determine the way we got invoked here - 220cdf0e10cSrcweir * see Developers Guide Chapter "4.7.2 Jobs" to understand the magic 221cdf0e10cSrcweir */ 222cdf0e10cSrcweir 223cdf0e10cSrcweir uno::Sequence<beans::NamedValue> aEnvironment = 224cdf0e10cSrcweir getValue< uno::Sequence<beans::NamedValue> > (namedValues, "Environment"); 225cdf0e10cSrcweir 226cdf0e10cSrcweir rtl::OUString aEventName = getValue< rtl::OUString > (aEnvironment, "EventName"); 227cdf0e10cSrcweir 228cdf0e10cSrcweir m_pInitThread.reset( 229cdf0e10cSrcweir new InitUpdateCheckJobThread( 230cdf0e10cSrcweir m_xContext, aConfig, 231cdf0e10cSrcweir !aEventName.equalsAscii("onFirstVisibleTask"))); 232cdf0e10cSrcweir 233cdf0e10cSrcweir return uno::Any(); 234cdf0e10cSrcweir } 235cdf0e10cSrcweir 236cdf0e10cSrcweir //------------------------------------------------------------------------------ 237cdf0e10cSrcweir void UpdateCheckJob::handleExtensionUpdates( const uno::Sequence< beans::NamedValue > &rListProp ) 238cdf0e10cSrcweir { 239cdf0e10cSrcweir try { 240cdf0e10cSrcweir uno::Sequence< uno::Sequence< rtl::OUString > > aList = 241cdf0e10cSrcweir getValue< uno::Sequence< uno::Sequence< rtl::OUString > > > ( rListProp, "updateList" ); 242cdf0e10cSrcweir bool bPrepareOnly = getValue< bool > ( rListProp, "prepareOnly" ); 243cdf0e10cSrcweir 244cdf0e10cSrcweir // we will first store any new found updates and then check, if there are any 245cdf0e10cSrcweir // pending updates. 246cdf0e10cSrcweir storeExtensionUpdateInfos( m_xContext, aList ); 247cdf0e10cSrcweir 248cdf0e10cSrcweir if ( bPrepareOnly ) 249cdf0e10cSrcweir return; 250cdf0e10cSrcweir 251cdf0e10cSrcweir bool bHasUpdates = checkForPendingUpdates( m_xContext ); 252cdf0e10cSrcweir 253cdf0e10cSrcweir rtl::Reference<UpdateCheck> aController( UpdateCheck::get() ); 254cdf0e10cSrcweir if ( ! aController.is() ) 255cdf0e10cSrcweir return; 256cdf0e10cSrcweir 257cdf0e10cSrcweir aController->setHasExtensionUpdates( bHasUpdates ); 258cdf0e10cSrcweir 259cdf0e10cSrcweir if ( ! aController->hasOfficeUpdate() ) 260cdf0e10cSrcweir { 261cdf0e10cSrcweir if ( bHasUpdates ) 262cdf0e10cSrcweir aController->setUIState( UPDATESTATE_EXT_UPD_AVAIL, true ); 263cdf0e10cSrcweir else 264cdf0e10cSrcweir aController->setUIState( UPDATESTATE_NO_UPDATE_AVAIL, true ); 265cdf0e10cSrcweir } 266cdf0e10cSrcweir } 267cdf0e10cSrcweir catch( const uno::Exception& e ) 268cdf0e10cSrcweir { 269cdf0e10cSrcweir OSL_TRACE( "Caught exception: %s\n thread terminated.\n", 270cdf0e10cSrcweir rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); 271cdf0e10cSrcweir } 272cdf0e10cSrcweir } 273cdf0e10cSrcweir 274cdf0e10cSrcweir //------------------------------------------------------------------------------ 275cdf0e10cSrcweir 276cdf0e10cSrcweir rtl::OUString SAL_CALL 277cdf0e10cSrcweir UpdateCheckJob::getImplementationName() throw (uno::RuntimeException) 278cdf0e10cSrcweir { 279cdf0e10cSrcweir return getImplName(); 280cdf0e10cSrcweir } 281cdf0e10cSrcweir 282cdf0e10cSrcweir //------------------------------------------------------------------------------ 283cdf0e10cSrcweir 284cdf0e10cSrcweir uno::Sequence< rtl::OUString > SAL_CALL 285cdf0e10cSrcweir UpdateCheckJob::getSupportedServiceNames() throw (uno::RuntimeException) 286cdf0e10cSrcweir { 287cdf0e10cSrcweir return getServiceNames(); 288cdf0e10cSrcweir } 289cdf0e10cSrcweir 290cdf0e10cSrcweir //------------------------------------------------------------------------------ 291cdf0e10cSrcweir 292cdf0e10cSrcweir sal_Bool SAL_CALL 293cdf0e10cSrcweir UpdateCheckJob::supportsService( rtl::OUString const & serviceName ) throw (uno::RuntimeException) 294cdf0e10cSrcweir { 295cdf0e10cSrcweir uno::Sequence< rtl::OUString > aServiceNameList = getServiceNames(); 296cdf0e10cSrcweir 297cdf0e10cSrcweir for( sal_Int32 n=0; n < aServiceNameList.getLength(); n++ ) 298cdf0e10cSrcweir if( aServiceNameList[n].equals(serviceName) ) 299cdf0e10cSrcweir return sal_True; 300cdf0e10cSrcweir 301cdf0e10cSrcweir return sal_False; 302cdf0e10cSrcweir } 303cdf0e10cSrcweir 304cdf0e10cSrcweir //------------------------------------------------------------------------------ 305cdf0e10cSrcweir // XEventListener 306cdf0e10cSrcweir void SAL_CALL UpdateCheckJob::disposing( lang::EventObject const & rEvt ) 307cdf0e10cSrcweir throw ( uno::RuntimeException ) 308cdf0e10cSrcweir { 309cdf0e10cSrcweir bool shutDown = ( rEvt.Source == m_xDesktop ); 310cdf0e10cSrcweir 311cdf0e10cSrcweir if ( shutDown && m_xDesktop.is() ) 312cdf0e10cSrcweir { 313cdf0e10cSrcweir m_xDesktop->removeTerminateListener( this ); 314cdf0e10cSrcweir m_xDesktop.clear(); 315cdf0e10cSrcweir } 316cdf0e10cSrcweir } 317cdf0e10cSrcweir 318cdf0e10cSrcweir //------------------------------------------------------------------------------ 319cdf0e10cSrcweir // XTerminateListener 320cdf0e10cSrcweir void SAL_CALL UpdateCheckJob::queryTermination( lang::EventObject const & ) 321cdf0e10cSrcweir throw ( frame::TerminationVetoException, uno::RuntimeException ) 322cdf0e10cSrcweir { 323cdf0e10cSrcweir } 324cdf0e10cSrcweir 325cdf0e10cSrcweir //------------------------------------------------------------------------------ 326cdf0e10cSrcweir void SAL_CALL UpdateCheckJob::notifyTermination( lang::EventObject const & ) 327cdf0e10cSrcweir throw ( uno::RuntimeException ) 328cdf0e10cSrcweir { 329cdf0e10cSrcweir if ( m_pInitThread.get() != 0 ) 330cdf0e10cSrcweir { 331cdf0e10cSrcweir m_pInitThread->setTerminating(); 332cdf0e10cSrcweir m_pInitThread->join(); 333cdf0e10cSrcweir } 334cdf0e10cSrcweir } 335cdf0e10cSrcweir 336cdf0e10cSrcweir } // anonymous namespace 337cdf0e10cSrcweir 338cdf0e10cSrcweir //------------------------------------------------------------------------------ 339cdf0e10cSrcweir 340cdf0e10cSrcweir static uno::Reference<uno::XInterface> SAL_CALL 341cdf0e10cSrcweir createJobInstance(const uno::Reference<uno::XComponentContext>& xContext) 342cdf0e10cSrcweir { 343cdf0e10cSrcweir return *new UpdateCheckJob(xContext); 344cdf0e10cSrcweir } 345cdf0e10cSrcweir 346cdf0e10cSrcweir //------------------------------------------------------------------------------ 347cdf0e10cSrcweir 348cdf0e10cSrcweir static uno::Reference<uno::XInterface> SAL_CALL 349cdf0e10cSrcweir createConfigInstance(const uno::Reference<uno::XComponentContext>& xContext) 350cdf0e10cSrcweir { 351cdf0e10cSrcweir return *UpdateCheckConfig::get(xContext, *UpdateCheck::get()); 352cdf0e10cSrcweir } 353cdf0e10cSrcweir 354cdf0e10cSrcweir //------------------------------------------------------------------------------ 355cdf0e10cSrcweir 356cdf0e10cSrcweir static const cppu::ImplementationEntry kImplementations_entries[] = 357cdf0e10cSrcweir { 358cdf0e10cSrcweir { 359cdf0e10cSrcweir createJobInstance, 360cdf0e10cSrcweir UpdateCheckJob::getImplName, 361cdf0e10cSrcweir UpdateCheckJob::getServiceNames, 362cdf0e10cSrcweir cppu::createSingleComponentFactory, 363cdf0e10cSrcweir NULL, 364cdf0e10cSrcweir 0 365cdf0e10cSrcweir }, 366cdf0e10cSrcweir { 367cdf0e10cSrcweir createConfigInstance, 368cdf0e10cSrcweir UpdateCheckConfig::getImplName, 369cdf0e10cSrcweir UpdateCheckConfig::getServiceNames, 370cdf0e10cSrcweir cppu::createSingleComponentFactory, 371cdf0e10cSrcweir NULL, 372cdf0e10cSrcweir 0 373cdf0e10cSrcweir }, 374cdf0e10cSrcweir { NULL, NULL, NULL, NULL, NULL, 0 } 375cdf0e10cSrcweir } ; 376cdf0e10cSrcweir 377cdf0e10cSrcweir //------------------------------------------------------------------------------ 378cdf0e10cSrcweir 379cdf0e10cSrcweir extern "C" void SAL_CALL 380cdf0e10cSrcweir component_getImplementationEnvironment( const sal_Char **aEnvTypeName, uno_Environment **) 381cdf0e10cSrcweir { 382cdf0e10cSrcweir *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ; 383cdf0e10cSrcweir } 384cdf0e10cSrcweir 385cdf0e10cSrcweir //------------------------------------------------------------------------------ 386cdf0e10cSrcweir 387cdf0e10cSrcweir extern "C" void * 388cdf0e10cSrcweir component_getFactory(const sal_Char *pszImplementationName, void *pServiceManager, void *pRegistryKey) 389cdf0e10cSrcweir { 390cdf0e10cSrcweir return cppu::component_getFactoryHelper( 391cdf0e10cSrcweir pszImplementationName, 392cdf0e10cSrcweir pServiceManager, 393cdf0e10cSrcweir pRegistryKey, 394cdf0e10cSrcweir kImplementations_entries) ; 395cdf0e10cSrcweir } 396