24#include <com/sun/star/ucb/UniversalContentBroker.hpp>
27#include <osl/process.h>
31namespace task = ::com::sun::star::task;
32namespace uno = ::com::sun::star::uno;
40 if( osl_getCommandArgCount() != 0 )
42 fprintf(stderr,
"Usage: updateprotocoltest\n");
51 css::ucb::UniversalContentBroker::create(rComponentContext);
59 if(
checkForUpdates(rComponentContext, uno::Reference< task::XInteractionHandler > (),
aURL, aVersion) )
61 SAL_INFO(
"extensions.update",
"Update found: " << aVersion <<
" on " <<
aURL);
65 SAL_INFO(
"extensions.update",
"no updates found" );
70 SAL_INFO(
"extensions.update",
"unhandled exception caught" );
#define SAL_INFO(area, stream)
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL defaultBootstrap_InitialComponentContext()
bool checkForUpdates(UpdateInfo &o_rUpdateInfo, uno::Reference< uno::XComponentContext > const &rxContext, uno::Reference< task::XInteractionHandler > const &rxInteractionHandler, const uno::Reference< deployment::XUpdateInformationProvider > &rUpdateInfoProvider)