summaryrefslogtreecommitdiff
path: root/io/source/acceptor/acc_socket.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-23 10:44:22 +0200
committerNoel Grandin <noel@peralex.com>2015-10-23 12:55:52 +0200
commit63cec254e7ce54c7f919442002187638ff5dfed1 (patch)
tree1440194d01dd2ef863a304ac7b1576d9f12276b1 /io/source/acceptor/acc_socket.cxx
parente60872a5894ee86b0db455d97c8373f995fc9612 (diff)
com::sun::star->css in io
Change-Id: I4a0cd4b29db91584c23148d659846c71b90b0d65
Diffstat (limited to 'io/source/acceptor/acc_socket.cxx')
-rw-r--r--io/source/acceptor/acc_socket.cxx64
1 files changed, 32 insertions, 32 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index e5bdf63daf4d..a5321eb88d80 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -40,7 +40,7 @@ namespace io_acceptor {
template<class T>
struct ReferenceHash
{
- size_t operator () (const ::com::sun::star::uno::Reference<T> & ref) const
+ size_t operator () (const css::uno::Reference<T> & ref) const
{
return reinterpret_cast<size_t>(ref.get());
}
@@ -49,50 +49,50 @@ namespace io_acceptor {
template<class T>
struct ReferenceEqual
{
- bool operator () (const ::com::sun::star::uno::Reference<T> & op1,
- const ::com::sun::star::uno::Reference<T> & op2) const
+ bool operator () (const css::uno::Reference<T> & op1,
+ const css::uno::Reference<T> & op2) const
{
return op1.get() == op2.get();
}
};
- typedef std::unordered_set< ::com::sun::star::uno::Reference< ::com::sun::star::io::XStreamListener>,
- ReferenceHash< ::com::sun::star::io::XStreamListener>,
- ReferenceEqual< ::com::sun::star::io::XStreamListener> >
+ typedef std::unordered_set< css::uno::Reference< css::io::XStreamListener>,
+ ReferenceHash< css::io::XStreamListener>,
+ ReferenceEqual< css::io::XStreamListener> >
XStreamListener_hash_set;
class SocketConnection : public ::cppu::WeakImplHelper<
- ::com::sun::star::connection::XConnection,
- ::com::sun::star::connection::XConnectionBroadcaster>
+ css::connection::XConnection,
+ css::connection::XConnectionBroadcaster>
{
public:
SocketConnection( const OUString & sConnectionDescription );
virtual ~SocketConnection();
- virtual sal_Int32 SAL_CALL read( ::com::sun::star::uno::Sequence< sal_Int8 >& aReadBytes,
+ virtual sal_Int32 SAL_CALL read( css::uno::Sequence< sal_Int8 >& aReadBytes,
sal_Int32 nBytesToRead )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL write( const ::com::sun::star::uno::Sequence< sal_Int8 >& aData )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL write( const css::uno::Sequence< sal_Int8 >& aData )
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL flush( ) throw(
- ::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ css::io::IOException,
+ css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL close( )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getDescription( )
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ throw(css::uno::RuntimeException, std::exception) override;
// XConnectionBroadcaster
- virtual void SAL_CALL addStreamListener(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStreamListener>& aListener)
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStreamListener(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStreamListener>& aListener)
- throw(::com::sun::star::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addStreamListener(const css::uno::Reference< css::io::XStreamListener>& aListener)
+ throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeStreamListener(const css::uno::Reference< css::io::XStreamListener>& aListener)
+ throw(css::uno::RuntimeException, std::exception) override;
public:
void completeConnectionString();
@@ -190,8 +190,8 @@ namespace io_acceptor {
}
sal_Int32 SocketConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception)
{
if( ! m_nStatus )
{
@@ -238,8 +238,8 @@ namespace io_acceptor {
}
void SocketConnection::write( const Sequence < sal_Int8 > &seq )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception)
{
if( ! m_nStatus )
{
@@ -274,15 +274,15 @@ namespace io_acceptor {
}
void SocketConnection::flush( )
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception)
{
}
void SocketConnection::close()
- throw(::com::sun::star::io::IOException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw(css::io::IOException,
+ css::uno::RuntimeException, std::exception)
{
// ensure close is called only once
if( 1 == osl_atomic_increment( (&m_nStatus) ) )
@@ -293,7 +293,7 @@ namespace io_acceptor {
}
OUString SocketConnection::getDescription()
- throw( ::com::sun::star::uno::RuntimeException, std::exception)
+ throw( css::uno::RuntimeException, std::exception)
{
return m_sDescription;
}