LibreOffice Module sfx2 (master) 1
|
A simple asynchronous call via Application::PostUserCall. More...
#include <AsynchronousCall.hxx>
Public Types | |
typedef ::std::function< void()> | Action |
Public Member Functions | |
AsynchronousCall (Action aAction) | |
~AsynchronousCall () | |
void | RequestCall () |
void | CancelRequest () |
void | Sync () |
Private Member Functions | |
DECL_LINK (HandleUserCall, void *, void) | |
Private Attributes | |
Action | maAction |
ImplSVEvent * | mnCallId |
A simple asynchronous call via Application::PostUserCall.
Definition at line 31 of file AsynchronousCall.hxx.
typedef ::std::function<void()> sfx2::sidebar::AsynchronousCall::Action |
Definition at line 34 of file AsynchronousCall.hxx.
sfx2::sidebar::AsynchronousCall::AsynchronousCall | ( | Action | aAction | ) |
Definition at line 26 of file AsynchronousCall.cxx.
References maAction.
sfx2::sidebar::AsynchronousCall::~AsynchronousCall | ( | ) |
Definition at line 32 of file AsynchronousCall.cxx.
References CancelRequest().
void sfx2::sidebar::AsynchronousCall::CancelRequest | ( | ) |
Definition at line 46 of file AsynchronousCall.cxx.
References mnCallId, and Application::RemoveUserEvent().
Referenced by sfx2::sidebar::SidebarController::disposing(), Sync(), and ~AsynchronousCall().
|
private |
void sfx2::sidebar::AsynchronousCall::RequestCall | ( | ) |
Definition at line 37 of file AsynchronousCall.cxx.
References LINK, mnCallId, and Application::PostUserEvent().
Referenced by sfx2::sidebar::SidebarController::notifyContextChangeEvent(), sfx2::sidebar::SidebarController::propertyChange(), and sfx2::sidebar::SidebarController::statusChanged().
void sfx2::sidebar::AsynchronousCall::Sync | ( | ) |
Definition at line 55 of file AsynchronousCall.cxx.
References CancelRequest(), maAction, and mnCallId.
Referenced by sfx2::sidebar::SidebarController::SyncUpdate().
|
private |
Definition at line 44 of file AsynchronousCall.hxx.
Referenced by Sync().
|
private |
Definition at line 45 of file AsynchronousCall.hxx.
Referenced by CancelRequest(), RequestCall(), and Sync().