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 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)
 

Private Types

enum  State {
  State::Starting,
  State::RequestsEnabled,
  State::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 77 of file officeipcthread.hxx.

Member Enumeration Documentation

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

Definition at line 86 of file officeipcthread.hxx.

Enumerator
IPC_STATUS_OK 
IPC_STATUS_2ND_OFFICE 
IPC_STATUS_PIPE_ERROR 
IPC_STATUS_BOOTSTRAP_ERROR 

Definition at line 110 of file officeipcthread.hxx.

Constructor & Destructor Documentation

desktop::RequestHandler::RequestHandler ( )
private

Definition at line 895 of file officeipcthread.cxx.

Referenced by Enable().

desktop::RequestHandler::~RequestHandler ( )
overrideprivatevirtual

Definition at line 901 of file officeipcthread.cxx.

References mIpcThread.

Member Function Documentation

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

Definition at line 133 of file officeipcthread.hxx.

References RequestsEnabled.

bool desktop::RequestHandler::AreRequestsPending ( )
static
void desktop::RequestHandler::Disable ( )
static
RequestHandler::Status desktop::RequestHandler::Enable ( bool  ipc)
static
void desktop::RequestHandler::EnableRequests ( )
static
bool desktop::RequestHandler::ExecuteCmdLineRequests ( ProcessDocumentsRequest aRequest,
bool  noTerminate 
)
static

Definition at line 1310 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().

osl::Mutex & desktop::RequestHandler::GetMutex ( )
staticprivate
void desktop::RequestHandler::RequestsCompleted ( )
static
void desktop::RequestHandler::SetDowning ( )
static
void desktop::RequestHandler::SetReady ( bool  bIsReady)
static

Definition at line 906 of file officeipcthread.cxx.

References GetMutex(), and pGlobal.

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

void desktop::RequestHandler::WaitForReady ( )
static

Definition at line 918 of file officeipcthread.cxx.

References GetMutex(), pGlobal, and t.

Referenced by lo_initialize().

Member Data Documentation

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

Definition at line 101 of file officeipcthread.hxx.

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

friend desktop::RequestHandler::DbusIpcThread
private

Definition at line 81 of file officeipcthread.hxx.

friend desktop::RequestHandler::IpcThread
private

Definition at line 79 of file officeipcthread.hxx.

bool desktop::RequestHandler::mbSuccess = false
private
rtl::Reference<IpcThread> desktop::RequestHandler::mIpcThread
private

Definition at line 91 of file officeipcthread.hxx.

Referenced by ~RequestHandler().

int desktop::RequestHandler::mnPendingRequests
private

Definition at line 89 of file officeipcthread.hxx.

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

Definition at line 90 of file officeipcthread.hxx.

State desktop::RequestHandler::mState
private

Definition at line 88 of file officeipcthread.hxx.

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

rtl::Reference< RequestHandler > desktop::RequestHandler::pGlobal
staticprivate
friend desktop::RequestHandler::PipeIpcThread
private

Definition at line 80 of file officeipcthread.hxx.

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


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