summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/gio/gio_inputstream.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/gio/gio_inputstream.hxx')
-rw-r--r--ucb/source/ucp/gio/gio_inputstream.hxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/ucb/source/ucp/gio/gio_inputstream.hxx b/ucb/source/ucp/gio/gio_inputstream.hxx
index d469787e1898..a0ffb1f70a74 100644
--- a/ucb/source/ucp/gio/gio_inputstream.hxx
+++ b/ucb/source/ucp/gio/gio_inputstream.hxx
@@ -22,20 +22,16 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
-#include <cppuhelper/weak.hxx>
+#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XTruncate.hpp>
-#include <com/sun/star/io/XSeekable.hpp>
-#include "gio_seekable.hxx"
+#include <gio/gio.h>
namespace gio
{
-class InputStream :
- public ::com::sun::star::io::XInputStream,
- public Seekable
+class InputStream: public cppu::WeakImplHelper1<css::io::XInputStream>
{
private:
GFileInputStream *mpStream;
@@ -44,12 +40,6 @@ public:
InputStream ( GFileInputStream *pStream );
virtual ~InputStream();
- // XInterface
- virtual com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type & type )
- throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL acquire( void ) throw () SAL_OVERRIDE { OWeakObject::acquire(); }
- virtual void SAL_CALL release( void ) throw() SAL_OVERRIDE { OWeakObject::release(); }
-
// XInputStream
virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 > & aData,
sal_Int32 nBytesToRead )