diff options
Diffstat (limited to 'ucb/source/ucp/file/filtask.hxx')
-rw-r--r-- | ucb/source/ucp/file/filtask.hxx | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index a08355744d26..73d85afaeca1 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -107,7 +107,7 @@ namespace fileaccess { } - void SAL_CALL abort() + void abort() { m_bAbort = true; } @@ -128,24 +128,24 @@ namespace fileaccess m_nMinorCode = TASKHANDLER_NO_ERROR; } - void SAL_CALL installError( sal_Int32 nErrorCode, + void installError( sal_Int32 nErrorCode, sal_Int32 nMinorCode ) { m_nErrorCode = nErrorCode; m_nMinorCode = nMinorCode; } - sal_Int32 SAL_CALL getInstalledError() + sal_Int32 getInstalledError() { return m_nErrorCode; } - sal_Int32 SAL_CALL getMinorErrorCode() + sal_Int32 getMinorErrorCode() { return m_nMinorCode; } - css::uno::Reference< css::task::XInteractionHandler > const & SAL_CALL + css::uno::Reference< css::task::XInteractionHandler > const & getInteractionHandler() { if( ! m_xInteractionHandler.is() && m_xCommandEnvironment.is() ) @@ -154,7 +154,7 @@ namespace fileaccess return m_xInteractionHandler; } - const css::uno::Reference< css::ucb::XCommandEnvironment >& SAL_CALL + const css::uno::Reference< css::ucb::XCommandEnvironment >& getCommandEnvironment() { return m_xCommandEnvironment; @@ -193,17 +193,17 @@ namespace fileaccess sal_Int16 theAttributes ); ~MyProperty(); - inline const bool& SAL_CALL IsNative() const; - const OUString& SAL_CALL getPropertyName() const { return PropertyName; } - inline const sal_Int32& SAL_CALL getHandle() const; - inline const css::uno::Type& SAL_CALL getType() const; - inline const css::uno::Any& SAL_CALL getValue() const; - inline const css::beans::PropertyState& SAL_CALL getState() const; - inline const sal_Int16& SAL_CALL getAttributes() const; + inline const bool& IsNative() const; + const OUString& getPropertyName() const { return PropertyName; } + inline const sal_Int32& getHandle() const; + inline const css::uno::Type& getType() const; + inline const css::uno::Any& getValue() const; + inline const css::beans::PropertyState& getState() const; + inline const sal_Int16& getAttributes() const; // The set* functions are declared const, because the key of "this" stays intact - inline void SAL_CALL setValue( const css::uno::Any& theValue ) const; - inline void SAL_CALL setState( const css::beans::PropertyState& theState ) const; + inline void setValue( const css::uno::Any& theValue ) const; + inline void setState( const css::beans::PropertyState& theState ) const; }; struct eMyProperty @@ -250,12 +250,12 @@ namespace fileaccess ~TaskManager(); /// @throws css::ucb::DuplicateCommandIdentifierException - void SAL_CALL startTask( + void startTask( sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv ); - sal_Int32 SAL_CALL getCommandId(); - void SAL_CALL abort( sal_Int32 CommandId ); + sal_Int32 getCommandId(); + void abort( sal_Int32 CommandId ); /** @@ -264,11 +264,11 @@ namespace fileaccess * The minor code refines the information given in ErrorCode. */ - void SAL_CALL installError( sal_Int32 CommandId, + void installError( sal_Int32 CommandId, sal_Int32 ErrorCode, sal_Int32 minorCode = TASKHANDLER_NO_ERROR ); - void SAL_CALL retrieveError( sal_Int32 CommandId, + void retrieveError( sal_Int32 CommandId, sal_Int32 &ErrorCode, sal_Int32 &minorCode); @@ -277,7 +277,7 @@ namespace fileaccess * "endTask" throws in case an error code is set the corresponding exception. */ - void SAL_CALL endTask( sal_Int32 CommandId, + void endTask( sal_Int32 CommandId, // the physical URL of the object const OUString& aUnqPath, BaseContent* pContent); @@ -287,23 +287,23 @@ namespace fileaccess * Handles an interactionrequest */ - void SAL_CALL handleTask( sal_Int32 CommandId, + void handleTask( sal_Int32 CommandId, const css::uno::Reference< css::task::XInteractionRequest >& request ); /** * Clears any error which are set on the commandid */ - void SAL_CALL clearError( sal_Int32 ); + void clearError( sal_Int32 ); /** * This two methods register and deregister a change listener for the content belonging * to URL aUnqPath */ - void SAL_CALL registerNotifier( const OUString& aUnqPath,Notifier* pNotifier ); + void registerNotifier( const OUString& aUnqPath,Notifier* pNotifier ); - void SAL_CALL deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ); + void deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ); /** @@ -316,7 +316,7 @@ namespace fileaccess * @throws css::uno::RuntimeException */ - void SAL_CALL associate( const OUString& UnqPath, + void associate( const OUString& UnqPath, const OUString& PropertyName, const css::uno::Any& DefaultValue, const sal_Int16 Attributes ); @@ -324,7 +324,7 @@ namespace fileaccess /// @throws css::beans::UnknownPropertyException /// @throws css::beans::NotRemoveableException /// @throws css::uno::RuntimeException - void SAL_CALL deassociate( const OUString& UnqPath, + void deassociate( const OUString& UnqPath, const OUString& PropertyName ); @@ -337,7 +337,7 @@ namespace fileaccess * URL aUnqPath into the XOutputStream */ - void SAL_CALL page( sal_Int32 CommandId, + void page( sal_Int32 CommandId, const OUString& aUnqPath, const css::uno::Reference< css::io::XOutputStream >& xOutputStream ); @@ -346,7 +346,7 @@ namespace fileaccess * Given a file URL aUnqPath, this methods returns a XInputStream which reads from the open file. */ - css::uno::Reference< css::io::XInputStream > SAL_CALL + css::uno::Reference< css::io::XInputStream > open( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ); @@ -357,7 +357,7 @@ namespace fileaccess * to read and write from/to the file. */ - css::uno::Reference< css::io::XStream > SAL_CALL + css::uno::Reference< css::io::XStream > open_rw( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ); @@ -368,7 +368,7 @@ namespace fileaccess * to file URL aUnqPath */ - css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL + css::uno::Reference< css::ucb::XDynamicResultSet > ls( sal_Int32 CommandId, const OUString& aUnqPath, const sal_Int32 OpenMode, @@ -381,11 +381,11 @@ namespace fileaccess */ // Info for commands - css::uno::Reference< css::ucb::XCommandInfo > SAL_CALL + css::uno::Reference< css::ucb::XCommandInfo > info_c(); // Info for the properties - css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL + css::uno::Reference< css::beans::XPropertySetInfo > info_p( const OUString& aUnqPath ); @@ -393,7 +393,7 @@ namespace fileaccess * Sets the values of the properties belonging to fileURL aUnqPath */ - css::uno::Sequence< css::uno::Any > SAL_CALL + css::uno::Sequence< css::uno::Any > setv( const OUString& aUnqPath, const css::uno::Sequence< css::beans::PropertyValue >& values ); @@ -403,7 +403,7 @@ namespace fileaccess * Returns an XRow object containing the values in the requested order. */ - css::uno::Reference< css::sdbc::XRow > SAL_CALL + css::uno::Reference< css::sdbc::XRow > getv( sal_Int32 CommandId, const OUString& aUnqPath, const css::uno::Sequence< css::beans::Property >& properties ); @@ -417,7 +417,7 @@ namespace fileaccess * Moves the content belonging to fileURL srcUnqPath to fileURL dstUnqPath( files and directories ) */ - void SAL_CALL + void move( sal_Int32 CommandId, const OUString& srcUnqPath, // Full file(folder)-path const OUString& dstUnqPath, // Path to the destination-directory @@ -427,7 +427,7 @@ namespace fileaccess * Copies the content belonging to fileURL srcUnqPath to fileURL dstUnqPath ( files and directories ) */ - void SAL_CALL + void copy( sal_Int32 CommandId, // See "move" const OUString& srcUnqPath, const OUString& dstUnqPath, @@ -439,7 +439,7 @@ namespace fileaccess * Deletes the content belonging to fileURL aUnqPath( recursively in case of directory ) */ - bool SAL_CALL + bool remove( sal_Int32 CommandId, const OUString& aUnqPath, FileUrlType eTypeToMove = FileUrlType::Unknown, @@ -455,7 +455,7 @@ namespace fileaccess * Return:: success of operation */ - bool SAL_CALL + bool mkdir( sal_Int32 CommandId, const OUString& aDirectoryName, bool OverWrite ); @@ -467,7 +467,7 @@ namespace fileaccess * Return:: success of operation */ - bool SAL_CALL + bool mkfil( sal_Int32 CommandId, const OUString& aFileName, bool OverWrite, @@ -479,14 +479,14 @@ namespace fileaccess * The content of aInputStream becomes the content of the file * Return:: success of operation */ - bool SAL_CALL + bool write( sal_Int32 CommandId, const OUString& aUnqPath, bool OverWrite, const css::uno::Reference< css::io::XInputStream >& aInputStream ); - void SAL_CALL insertDefaultProperties( const OUString& aUnqPath ); + void insertDefaultProperties( const OUString& aUnqPath ); css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo(); @@ -515,21 +515,21 @@ namespace fileaccess /* get eventListeners */ /********************************************************************************/ - std::vector< ContentEventNotifier* >* SAL_CALL + std::vector< ContentEventNotifier* >* getContentEventListeners( const OUString& aName ); - std::vector< ContentEventNotifier* >* SAL_CALL + std::vector< ContentEventNotifier* >* getContentDeletedEventListeners( const OUString& aName ); - std::vector< std::vector< ContentEventNotifier* >* >* SAL_CALL + std::vector< std::vector< ContentEventNotifier* >* >* getContentExchangedEventListeners( const OUString& aOldPrefix, const OUString& aNewPrefix, bool withChildren ); - std::vector< PropertyChangeNotifier* >* SAL_CALL + std::vector< PropertyChangeNotifier* >* getPropertyChangeNotifier( const OUString& aName ); - std::vector< PropertySetInfoChangeNotifier* >* SAL_CALL + std::vector< PropertySetInfoChangeNotifier* >* getPropertySetListeners( const OUString& aName ); @@ -567,7 +567,7 @@ namespace fileaccess /* remove persistent propertyset */ /********************************************************************************/ - void SAL_CALL erasePersistentSet( const OUString& aUnqPath, + void erasePersistentSet( const OUString& aUnqPath, bool withChildren = false ); /********************************************************************************/ @@ -575,7 +575,7 @@ namespace fileaccess /* from srcUnqPath to dstUnqPath */ /********************************************************************************/ - void SAL_CALL copyPersistentSet( const OUString& srcUnqPath, + void copyPersistentSet( const OUString& srcUnqPath, const OUString& dstUnqPath, bool withChildren ); @@ -583,7 +583,7 @@ namespace fileaccess // Special optimized method for getting the properties of a directoryitem, which // is returned by osl::DirectoryItem::getNextItem() - bool SAL_CALL + bool getv( Notifier* pNotifier, const css::uno::Sequence< css::beans::Property >& properties, osl::DirectoryItem& DirItem, @@ -597,7 +597,7 @@ namespace fileaccess * The Properties are stored under the url belonging to it->first. */ - void SAL_CALL load( const TaskManager::ContentMap::iterator& it, + void load( const TaskManager::ContentMap::iterator& it, bool create ); /** @@ -606,7 +606,7 @@ namespace fileaccess * setting of file properties which properties have changed without filestat */ - void SAL_CALL + void commit( const TaskManager::ContentMap::iterator& it, const osl::FileStatus& aFileStatus ); @@ -617,7 +617,7 @@ namespace fileaccess * osl::DirectoryItem::getFileStatus fills the required fields. */ - void SAL_CALL + void getMaskFromProperties( sal_Int32& n_Mask, const css::uno::Sequence< css::beans::Property >& seq ); @@ -625,7 +625,7 @@ namespace fileaccess // Helper function for public copy - osl::FileBase::RC SAL_CALL + osl::FileBase::RC copy_recursive( const OUString& srcUnqPath, const OUString& dstUnqPath, @@ -639,7 +639,7 @@ namespace fileaccess // The call determines the errorCode, which should be used to install // any error - bool SAL_CALL + bool ensuredir( sal_Int32 CommandId, const OUString& aDirectoryName, sal_Int32 errorCode ); |