23#include <com/sun/star/beans/NamedValue.hpp>
24#include <com/sun/star/container/XNameContainer.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
27#include <com/sun/star/util/XChangesBatch.hpp>
36 const css::uno::Sequence< css::beans::NamedValue >&
m_rValues;
40 const css::uno::Sequence< css::beans::NamedValue >& rValues) :
43 css::uno::Any
getValue(
const char * pName);
77 css::container::XNameReplace,
78 css::util::XChangesBatch,
79 css::lang::XServiceInfo >
81 UpdateCheckConfig(
const css::uno::Reference< css::container::XNameContainer >& xContainer,
82 const css::uno::Reference< css::container::XNameContainer >& xAvailableUpdates,
83 const css::uno::Reference< css::container::XNameContainer >& xIgnoredUpdates,
84 const ::rtl::Reference< UpdateCheckConfigListener >& rListener );
90 static ::rtl::Reference< UpdateCheckConfig >
get(
91 const css::uno::Reference< css::uno::XComponentContext >& xContext,
142 const OUString& rVersion );
144 const OUString& rVersion );
151 virtual css::uno::Any SAL_CALL
getByName(
const OUString&
aName )
override;
152 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames( )
override;
156 virtual void SAL_CALL
replaceByName(
const OUString&
aName,
const css::uno::Any& aElement )
override;
161 virtual css::uno::Sequence< css::util::ElementChange > SAL_CALL
getPendingChanges( )
override;
171 static bool isVersionGreater(
const OUString& rVersion1,
const OUString& rVersion2 );
173 const css::uno::Reference< css::container::XNameContainer >
m_xContainer;
181T
getValue(
const css::uno::Sequence< css::beans::NamedValue >& rNamedValues,
const char * pszName )
183 for( css::beans::NamedValue
const & nv : rNamedValues )
186 if( nv.Name.equalsAscii( pszName ) )
189 if( ! (nv.Value >>=
value) )
190 throw css::uno::RuntimeException(
194 ::cppu::getTypeFavourUnsigned(&
value).getTypeLibType() ),
196 css::uno::Reference< css::uno::XInterface >() );
const css::uno::Sequence< css::beans::NamedValue > & m_rValues
NamedValueByNameAccess(const css::uno::Sequence< css::beans::NamedValue > &rValues)
css::uno::Any getValue(const char *pName)
const css::uno::Reference< css::container::XNameContainer > m_xIgnoredUpdates
virtual ~UpdateCheckConfig() override
void storeDownloadPaused(bool paused)
sal_Int64 getLastChecked() const
void storeLocalFileName(const OUString &rFileName, sal_Int64 nFileSize)
sal_Int64 getCheckInterval() const
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
static OUString getSubVersion(const OUString &rVersion, sal_Int32 *nIndex)
virtual sal_Bool SAL_CALL hasElements() override
static OUString getAllUsersDirectory()
static OUString getDownloadsDirectory()
bool storeExtensionVersion(const OUString &rExtensionName, const OUString &rVersion)
static bool isVersionGreater(const OUString &rVersion1, const OUString &rVersion2)
checks if the second version string is greater than the first one
OUString getUpdateEntryVersion() const
static ::rtl::Reference< UpdateCheckConfig > get(const css::uno::Reference< css::uno::XComponentContext > &xContext, const ::rtl::Reference< UpdateCheckConfigListener > &rListener=::rtl::Reference< UpdateCheckConfigListener >())
void clearLocalFileName()
virtual void SAL_CALL replaceByName(const OUString &aName, const css::uno::Any &aElement) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual css::uno::Sequence< css::util::ElementChange > SAL_CALL getPendingChanges() override
UpdateCheckConfig(const css::uno::Reference< css::container::XNameContainer > &xContainer, const css::uno::Reference< css::container::XNameContainer > &xAvailableUpdates, const css::uno::Reference< css::container::XNameContainer > &xIgnoredUpdates, const ::rtl::Reference< UpdateCheckConfigListener > &rListener)
virtual sal_Bool SAL_CALL supportsService(OUString const &serviceName) override
bool isAutoCheckEnabled() const
OUString getLocalFileName() const
OUString getDownloadDestination() const
virtual OUString SAL_CALL getImplementationName() override
const ::rtl::Reference< UpdateCheckConfigListener > m_rListener
virtual sal_Bool SAL_CALL hasPendingChanges() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool isAutoDownloadEnabled() const
virtual void SAL_CALL commitChanges() override
bool checkExtensionVersion(const OUString &rExtensionName, const OUString &rVersion)
void storeUpdateFound(const UpdateInfo &rInfo, const OUString &aCurrentBuild)
const css::uno::Reference< css::container::XNameContainer > m_xContainer
const css::uno::Reference< css::container::XNameContainer > m_xAvailableUpdates
virtual css::uno::Type SAL_CALL getElementType() override
OUString getStringValue(const char *) const
void getUpdateEntry(UpdateInfo &rInfo) const
OUString getUpdateEntryVersion() const
sal_Int64 getDownloadSize() const
OUString getLocalFileName() const
UpdateCheckROModel(NamedValueByNameAccess &aNameAccess)
bool isDownloadPaused() const
bool isAutoCheckEnabled() const
NamedValueByNameAccess & m_aNameAccess
IJScriptValueObject VARIANT value
rtl_uString *SAL_CALL cppu_Any_extraction_failure_msg(uno_Any const *pAny, typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
T getValue(const css::uno::Sequence< css::beans::NamedValue > &rNamedValues, const char *pszName)