LibreOffice Module extensions (master) 1
|
#include <updatecheckconfig.hxx>
Public Member Functions | |
static ::rtl::Reference< UpdateCheckConfig > | get (const css::uno::Reference< css::uno::XComponentContext > &xContext, const ::rtl::Reference< UpdateCheckConfigListener > &rListener=::rtl::Reference< UpdateCheckConfigListener >()) |
bool | isAutoCheckEnabled () const |
bool | isAutoDownloadEnabled () const |
OUString | getUpdateEntryVersion () const |
void | updateLastChecked () |
sal_Int64 | getLastChecked () const |
sal_Int64 | getCheckInterval () const |
void | clearUpdateFound () |
void | storeUpdateFound (const UpdateInfo &rInfo, const OUString &aCurrentBuild) |
OUString | getLocalFileName () const |
OUString | getDownloadDestination () const |
void | storeLocalFileName (const OUString &rFileName, sal_Int64 nFileSize) |
void | clearLocalFileName () |
void | storeDownloadPaused (bool paused) |
bool | storeExtensionVersion (const OUString &rExtensionName, const OUString &rVersion) |
bool | checkExtensionVersion (const OUString &rExtensionName, const OUString &rVersion) |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
virtual void SAL_CALL | replaceByName (const OUString &aName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | commitChanges () override |
virtual sal_Bool SAL_CALL | hasPendingChanges () override |
virtual css::uno::Sequence< css::util::ElementChange > SAL_CALL | getPendingChanges () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (OUString const &serviceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Static Public Member Functions | |
static OUString | getDownloadsDirectory () |
static OUString | getAllUsersDirectory () |
Private Member Functions | |
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 | ~UpdateCheckConfig () override |
Static Private Member Functions | |
static OUString | getSubVersion (const OUString &rVersion, sal_Int32 *nIndex) |
static bool | isVersionGreater (const OUString &rVersion1, const OUString &rVersion2) |
checks if the second version string is greater than the first one More... | |
Private Attributes | |
const css::uno::Reference< css::container::XNameContainer > | m_xContainer |
const css::uno::Reference< css::container::XNameContainer > | m_xAvailableUpdates |
const css::uno::Reference< css::container::XNameContainer > | m_xIgnoredUpdates |
const ::rtl::Reference< UpdateCheckConfigListener > | m_rListener |
Definition at line 76 of file updatecheckconfig.hxx.
|
private |
|
overrideprivatevirtual |
Definition at line 210 of file updatecheckconfig.cxx.
bool UpdateCheckConfig::checkExtensionVersion | ( | const OUString & | rExtensionName, |
const OUString & | rVersion | ||
) |
Definition at line 569 of file updatecheckconfig.cxx.
References commitChanges(), isVersionGreater(), m_xAvailableUpdates, m_xIgnoredUpdates, and PROPERTY_VERSION.
void UpdateCheckConfig::clearLocalFileName | ( | ) |
Definition at line 333 of file updatecheckconfig.cxx.
References commitChanges(), DOWNLOAD_SIZE, i, LOCAL_FILE, and m_xContainer.
void UpdateCheckConfig::clearUpdateFound | ( | ) |
Definition at line 401 of file updatecheckconfig.cxx.
References aName, aUpdateEntryProperties, commitChanges(), and m_xContainer.
|
overridevirtual |
Definition at line 477 of file updatecheckconfig.cxx.
References AUTOCHECK_ENABLED, CHECK_INTERVAL, i, m_rListener, m_xAvailableUpdates, m_xContainer, and m_xIgnoredUpdates.
Referenced by checkExtensionVersion(), clearLocalFileName(), clearUpdateFound(), storeDownloadPaused(), storeExtensionVersion(), storeLocalFileName(), and storeUpdateFound().
rtl::Reference< UpdateCheckConfig > UpdateCheckConfig::get | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
const ::rtl::Reference< UpdateCheckConfigListener > & | rListener = ::rtl::Reference< UpdateCheckConfigListener >() |
||
) |
Definition at line 214 of file updatecheckconfig.cxx.
References UpdateCheckConfig().
Referenced by UpdateCheck::cancelDownload(), checkForPendingUpdates(), UpdateCheck::downloadFinished(), UpdateCheck::downloadStarted(), UpdateCheck::enableDownload(), extensions_update_UpdateCheckConfig_get_implementation(), UpdateCheck::initialize(), UpdateCheck::pause(), UpdateCheck::resume(), UpdateCheck::setUIState(), UpdateCheck::setUpdateInfo(), and storeExtensionUpdateInfos().
|
static |
Definition at line 181 of file updatecheckconfig.cxx.
References MAX_PATH, and TRUE.
Referenced by UpdateCheck::storeReleaseNote().
|
overridevirtual |
Definition at line 440 of file updatecheckconfig.cxx.
References aName, aStr, DOWNLOAD_DESTINATION, getDownloadsDirectory(), and m_xContainer.
Referenced by getCheckInterval(), getDownloadDestination(), getLastChecked(), getUpdateEntryVersion(), isAutoCheckEnabled(), and isAutoDownloadEnabled().
sal_Int64 UpdateCheckConfig::getCheckInterval | ( | ) | const |
Definition at line 282 of file updatecheckconfig.cxx.
References CHECK_INTERVAL, getByName(), and nValue.
OUString UpdateCheckConfig::getDownloadDestination | ( | ) | const |
Definition at line 305 of file updatecheckconfig.cxx.
References DOWNLOAD_DESTINATION, and getByName().
|
static |
Definition at line 153 of file updatecheckconfig.cxx.
Referenced by getByName().
|
overridevirtual |
Definition at line 457 of file updatecheckconfig.cxx.
References m_xContainer.
|
overridevirtual |
Definition at line 428 of file updatecheckconfig.cxx.
References m_xContainer.
|
overridevirtual |
Definition at line 635 of file updatecheckconfig.cxx.
sal_Int64 UpdateCheckConfig::getLastChecked | ( | ) | const |
Definition at line 271 of file updatecheckconfig.cxx.
References getByName(), LAST_CHECK, and nValue.
OUString UpdateCheckConfig::getLocalFileName | ( | ) | const |
Definition at line 293 of file updatecheckconfig.cxx.
References aName, LOCAL_FILE, and m_xContainer.
|
overridevirtual |
Definition at line 530 of file updatecheckconfig.cxx.
References m_xContainer.
|
staticprivate |
Definition at line 601 of file updatecheckconfig.cxx.
References nIndex.
Referenced by isVersionGreater().
|
overridevirtual |
Definition at line 647 of file updatecheckconfig.cxx.
OUString UpdateCheckConfig::getUpdateEntryVersion | ( | ) | const |
Definition at line 260 of file updatecheckconfig.cxx.
References getByName(), and OLD_VERSION.
|
overridevirtual |
Definition at line 463 of file updatecheckconfig.cxx.
References aName, and m_xContainer.
|
overridevirtual |
Definition at line 434 of file updatecheckconfig.cxx.
References m_xContainer.
|
overridevirtual |
Definition at line 520 of file updatecheckconfig.cxx.
References m_xContainer.
bool UpdateCheckConfig::isAutoCheckEnabled | ( | ) | const |
Definition at line 244 of file updatecheckconfig.cxx.
References AUTOCHECK_ENABLED, getByName(), and nValue.
bool UpdateCheckConfig::isAutoDownloadEnabled | ( | ) | const |
Definition at line 252 of file updatecheckconfig.cxx.
References AUTODOWNLOAD_ENABLED, getByName(), and nValue.
Referenced by storeUpdateFound().
|
staticprivate |
checks if the second version string is greater than the first one
Definition at line 613 of file updatecheckconfig.cxx.
References getSubVersion().
Referenced by checkExtensionVersion().
|
overridevirtual |
Definition at line 469 of file updatecheckconfig.cxx.
References aName, and m_xContainer.
Referenced by storeDownloadPaused(), and updateLastChecked().
void UpdateCheckConfig::storeDownloadPaused | ( | bool | paused | ) |
Definition at line 348 of file updatecheckconfig.cxx.
References commitChanges(), DOWNLOAD_PAUSED, paused, and replaceByName().
bool UpdateCheckConfig::storeExtensionVersion | ( | const OUString & | rExtensionName, |
const OUString & | rVersion | ||
) |
Definition at line 539 of file updatecheckconfig.cxx.
References commitChanges(), createInstance(), m_xAvailableUpdates, m_xIgnoredUpdates, and PROPERTY_VERSION.
void UpdateCheckConfig::storeLocalFileName | ( | const OUString & | rFileName, |
sal_Int64 | nFileSize | ||
) |
Definition at line 315 of file updatecheckconfig.cxx.
References commitChanges(), DOWNLOAD_SIZE, i, LOCAL_FILE, and m_xContainer.
void UpdateCheckConfig::storeUpdateFound | ( | const UpdateInfo & | rInfo, |
const OUString & | aCurrentBuild | ||
) |
Definition at line 366 of file updatecheckconfig.cxx.
References aName, aUpdateEntryProperties, UpdateInfo::BuildId, commitChanges(), UpdateInfo::Description, getReleaseNote(), isAutoDownloadEnabled(), m_xContainer, n, nUpdateEntryProperties, UpdateInfo::Sources, and UpdateInfo::Version.
|
overridevirtual |
Definition at line 641 of file updatecheckconfig.cxx.
References cppu::supportsService().
void UpdateCheckConfig::updateLastChecked | ( | ) |
Definition at line 355 of file updatecheckconfig.cxx.
References LAST_CHECK, and replaceByName().
|
private |
Definition at line 176 of file updatecheckconfig.hxx.
Referenced by commitChanges().
|
private |
Definition at line 174 of file updatecheckconfig.hxx.
Referenced by checkExtensionVersion(), commitChanges(), and storeExtensionVersion().
|
private |
Definition at line 173 of file updatecheckconfig.hxx.
Referenced by clearLocalFileName(), clearUpdateFound(), commitChanges(), getByName(), getElementNames(), getElementType(), getLocalFileName(), getPendingChanges(), hasByName(), hasElements(), hasPendingChanges(), replaceByName(), storeLocalFileName(), and storeUpdateFound().
|
private |
Definition at line 175 of file updatecheckconfig.hxx.
Referenced by checkExtensionVersion(), commitChanges(), and storeExtensionVersion().