LibreOffice Module extensions (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
UpdateCheckConfig Class Reference

#include <updatecheckconfig.hxx>

Inheritance diagram for UpdateCheckConfig:
[legend]
Collaboration diagram for UpdateCheckConfig:
[legend]

Public Member Functions

static ::rtl::Reference< UpdateCheckConfigget (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< UpdateCheckConfigListenerm_rListener
 

Detailed Description

Definition at line 76 of file updatecheckconfig.hxx.

Constructor & Destructor Documentation

◆ UpdateCheckConfig()

UpdateCheckConfig::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 
)
private

Definition at line 200 of file updatecheckconfig.cxx.

References m_xContainer.

Referenced by get().

◆ ~UpdateCheckConfig()

UpdateCheckConfig::~UpdateCheckConfig ( )
overrideprivatevirtual

Definition at line 210 of file updatecheckconfig.cxx.

Member Function Documentation

◆ checkExtensionVersion()

bool UpdateCheckConfig::checkExtensionVersion ( const OUString &  rExtensionName,
const OUString &  rVersion 
)

◆ clearLocalFileName()

void UpdateCheckConfig::clearLocalFileName ( )

Definition at line 333 of file updatecheckconfig.cxx.

References commitChanges(), DOWNLOAD_SIZE, i, LOCAL_FILE, and m_xContainer.

◆ clearUpdateFound()

void UpdateCheckConfig::clearUpdateFound ( )

Definition at line 401 of file updatecheckconfig.cxx.

References aName, aUpdateEntryProperties, commitChanges(), and m_xContainer.

◆ commitChanges()

void SAL_CALL UpdateCheckConfig::commitChanges ( )
overridevirtual

◆ get()

rtl::Reference< UpdateCheckConfig > UpdateCheckConfig::get ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const ::rtl::Reference< UpdateCheckConfigListener > &  rListener = ::rtl::ReferenceUpdateCheckConfigListener >() 
)

◆ getAllUsersDirectory()

OUString UpdateCheckConfig::getAllUsersDirectory ( )
static

Definition at line 181 of file updatecheckconfig.cxx.

References MAX_PATH, and TRUE.

Referenced by UpdateCheck::storeReleaseNote().

◆ getByName()

uno::Any SAL_CALL UpdateCheckConfig::getByName ( const OUString &  aName)
overridevirtual

◆ getCheckInterval()

sal_Int64 UpdateCheckConfig::getCheckInterval ( ) const

Definition at line 282 of file updatecheckconfig.cxx.

References CHECK_INTERVAL, getByName(), and nValue.

◆ getDownloadDestination()

OUString UpdateCheckConfig::getDownloadDestination ( ) const

Definition at line 305 of file updatecheckconfig.cxx.

References DOWNLOAD_DESTINATION, and getByName().

◆ getDownloadsDirectory()

OUString UpdateCheckConfig::getDownloadsDirectory ( )
static

Definition at line 153 of file updatecheckconfig.cxx.

Referenced by getByName().

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL UpdateCheckConfig::getElementNames ( )
overridevirtual

Definition at line 457 of file updatecheckconfig.cxx.

References m_xContainer.

◆ getElementType()

uno::Type SAL_CALL UpdateCheckConfig::getElementType ( )
overridevirtual

Definition at line 428 of file updatecheckconfig.cxx.

References m_xContainer.

◆ getImplementationName()

OUString SAL_CALL UpdateCheckConfig::getImplementationName ( )
overridevirtual

Definition at line 635 of file updatecheckconfig.cxx.

◆ getLastChecked()

sal_Int64 UpdateCheckConfig::getLastChecked ( ) const

Definition at line 271 of file updatecheckconfig.cxx.

References getByName(), LAST_CHECK, and nValue.

◆ getLocalFileName()

OUString UpdateCheckConfig::getLocalFileName ( ) const

Definition at line 293 of file updatecheckconfig.cxx.

References aName, LOCAL_FILE, and m_xContainer.

◆ getPendingChanges()

uno::Sequence< util::ElementChange > SAL_CALL UpdateCheckConfig::getPendingChanges ( )
overridevirtual

