GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / desktop / source / migration / services / basicmigration.hxx
blob5169c6eca10071a137f85fe586eca87f266e3980
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_DESKTOP_SOURCE_MIGRATION_SERVICES_BASICMIGRATION_HXX
21 #define INCLUDED_DESKTOP_SOURCE_MIGRATION_SERVICES_BASICMIGRATION_HXX
23 #include "misc.hxx"
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/lang/XInitialization.hpp>
26 #include <com/sun/star/task/XJob.hpp>
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <cppuhelper/implbase3.hxx>
29 #include <osl/mutex.hxx>
30 #include <osl/file.hxx>
33 class INetURLObject;
36 //.........................................................................
37 namespace migration
39 //.........................................................................
41 OUString SAL_CALL BasicMigration_getImplementationName();
42 ::com::sun::star::uno::Sequence< OUString > SAL_CALL BasicMigration_getSupportedServiceNames();
43 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL BasicMigration_create(
44 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext )
45 SAL_THROW( (::com::sun::star::uno::Exception) );
48 // =============================================================================
49 // class BasicMigration
50 // =============================================================================
52 typedef ::cppu::WeakImplHelper3<
53 ::com::sun::star::lang::XServiceInfo,
54 ::com::sun::star::lang::XInitialization,
55 ::com::sun::star::task::XJob > BasicMigration_BASE;
57 class BasicMigration : public BasicMigration_BASE
59 private:
60 ::osl::Mutex m_aMutex;
61 OUString m_sSourceDir;
63 TStringVectorPtr getFiles( const OUString& rBaseURL ) const;
64 ::osl::FileBase::RC checkAndCreateDirectory( INetURLObject& rDirURL );
65 void copyFiles();
67 public:
68 BasicMigration();
69 virtual ~BasicMigration();
71 // XServiceInfo
72 virtual OUString SAL_CALL getImplementationName()
73 throw (::com::sun::star::uno::RuntimeException);
74 virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName )
75 throw (::com::sun::star::uno::RuntimeException);
76 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
77 throw (::com::sun::star::uno::RuntimeException);
79 // XInitialization
80 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
81 throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
83 // XJob
84 virtual ::com::sun::star::uno::Any SAL_CALL execute(
85 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Arguments )
86 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::Exception,
87 ::com::sun::star::uno::RuntimeException);
90 //.........................................................................
91 } // namespace migration
92 //.........................................................................
94 #endif // INCLUDED_DESKTOP_SOURCE_MIGRATION_SERVICES_BASICMIGRATION_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */