Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_UCB_XSIMPLEFILEACCESS_HDL
2 : #define INCLUDED_COM_SUN_STAR_UCB_XSIMPLEFILEACCESS_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
7 : namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } }
8 : namespace com { namespace sun { namespace star { namespace io { class XStream; } } } }
9 : namespace com { namespace sun { namespace star { namespace task { class XInteractionHandler; } } } }
10 : #include "com/sun/star/ucb/CommandAbortedException.hdl"
11 : #include "com/sun/star/uno/Exception.hdl"
12 : #include "com/sun/star/uno/RuntimeException.hdl"
13 : #include "com/sun/star/uno/XInterface.hdl"
14 : #include "com/sun/star/util/DateTime.hdl"
15 : #include "com/sun/star/uno/Reference.h"
16 : #include "com/sun/star/uno/Sequence.h"
17 : #include "cppu/macros.hxx"
18 : #include "rtl/ustring.hxx"
19 : #include "sal/types.h"
20 :
21 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
22 :
23 : namespace com { namespace sun { namespace star { namespace ucb {
24 :
25 3465 : class SAL_NO_VTABLE XSimpleFileAccess : public css::uno::XInterface
26 : {
27 : public:
28 :
29 : // Methods
30 : virtual void SAL_CALL copy( const ::rtl::OUString& SourceURL, const ::rtl::OUString& DestURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL move( const ::rtl::OUString& SourceURL, const ::rtl::OUString& DestURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL kill( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::sal_Bool SAL_CALL isFolder( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::sal_Bool SAL_CALL isReadOnly( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL setReadOnly( const ::rtl::OUString& FileURL, ::sal_Bool bReadOnly ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL createFolder( const ::rtl::OUString& NewFolderURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Int32 SAL_CALL getSize( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual ::rtl::OUString SAL_CALL getContentType( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual css::util::DateTime SAL_CALL getDateTimeModified( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getFolderContents( const ::rtl::OUString& FolderURL, ::sal_Bool bIncludeFolders ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::sal_Bool SAL_CALL exists( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual ::com::sun::star::uno::Reference< css::io::XInputStream > SAL_CALL openFileRead( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Reference< css::io::XOutputStream > SAL_CALL openFileWrite( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::com::sun::star::uno::Reference< css::io::XStream > SAL_CALL openFileReadWrite( const ::rtl::OUString& FileURL ) /* throw (css::ucb::CommandAbortedException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL setInteractionHandler( const ::com::sun::star::uno::Reference< css::task::XInteractionHandler >& Handler ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 2595 : ~XSimpleFileAccess() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::ucb::XSimpleFileAccess const *);
55 : } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::ucb::XSimpleFileAccess > *) SAL_THROW(());
58 :
59 : #endif
|