update dev300-m58
[ooovba.git] / extensions / source / oooimprovement / onlogrotate_job.hxx
blobd76059c4394edbc4fba5e86c46ba78fa5ae5628b
1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2008 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * $RCSfile: onlogrotate_job.hxx,v $
10 * $Revision: 1.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
28 ************************************************************************/
30 // MARKER(update_precomp.py): autogen include statement, do not remove
33 #ifndef EXTENSIONS_OOOIMPROVEMENT_ONLOGROTATEJOB_HXX
34 #define EXTENSIONS_OOOIMPROVEMENT_ONLOGROTATEJOB_HXX
36 #include <com/sun/star/task/XAsyncJob.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <com/sun/star/uno/XComponentContext.hpp>
39 #include <cppuhelper/implbase2.hxx>
42 namespace oooimprovement
44 #ifdef css
45 #error css defined globally
46 #endif
47 #define css ::com::sun::star
48 class OnLogRotateJob : public ::cppu::WeakImplHelper2<
49 ::com::sun::star::task::XAsyncJob,
50 ::com::sun::star::lang::XServiceInfo>
52 public:
53 // XServiceInfo - static version
54 static ::rtl::OUString SAL_CALL getImplementationName_static();
55 static ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames_static();
56 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> SAL_CALL Create(
57 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>& context);
59 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> SAL_CALL Create(
60 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& sf);
62 protected:
63 OnLogRotateJob(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>& context);
64 OnLogRotateJob(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& sm);
65 virtual ~OnLogRotateJob();
67 // XAsyncJob
68 virtual void SAL_CALL executeAsync(
69 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue>& args,
70 const ::com::sun::star::uno::Reference< ::com::sun::star::task::XJobListener>& listener)
71 throw(::com::sun::star::uno::RuntimeException);
73 // XServiceInfo
74 virtual ::rtl::OUString SAL_CALL getImplementationName()
75 throw(::com::sun::star::uno::RuntimeException);
76 virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& service_name)
77 throw(::com::sun::star::uno::RuntimeException);
78 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames()
79 throw(::com::sun::star::uno::RuntimeException);
81 private:
82 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_ServiceFactory;
84 #undef css
86 #endif