LibreOffice Module desktop (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
desktop::RequestHandler Class Reference

#include <officeipcthread.hxx>

Inheritance diagram for desktop::RequestHandler:
[legend]
Collaboration diagram for desktop::RequestHandler:
[legend]

Public Types

enum  Status {
  IPC_STATUS_OK ,
  IPC_STATUS_2ND_OFFICE ,
  IPC_STATUS_PIPE_ERROR ,
  IPC_STATUS_BOOTSTRAP_ERROR
}
 

Public Member Functions

bool AreRequestsEnabled () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static void SetDowning ()
 
static void EnableRequests ()
 
static bool AreRequestsPending ()
 
static void RequestsCompleted ()
 
static bool ExecuteCmdLineRequests (ProcessDocumentsRequest &, bool noTerminate)
 
static Status Enable (bool ipc)
 
static void Disable ()
 
static void SetReady (bool bIsReady)
 
static void WaitForReady ()
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator 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)
 

Private Types

enum class  State {
  Starting ,
  RequestsEnabled ,
  Downing
}
 

Private Member Functions

 RequestHandler ()
 
virtual ~RequestHandler () override
 

Static Private Member Functions

::osl::Mutex & GetMutex ()
 

Private Attributes

friend IpcThread
 
friend PipeIpcThread
 
friend DbusIpcThread
 
State mState
 
int mnPendingRequests
 
rtl::Reference< DispatchWatchermpDispatchWatcher
 
rtl::Reference< IpcThreadmIpcThread
 
::osl::Condition cProcessed
 
bool mbSuccess = false
 
::osl::Condition cReady
 

Static Private Attributes

static rtl::Reference< RequestHandlerpGlobal
 

Additional Inherited Members

- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 75 of file officeipcthread.hxx.

Member Enumeration Documentation

◆ State

enum class desktop::RequestHandler::State
strongprivate
Enumerator
Starting 
RequestsEnabled 
Downing 

Definition at line 84 of file officeipcthread.hxx.

◆ Status

Enumerator
IPC_STATUS_OK 
IPC_STATUS_2ND_OFFICE 
IPC_STATUS_PIPE_ERROR 
IPC_STATUS_BOOTSTRAP_ERROR 

Definition at line 108 of file officeipcthread.hxx.

Constructor & Destructor Documentation

◆ RequestHandler()

desktop::RequestHandler::RequestHandler ( )
private

Definition at line 887 of file officeipcthread.cxx.

Referenced by Enable().

◆ ~RequestHandler()

desktop::RequestHandler::~RequestHandler ( )
overrideprivatevirtual

Definition at line 893 of file officeipcthread.cxx.

References mIpcThread.

Member Function Documentation

◆ AreRequestsEnabled()

bool desktop::RequestHandler::AreRequestsEnabled ( ) const
inline

Definition at line 131 of file officeipcthread.hxx.

References mState, and RequestsEnabled.

◆ AreRequestsPending()

bool desktop::RequestHandler::AreRequestsPending ( )
static

◆ Disable()

void desktop::RequestHandler::Disable ( )
static

◆ Enable()

RequestHandler::Status desktop::RequestHandler::Enable ( bool  ipc)
static

◆ EnableRequests()

void desktop::RequestHandler::EnableRequests ( )
static

◆ ExecuteCmdLineRequests()

bool desktop::RequestHandler::ExecuteCmdLineRequests ( ProcessDocumentsRequest aRequest,
bool  noTerminate 
)
static

Definition at line 1298 of file officeipcthread.cxx.

