LibreOffice Module fpicker (master)  1
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
svt::AsyncPickerAction Class Reference

#include <asyncfilepicker.hxx>

Inheritance diagram for svt::AsyncPickerAction:
Collaboration diagram for svt::AsyncPickerAction:

Public Types

enum  Action {

Public Member Functions

 AsyncPickerAction (SvtFileDialog_Base *_pDialog, SvtFileView *_pView, const Action _eAction)
void execute (const OUString &_rURL, const OUString &_rFilter, sal_Int32 _nMinTimeout, sal_Int32 _nMaxTimeout, const css::uno::Sequence< OUString > &rDenyList)
 executes the action More...
void cancel ()
 cancels the running action More...
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
void acquire ()
void release ()

Protected Member Functions

virtual ~AsyncPickerAction () override
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE

Private Member Functions

 DECL_LINK (OnActionDone, void *, void)
 AsyncPickerAction (const AsyncPickerAction &)=delete
AsyncPickerActionoperator= (const AsyncPickerAction &)=delete

Private Attributes

Action m_eAction
OUString m_sURL
OUString m_sFileName
bool m_bRunning

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
static voidoperator new (std::size_t nSize, std::nothrow_t const &rNothrow)
static void operator delete (void *pPtr)
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount

Detailed Description

Definition at line 37 of file asyncfilepicker.hxx.

Member Enumeration Documentation


Definition at line 40 of file asyncfilepicker.hxx.

Constructor & Destructor Documentation

svt::AsyncPickerAction::AsyncPickerAction ( SvtFileDialog_Base _pDialog,
SvtFileView _pView,
const Action  _eAction 

Definition at line 32 of file asyncfilepicker.cxx.

References assert(), m_eAction, m_pDialog, and m_pView.

svt::AsyncPickerAction::~AsyncPickerAction ( )

Definition at line 43 of file asyncfilepicker.cxx.

svt::AsyncPickerAction::AsyncPickerAction ( const AsyncPickerAction )

Member Function Documentation

void svt::AsyncPickerAction::cancel ( )

cancels the running action

Definition at line 48 of file asyncfilepicker.cxx.

References SvtFileView::CancelRunningAsyncAction(), DBG_TESTSOLARMUTEX, m_bRunning, and m_pView.

svt::AsyncPickerAction::DECL_LINK ( OnActionDone  ,
void ,
void svt::AsyncPickerAction::execute ( const OUString &  _rURL,
const OUString &  _rFilter,
sal_Int32  _nMinTimeout,
sal_Int32  _nMaxTimeout,
const css::uno::Sequence< OUString > &  rDenyList 

executes the action

_nMinTimeoutthe minimum timeout to wait, in milliseconds. If negative, the action will we done synchronously. If between 0 and 999, it will be corrected to 1000, means the smallest valid value is 1000 (which equals one second).
_nMaxTimeoutThe maximum time to wait for a result, in milliseconds. If there's no result of the action within the given time frame, the action will be cancelled. If smaller than or equal to <arg>_nMinTimeout</arg>, it will be corrected to <arg>_nMinTimeout</arg> + 30000.

Definition at line 59 of file asyncfilepicker.cxx.

References salhelper::SimpleReferenceObject::acquire(), DBG_TESTSOLARMUTEX, eExecuteFilter, eFailure, eOpenURL, ePrevLevel, eStillRunning, eSuccess, SvtFileView::ExecuteFilter(), SvtFileDialog_Base::getCurrentFileText(), SvtFileView::Initialize(), LINK, m_bRunning, m_eAction, m_pDialog, m_pView, m_sFileName, m_sURL, SvtFileDialog_Base::onAsyncOperationStarted(), and SvtFileView::PreviousLevel().

AsyncPickerAction& svt::AsyncPickerAction::operator= ( const AsyncPickerAction )

Member Data Documentation

bool svt::AsyncPickerAction::m_bRunning

Definition at line 53 of file asyncfilepicker.hxx.

Referenced by cancel(), and execute().

Action svt::AsyncPickerAction::m_eAction

Definition at line 48 of file asyncfilepicker.hxx.

Referenced by execute().

SvtFileDialog_Base* svt::AsyncPickerAction::m_pDialog

Definition at line 50 of file asyncfilepicker.hxx.

Referenced by AsyncPickerAction(), and execute().

SvtFileView* svt::AsyncPickerAction::m_pView

Definition at line 49 of file asyncfilepicker.hxx.

Referenced by AsyncPickerAction(), cancel(), and execute().

OUString svt::AsyncPickerAction::m_sFileName

Definition at line 52 of file asyncfilepicker.hxx.

Referenced by execute().

OUString svt::AsyncPickerAction::m_sURL

Definition at line 51 of file asyncfilepicker.hxx.

Referenced by execute().

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