LibreOffice Module sfx2 (master) 1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
sfx2::sidebar::AsynchronousCall Class Reference

A simple asynchronous call via Application::PostUserCall. More...

#include <AsynchronousCall.hxx>

Collaboration diagram for sfx2::sidebar::AsynchronousCall:
[legend]

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
 
ImplSVEventmnCallId
 

Detailed Description

A simple asynchronous call via Application::PostUserCall.

Definition at line 31 of file AsynchronousCall.hxx.

Member Typedef Documentation

◆ Action

typedef ::std::function<void()> sfx2::sidebar::AsynchronousCall::Action

Definition at line 34 of file AsynchronousCall.hxx.

Constructor & Destructor Documentation

◆ AsynchronousCall()

sfx2::sidebar::AsynchronousCall::AsynchronousCall ( Action  aAction)

Definition at line 26 of file AsynchronousCall.cxx.

References maAction.

◆ ~AsynchronousCall()

sfx2::sidebar::AsynchronousCall::~AsynchronousCall ( )

Definition at line 32 of file AsynchronousCall.cxx.

References CancelRequest().

Member Function Documentation

◆ CancelRequest()

void sfx2::sidebar::AsynchronousCall::CancelRequest ( )

◆ DECL_LINK()

sfx2::sidebar::AsynchronousCall::DECL_LINK ( HandleUserCall  ,
void *  ,
void   
)
private

◆ RequestCall()

void sfx2::sidebar::AsynchronousCall::RequestCall ( )

◆ Sync()

void sfx2::sidebar::AsynchronousCall::Sync ( )

Definition at line 55 of file AsynchronousCall.cxx.

References CancelRequest(), maAction, and mnCallId.

Referenced by sfx2::sidebar::SidebarController::SyncUpdate().

Member Data Documentation

◆ maAction

Action sfx2::sidebar::AsynchronousCall::maAction
private

Definition at line 44 of file AsynchronousCall.hxx.

Referenced by Sync().

◆ mnCallId

ImplSVEvent* sfx2::sidebar::AsynchronousCall::mnCallId
private

Definition at line 45 of file AsynchronousCall.hxx.

Referenced by CancelRequest(), RequestCall(), and Sync().


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