diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-16 10:45:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-16 14:21:26 +0100 |
commit | e9e61809ea31b30f50d39dda45e54bed6f0e4742 (patch) | |
tree | 4da2b3bc056956880e6bea7717b6eea74a0281ab /framework/inc | |
parent | fc44b7104cacc5ec76d2a0b560a9f6bbc5c252b5 (diff) |
Simplify TransactionManager
Change-Id: I51d1969f9f88d9e29fc081fd54df365578900126
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/threadhelp/transactionmanager.hxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/framework/inc/threadhelp/transactionmanager.hxx b/framework/inc/threadhelp/transactionmanager.hxx index cc9e0b1ea549..e4beb04741d4 100644 --- a/framework/inc/threadhelp/transactionmanager.hxx +++ b/framework/inc/threadhelp/transactionmanager.hxx @@ -52,18 +52,6 @@ enum EWorkingMode }; /*-************************************************************************************************************ - @descr If a request was refused by a transaction manager (internal state different E_WORK ...) - user can check the reason by using this enum values. -*//*-*************************************************************************************************************/ -enum ERejectReason -{ - E_UNINITIALIZED , - E_NOREASON , - E_INCLOSE , - E_CLOSED -}; - -/*-************************************************************************************************************ @descr A transaction object should support throwing exceptions if user used it at wrong working mode. e.g. We can throw a DisposedException if user try to work and our mode is E_CLOSE! But sometimes he doesn't need this feature - will handle it by himself. @@ -120,18 +108,9 @@ class FWI_DLLPUBLIC TransactionManager: private boost::noncopyable ~TransactionManager ( ); void setWorkingMode ( EWorkingMode eMode ); EWorkingMode getWorkingMode ( ) const; - bool isCallRejected ( ERejectReason& eReason ) const; void registerTransaction ( EExceptionMode eMode ) throw( css::uno::RuntimeException, css::lang::DisposedException ); void unregisterTransaction ( ) throw( css::uno::RuntimeException, css::lang::DisposedException ); - // private methods - - private: - - void impl_throwExceptions( EExceptionMode eMode, ERejectReason eReason ) const throw( css::uno::RuntimeException, css::lang::DisposedException ); - - // private member - private: mutable ::osl::Mutex m_aAccessLock; /// regulate access on internal member of this instance |