Definition at line 530 of file updatecheckconfig.cxx.

References m_xContainer.

◆ getSubVersion()

OUString UpdateCheckConfig::getSubVersion ( const OUString &  rVersion,
sal_Int32 *  nIndex 
)
staticprivate

Definition at line 601 of file updatecheckconfig.cxx.

References nIndex.

Referenced by isVersionGreater().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL UpdateCheckConfig::getSupportedServiceNames ( )
overridevirtual

Definition at line 647 of file updatecheckconfig.cxx.

◆ getUpdateEntryVersion()

OUString UpdateCheckConfig::getUpdateEntryVersion ( ) const

Definition at line 260 of file updatecheckconfig.cxx.

References getByName(), and OLD_VERSION.

◆ hasByName()

sal_Bool SAL_CALL UpdateCheckConfig::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 463 of file updatecheckconfig.cxx.

References aName, and m_xContainer.

◆ hasElements()

sal_Bool SAL_CALL UpdateCheckConfig::hasElements ( )
overridevirtual

Definition at line 434 of file updatecheckconfig.cxx.

References m_xContainer.

◆ hasPendingChanges()

sal_Bool SAL_CALL UpdateCheckConfig::hasPendingChanges ( )
overridevirtual

Definition at line 520 of file updatecheckconfig.cxx.

References m_xContainer.

◆ isAutoCheckEnabled()

bool UpdateCheckConfig::isAutoCheckEnabled ( ) const

Definition at line 244 of file updatecheckconfig.cxx.

References AUTOCHECK_ENABLED, getByName(), and nValue.

◆ isAutoDownloadEnabled()

bool UpdateCheckConfig::isAutoDownloadEnabled ( ) const

Definition at line 252 of file updatecheckconfig.cxx.

References AUTODOWNLOAD_ENABLED, getByName(), and nValue.

Referenced by storeUpdateFound().

◆ isVersionGreater()

bool UpdateCheckConfig::isVersionGreater ( const OUString &  rVersion1,
const OUString &  rVersion2 
)
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().

◆ replaceByName()

void SAL_CALL UpdateCheckConfig::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

Definition at line 469 of file updatecheckconfig.cxx.

References aName, and m_xContainer.

Referenced by storeDownloadPaused(), and updateLastChecked().

◆ storeDownloadPaused()

void UpdateCheckConfig::storeDownloadPaused ( bool  paused)

Definition at line 348 of file updatecheckconfig.cxx.

References commitChanges(), DOWNLOAD_PAUSED, paused, and replaceByName().

◆ storeExtensionVersion()

bool UpdateCheckConfig::storeExtensionVersion ( const OUString &  rExtensionName,
const OUString &  rVersion 
)

◆ storeLocalFileName()

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.

◆ storeUpdateFound()

void UpdateCheckConfig::storeUpdateFound ( const UpdateInfo rInfo,
const OUString &  aCurrentBuild 
)

◆ supportsService()

sal_Bool SAL_CALL UpdateCheckConfig::supportsService ( OUString const &  serviceName)
overridevirtual

Definition at line 641 of file updatecheckconfig.cxx.

References cppu::supportsService().

◆ updateLastChecked()

void UpdateCheckConfig::updateLastChecked ( )

Definition at line 355 of file updatecheckconfig.cxx.

References LAST_CHECK, and replaceByName().

Member Data Documentation

◆ m_rListener

const ::rtl::Reference< UpdateCheckConfigListener > UpdateCheckConfig::m_rListener
private

Definition at line 176 of file updatecheckconfig.hxx.

Referenced by commitChanges().

◆ m_xAvailableUpdates

const css::uno::Reference< css::container::XNameContainer > UpdateCheckConfig::m_xAvailableUpdates
private

◆ m_xContainer

const css::uno::Reference< css::container::XNameContainer > UpdateCheckConfig::m_xContainer
private

◆ m_xIgnoredUpdates

const css::uno::Reference< css::container::XNameContainer > UpdateCheckConfig::m_xIgnoredUpdates
private

The documentation for this class was generated from the following files: