summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:06:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 09:51:32 -0600
commit8792ec7b2129650777b7b4bfacaa7c13d923279b (patch)
treef181e37b61533b460397cc68625fd21f46bb6393 /include/osl
parentdff29fadfe418421f2af9fd4f1dccc8a9b4cd545 (diff)
Remove visual noise from include
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/diagnose.h2
-rw-r--r--include/osl/file.hxx16
-rw-r--r--include/osl/pipe.hxx56
-rw-r--r--include/osl/socket.hxx126
4 files changed, 100 insertions, 100 deletions
diff --git a/include/osl/diagnose.h b/include/osl/diagnose.h
index e51711edd899..2d8636f5fd17 100644
--- a/include/osl/diagnose.h
+++ b/include/osl/diagnose.h
@@ -91,7 +91,7 @@
extern "C" {
#endif /* __cplusplus */
-/* //////////////////////////////////////////////////////////////////////////
+/*
Diagnostic support
*/
diff --git a/include/osl/file.hxx b/include/osl/file.hxx
index 7bff7e6f20c2..2518e5fdc656 100644
--- a/include/osl/file.hxx
+++ b/include/osl/file.hxx
@@ -38,7 +38,7 @@ namespace osl
{
-// -----------------------------------------------------------------------------
+
/** Base class for all File System specific objects.
@see Directory
@@ -319,7 +319,7 @@ public:
};
-// -----------------------------------------------------------------------------
+
/** The VolumeDevice class.
@see VolumeInfo
@@ -396,7 +396,7 @@ public:
friend class VolumeInfo;
};
-// -----------------------------------------------------------------------------
+
class Directory;
@@ -638,7 +638,7 @@ public:
friend class Directory;
};
-// -----------------------------------------------------------------------------
+
class DirectoryItem;
/** The FileStatus class.
@@ -894,7 +894,7 @@ public:
};
-// -----------------------------------------------------------------------------
+
/** The file class object provides access to file contents and attributes.
@see Directory
@@ -1429,7 +1429,7 @@ public:
friend class DirectoryItem;
};
-// -----------------------------------------------------------------------------
+
/** The directory item class object provides access to file status information.
@see FileStatus
@@ -1601,7 +1601,7 @@ public:
friend class Directory;
};
-//###########################################
+
/** Base class for observers of directory creation notifications.
@@ -1630,7 +1630,7 @@ public:
virtual void DirectoryCreated(const rtl::OUString& aDirectoryUrl) = 0;
};
-//###########################################
+
// This just an internal helper function for
// private use.
extern "C" inline void SAL_CALL onDirectoryCreated(void* pData, rtl_uString* aDirectoryUrl)
diff --git a/include/osl/pipe.hxx b/include/osl/pipe.hxx
index fe4766f5ff99..b4a8bc955eb3 100644
--- a/include/osl/pipe.hxx
+++ b/include/osl/pipe.hxx
@@ -23,22 +23,22 @@
namespace osl
{
- //______________________________________________________________________________
+
inline Pipe::Pipe()
: m_handle( 0 )
{}
- //______________________________________________________________________________
+
inline Pipe::Pipe(const ::rtl::OUString& strName, oslPipeOptions Options )
: m_handle( osl_createPipe( strName.pData, Options , 0 ) )
{}
- //______________________________________________________________________________
+
inline Pipe::Pipe(const ::rtl::OUString& strName, oslPipeOptions Options,const Security & rSecurity)
: m_handle( osl_createPipe( strName.pData, Options , rSecurity.getHandle() ) )
{}
- //______________________________________________________________________________
+
inline Pipe::Pipe(const Pipe& pipe )
: m_handle( pipe.m_handle )
{
@@ -46,12 +46,12 @@ namespace osl
osl_acquirePipe( m_handle );
}
- //______________________________________________________________________________
+
inline Pipe::Pipe( oslPipe pipe, __sal_NoAcquire )
: m_handle ( pipe )
{}
- //______________________________________________________________________________
+
inline Pipe::Pipe(oslPipe pipe)
: m_handle( pipe )
{
@@ -59,14 +59,14 @@ namespace osl
osl_acquirePipe( m_handle );
}
- //______________________________________________________________________________
+
inline Pipe::~Pipe()
{
if( m_handle )
osl_releasePipe( m_handle );
}
- //______________________________________________________________________________
+
inline bool Pipe::create( const ::rtl::OUString & strName,
oslPipeOptions Options, const Security &rSec )
{
@@ -74,20 +74,20 @@ namespace osl
return is();
}
- //______________________________________________________________________________
+
inline bool Pipe::create( const ::rtl::OUString & strName, oslPipeOptions Options )
{
*this = Pipe( strName, Options );
return is();
}
- //______________________________________________________________________________
+
inline Pipe& SAL_CALL Pipe::operator= (const Pipe& pipe)
{
*this = pipe.getHandle();
return *this;
}
- //______________________________________________________________________________
+
inline Pipe & SAL_CALL Pipe::operator=( oslPipe pipe)
{
if( pipe )
@@ -98,25 +98,25 @@ namespace osl
return *this;
}
- //______________________________________________________________________________
+
inline bool SAL_CALL Pipe::is() const
{
return m_handle != 0;
}
- //______________________________________________________________________________
+
inline bool SAL_CALL Pipe::operator==( const Pipe& rPipe ) const
{
return m_handle == rPipe.m_handle;
}
- //______________________________________________________________________________
+
inline void SAL_CALL Pipe::close()
{
osl_closePipe( m_handle );
}
- //______________________________________________________________________________
+
inline void SAL_CALL Pipe::clear()
{
if( m_handle )
@@ -126,7 +126,7 @@ namespace osl
}
}
- //______________________________________________________________________________
+
inline oslPipeError SAL_CALL Pipe::accept(StreamPipe& Connection)
{
Connection = StreamPipe( osl_acceptPipe( m_handle ), SAL_NO_ACQUIRE);
@@ -136,65 +136,65 @@ namespace osl
return getError();
}
- //______________________________________________________________________________
+
inline oslPipeError SAL_CALL Pipe::getError() const
{
return osl_getLastPipeError( 0 );
}
- //______________________________________________________________________________
+
inline oslPipe SAL_CALL Pipe::getHandle() const
{
return m_handle;
}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe(){}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe(oslPipe hPipe)
: Pipe( hPipe )
{
}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe(const ::rtl::OUString& strName, oslPipeOptions Options, const Security &rSec )
: Pipe( strName, Options , rSec )
{}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe(const ::rtl::OUString& strName, oslPipeOptions Options )
: Pipe( strName, Options )
{}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe(const StreamPipe& aPipe)
: Pipe( aPipe )
{}
- //______________________________________________________________________________
+
inline StreamPipe::StreamPipe( oslPipe pipe, __sal_NoAcquire noacquire )
: Pipe( pipe , noacquire )
{}
- //______________________________________________________________________________
+
inline sal_Int32 SAL_CALL StreamPipe::read(void* pBuffer, sal_Int32 n) const
{
return osl_readPipe( m_handle, pBuffer, n );
}
- //______________________________________________________________________________
+
inline sal_Int32 SAL_CALL StreamPipe::write(const void* pBuffer, sal_Int32 n) const
{
return osl_writePipe( m_handle, pBuffer , n );
}
- //______________________________________________________________________________
+
inline sal_Int32 SAL_CALL StreamPipe::recv(void* pBuffer, sal_Int32 BytesToRead) const
{
return osl_receivePipe( m_handle, pBuffer , BytesToRead );
}
- //______________________________________________________________________________
+
inline sal_Int32 SAL_CALL StreamPipe::send(const void* pBuffer, sal_Int32 BytesToSend) const
{
return osl_sendPipe( m_handle, pBuffer , BytesToSend );
diff --git a/include/osl/socket.hxx b/include/osl/socket.hxx
index f62f6f340a91..716f0256c52d 100644
--- a/include/osl/socket.hxx
+++ b/include/osl/socket.hxx
@@ -23,30 +23,30 @@
namespace osl
{
- //______________________________________________________________________________
+
inline SocketAddr::SocketAddr()
: m_handle( osl_createEmptySocketAddr( osl_Socket_FamilyInet ) )
{}
- //______________________________________________________________________________
+
inline SocketAddr::SocketAddr(const SocketAddr& Addr)
: m_handle( osl_copySocketAddr( Addr.m_handle ) )
{
}
- //______________________________________________________________________________
+
inline SocketAddr::SocketAddr(oslSocketAddr Addr)
: m_handle( osl_copySocketAddr( Addr ) )
{
}
- //______________________________________________________________________________
+
inline SocketAddr::SocketAddr(oslSocketAddr Addr, __osl_socket_NoCopy )
: m_handle( Addr )
{
}
- //______________________________________________________________________________
+
inline SocketAddr::SocketAddr( const ::rtl::OUString& strAddrOrHostName, sal_Int32 nPort)
: m_handle( osl_createInetSocketAddr( strAddrOrHostName.pData, nPort ) )
{
@@ -67,14 +67,14 @@ namespace osl
}
}
- //______________________________________________________________________________
+
inline SocketAddr::~SocketAddr()
{
if( m_handle )
osl_destroySocketAddr( m_handle );
}
- //______________________________________________________________________________
+
inline ::rtl::OUString SocketAddr::getHostname( oslSocketResult *pResult ) const
{
::rtl::OUString hostname;
@@ -84,13 +84,13 @@ namespace osl
return hostname;
}
- //______________________________________________________________________________
+
inline sal_Int32 SAL_CALL SocketAddr::getPort() const
{
return osl_getInetPortOfSocketAddr(m_handle);
}
- //______________________________________________________________________________
+
inline bool SAL_CALL SocketAddr::setPort( sal_Int32 nPort )
{
return osl_setInetPortOfSocketAddr(m_handle, nPort );
@@ -102,7 +102,7 @@ namespace osl
return is();
}
- //______________________________________________________________________________
+
inline bool SAL_CALL SocketAddr::setAddr( const ::rtl::ByteSequence & address )
{
return osl_setAddrOfSocketAddr( m_handle, address.getHandle() )
@@ -118,7 +118,7 @@ namespace osl
return sequence;
}
- //______________________________________________________________________________
+
inline SocketAddr & SAL_CALL SocketAddr::operator= (oslSocketAddr Addr)
{
oslSocketAddr pNewAddr = osl_copySocketAddr( Addr );
@@ -128,7 +128,7 @@ namespace osl
return *this;
}
- //______________________________________________________________________________
+
inline SocketAddr & SAL_CALL SocketAddr::operator= (const SocketAddr& Addr)
{
*this = (Addr.getHandle());
@@ -143,7 +143,7 @@ namespace osl
return *this;
}
- //______________________________________________________________________________
+
inline bool SAL_CALL SocketAddr::operator== (oslSocketAddr Addr) const
{
return osl_isEqualSocketAddr( m_handle, Addr );
@@ -154,7 +154,7 @@ namespace osl
return m_handle;
}
- //______________________________________________________________________________
+
inline bool SocketAddr::is() const
{
return m_handle != 0;
@@ -185,39 +185,39 @@ namespace osl
return osl_getServicePort( strServiceName.pData, strProtocolName.pData );
}
- //______________________________________________________________________________
+
inline Socket::Socket(oslSocketType Type,
oslAddrFamily Family,
oslProtocol Protocol)
: m_handle( osl_createSocket(Family, Type, Protocol) )
{}
- //______________________________________________________________________________
+
inline Socket::Socket( oslSocket socketHandle, __sal_NoAcquire )
: m_handle( socketHandle )
{}
- //______________________________________________________________________________
+
inline Socket::Socket( oslSocket socketHandle )
: m_handle( socketHandle )
{
osl_acquireSocket( m_handle );
}
- //______________________________________________________________________________
+
inline Socket::Socket( const Socket & socket )
: m_handle( socket.getHandle() )
{
osl_acquireSocket( m_handle );
}
- //______________________________________________________________________________
+
inline Socket::~Socket()
{
osl_releaseSocket( m_handle );
}
- //______________________________________________________________________________
+
inline Socket& Socket::operator= ( oslSocket socketHandle)
{
osl_acquireSocket( socketHandle );
@@ -226,43 +226,43 @@ namespace osl
return *this;
}
- //______________________________________________________________________________
+
inline Socket& Socket::operator= (const Socket& sock)
{
return (*this) = sock.getHandle();
}
- //______________________________________________________________________________
+
inline bool Socket::operator==( const Socket& rSocket ) const
{
return m_handle == rSocket.getHandle();
}
- //______________________________________________________________________________
+
inline bool Socket::operator==( const oslSocket socketHandle ) const
{
return m_handle == socketHandle;
}
- //______________________________________________________________________________
+
inline void Socket::shutdown( oslSocketDirection Direction )
{
osl_shutdownSocket( m_handle , Direction );
}
- //______________________________________________________________________________
+
inline void Socket::close()
{
osl_closeSocket( m_handle );
}
- //______________________________________________________________________________
+
inline void Socket::getLocalAddr( SocketAddr & addr) const
{
addr.assign( osl_getLocalAddrOfSocket( m_handle ) , SAL_NO_COPY );
}
- //______________________________________________________________________________
+
inline sal_Int32 Socket::getLocalPort() const
{
SocketAddr addr( 0 );
@@ -270,7 +270,7 @@ namespace osl
return addr.getPort();
}
- //______________________________________________________________________________
+
inline ::rtl::OUString Socket::getLocalHost() const
{
SocketAddr addr( 0 );
@@ -278,13 +278,13 @@ namespace osl
return addr.getHostname();
}
- //______________________________________________________________________________
+
inline void Socket::getPeerAddr( SocketAddr &addr ) const
{
addr.assign( osl_getPeerAddrOfSocket( m_handle ), SAL_NO_COPY );
}
- //______________________________________________________________________________
+
inline sal_Int32 Socket::getPeerPort() const
{
SocketAddr addr( 0 );
@@ -292,7 +292,7 @@ namespace osl
return addr.getPort();
}
- //______________________________________________________________________________
+
inline ::rtl::OUString Socket::getPeerHost() const
{
SocketAddr addr( 0 );
@@ -300,37 +300,37 @@ namespace osl
return addr.getHostname();
}
- //______________________________________________________________________________
+
inline bool Socket::bind(const SocketAddr& LocalInterface)
{
return osl_bindAddrToSocket( m_handle , LocalInterface.getHandle() );
}
- //______________________________________________________________________________
+
inline bool Socket::isRecvReady(const TimeValue *pTimeout ) const
{
return osl_isReceiveReady( m_handle , pTimeout );
}
- //______________________________________________________________________________
+
inline bool Socket::isSendReady(const TimeValue *pTimeout ) const
{
return osl_isSendReady( m_handle, pTimeout );
}
- //______________________________________________________________________________
+
inline bool Socket::isExceptionPending(const TimeValue *pTimeout ) const
{
return osl_isExceptionPending( m_handle, pTimeout );
}
- //______________________________________________________________________________
+
inline oslSocketType Socket::getType() const
{
return osl_getSocketType( m_handle );
}
- //______________________________________________________________________________
+
inline sal_Int32 Socket::getOption(
oslSocketOption Option,
void* pBuffer,
@@ -340,7 +340,7 @@ namespace osl
return osl_getSocketOption( m_handle, Level, Option, pBuffer , BufferLen );
}
- //______________________________________________________________________________
+
inline bool Socket::setOption( oslSocketOption Option,
void* pBuffer,
sal_uInt32 BufferLen,
@@ -349,13 +349,13 @@ namespace osl
return osl_setSocketOption( m_handle, Level, Option , pBuffer, BufferLen );
}
- //______________________________________________________________________________
+
inline bool Socket::setOption( oslSocketOption option, sal_Int32 nValue )
{
return setOption( option, &nValue, sizeof( nValue ) );
}
- //______________________________________________________________________________
+
inline sal_Int32 Socket::getOption( oslSocketOption option ) const
{
sal_Int32 n;
@@ -363,32 +363,32 @@ namespace osl
return n;
}
- //______________________________________________________________________________
+
inline bool Socket::enableNonBlockingMode( bool bNonBlockingMode)
{
return osl_enableNonBlockingMode( m_handle , bNonBlockingMode );
}
- //______________________________________________________________________________
+
inline bool Socket::isNonBlockingMode() const
{
return osl_isNonBlockingMode( m_handle );
}
- //______________________________________________________________________________
+
inline void SAL_CALL Socket::clearError() const
{
sal_Int32 err = 0;
getOption(osl_Socket_OptionError, &err, sizeof(err));
}
- //______________________________________________________________________________
+
inline oslSocketError Socket::getError() const
{
return osl_getLastSocketError( m_handle );
}
- //______________________________________________________________________________
+
inline ::rtl::OUString Socket::getErrorAsString( ) const
{
::rtl::OUString error;
@@ -396,48 +396,48 @@ namespace osl
return error;
}
- //______________________________________________________________________________
+
inline oslSocket Socket::getHandle() const
{
return m_handle;
}
- //______________________________________________________________________________
+
inline StreamSocket::StreamSocket(oslAddrFamily Family,
oslProtocol Protocol,
oslSocketType Type )
: Socket( Type, Family, Protocol )
{}
- //______________________________________________________________________________
+
inline StreamSocket::StreamSocket( oslSocket socketHandle, __sal_NoAcquire noacquire )
: Socket( socketHandle, noacquire )
{}
- //______________________________________________________________________________
+
inline StreamSocket::StreamSocket( oslSocket socketHandle )
: Socket( socketHandle )
{}
- //______________________________________________________________________________
+
inline StreamSocket::StreamSocket( const StreamSocket & socket )
: Socket( socket )
{}
- //______________________________________________________________________________
+
inline sal_Int32 StreamSocket::read(void* pBuffer, sal_uInt32 n)
{
return osl_readSocket( m_handle, pBuffer, n );
}
- //______________________________________________________________________________
+
inline sal_Int32 StreamSocket::write(const void* pBuffer, sal_uInt32 n)
{
return osl_writeSocket( m_handle, pBuffer, n );
}
- //______________________________________________________________________________
+
inline sal_Int32 StreamSocket::recv(void* pBuffer,
sal_uInt32 BytesToRead,
oslSocketMsgFlag Flag)
@@ -445,7 +445,7 @@ namespace osl
return osl_receiveSocket( m_handle, pBuffer,BytesToRead, Flag );
}
- //______________________________________________________________________________
+
inline sal_Int32 StreamSocket::send(const void* pBuffer,
sal_uInt32 BytesToSend,
oslSocketMsgFlag Flag)
@@ -453,34 +453,34 @@ namespace osl
return osl_sendSocket( m_handle, pBuffer, BytesToSend, Flag );
}
- //______________________________________________________________________________
+
inline ConnectorSocket::ConnectorSocket(oslAddrFamily Family,
oslProtocol Protocol,
oslSocketType Type)
: StreamSocket( Family, Protocol ,Type )
{}
- //______________________________________________________________________________
+
inline oslSocketResult ConnectorSocket::connect( const SocketAddr& TargetHost,
const TimeValue* pTimeout )
{
return osl_connectSocketTo( m_handle , TargetHost.getHandle(), pTimeout );
}
- //______________________________________________________________________________
+
inline AcceptorSocket::AcceptorSocket(oslAddrFamily Family ,
oslProtocol Protocol ,
oslSocketType Type )
: Socket( Type, Family, Protocol )
{}
- //______________________________________________________________________________
+
inline bool AcceptorSocket::listen(sal_Int32 MaxPendingConnections)
{
return osl_listenOnSocket( m_handle, MaxPendingConnections );
}
- //______________________________________________________________________________
+
inline oslSocketResult AcceptorSocket::acceptConnection( StreamSocket& Connection)
{
oslSocket o = osl_acceptConnectionOnSocket( m_handle, 0 );
@@ -497,7 +497,7 @@ namespace osl
return status;
}
- //______________________________________________________________________________
+
inline oslSocketResult AcceptorSocket::acceptConnection(
StreamSocket& Connection, SocketAddr & PeerAddr)
{
@@ -516,14 +516,14 @@ namespace osl
return status;
}
- //______________________________________________________________________________
+
inline DatagramSocket::DatagramSocket(oslAddrFamily Family,
oslProtocol Protocol,
oslSocketType Type)
: Socket( Type, Family, Protocol )
{}
- //______________________________________________________________________________
+
inline sal_Int32 DatagramSocket::recvFrom(void* pBuffer,
sal_uInt32 BufferSize,
SocketAddr* pSenderAddr,
@@ -545,7 +545,7 @@ namespace osl
return nByteRead;
}
- //______________________________________________________________________________
+
inline sal_Int32 DatagramSocket::sendTo( const SocketAddr& ReceiverAddr,
const void* pBuffer,
sal_uInt32 BufferSize,