References desktop::ProcessDocumentsRequest::aConversionList, desktop::ProcessDocumentsRequest::aConversionOut, desktop::ProcessDocumentsRequest::aConversionParams, desktop::ProcessDocumentsRequest::aCwdUrl, desktop::AddConversionsToDispatchList(), desktop::AddToDispatchList(), desktop::ProcessDocumentsRequest::aForceNewList, desktop::ProcessDocumentsRequest::aForceOpenList, desktop::ProcessDocumentsRequest::aImageConversionType, desktop::ProcessDocumentsRequest::aInFilter, desktop::ProcessDocumentsRequest::aModule, desktop::ProcessDocumentsRequest::aOpenList, ApplicationEvent::Appear, desktop::ProcessDocumentsRequest::aPrinterName, desktop::ProcessDocumentsRequest::aPrintList, desktop::ProcessDocumentsRequest::aPrintToList, desktop::ProcessDocumentsRequest::aStartList, desktop::ProcessDocumentsRequest::aViewList, desktop::ProcessDocumentsRequest::bScriptCat, desktop::ProcessDocumentsRequest::bTextCat, GetMutex(), desktop::ImplPostForeignAppEvent(), desktop::ProcessDocumentsRequest::mpbSuccess, desktop::ProcessDocumentsRequest::pcProcessed, pGlobal, desktop::DispatchWatcher::REQUEST_FORCENEW, desktop::DispatchWatcher::REQUEST_FORCEOPEN, desktop::DispatchWatcher::REQUEST_INFILTER, desktop::DispatchWatcher::REQUEST_OPEN, desktop::DispatchWatcher::REQUEST_PRINT, desktop::DispatchWatcher::REQUEST_PRINTTO, desktop::DispatchWatcher::REQUEST_START, and desktop::DispatchWatcher::REQUEST_VIEW.

Referenced by EnableRequests(), desktop::Desktop::HandleAppEvent(), desktop::IMPL_STATIC_LINK(), desktop::Desktop::OpenClients(), and desktop::Desktop::OpenDefault().

◆ GetMutex()

osl::Mutex & desktop::RequestHandler::GetMutex ( )
staticprivate

◆ RequestsCompleted()

void desktop::RequestHandler::RequestsCompleted ( )
static

◆ SetDowning()

void desktop::RequestHandler::SetDowning ( )
static

Definition at line 646 of file officeipcthread.cxx.

References Downing, GetMutex(), and pGlobal.

Referenced by desktop::RequestHandlerController::queryTermination().

◆ SetReady()

void desktop::RequestHandler::SetReady ( bool  bIsReady)
static

Definition at line 898 of file officeipcthread.cxx.

References GetMutex(), and pGlobal.

Referenced by desktop::IMPL_LINK_NOARG(), and lo_initialize().

◆ WaitForReady()

void desktop::RequestHandler::WaitForReady ( )
static

Definition at line 910 of file officeipcthread.cxx.

References GetMutex(), pGlobal, and t.

Referenced by lo_initialize().

Member Data Documentation

◆ cProcessed

::osl::Condition desktop::RequestHandler::cProcessed
private

◆ cReady

::osl::Condition desktop::RequestHandler::cReady
private

Definition at line 99 of file officeipcthread.hxx.

Referenced by desktop::PipeIpcThread::execute().

◆ DbusIpcThread

friend desktop::RequestHandler::DbusIpcThread
private

Definition at line 79 of file officeipcthread.hxx.

◆ IpcThread

friend desktop::RequestHandler::IpcThread
private

Definition at line 77 of file officeipcthread.hxx.

◆ mbSuccess

bool desktop::RequestHandler::mbSuccess = false
private

◆ mIpcThread

rtl::Reference<IpcThread> desktop::RequestHandler::mIpcThread
private

Definition at line 89 of file officeipcthread.hxx.

Referenced by ~RequestHandler().

◆ mnPendingRequests

int desktop::RequestHandler::mnPendingRequests
private

Definition at line 87 of file officeipcthread.hxx.

◆ mpDispatchWatcher

rtl::Reference<DispatchWatcher> desktop::RequestHandler::mpDispatchWatcher
private

Definition at line 88 of file officeipcthread.hxx.

◆ mState

State desktop::RequestHandler::mState
private

Definition at line 86 of file officeipcthread.hxx.

Referenced by AreRequestsEnabled(), and desktop::PipeIpcThread::execute().

◆ pGlobal

rtl::Reference< RequestHandler > desktop::RequestHandler::pGlobal
staticprivate

◆ PipeIpcThread

friend desktop::RequestHandler::PipeIpcThread
private

Definition at line 78 of file officeipcthread.hxx.


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