merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / oooimprovement / config.hxx
blob6b77cefd99ed134c48608df847f42aee5937d4e4
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: config.hxx,v $
10 * $Revision: 1.3 $
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_CONFIG_HXX
34 #define EXTENSIONS_OOOIMPROVEMENT_CONFIG_HXX
36 #include <rtl/ustring.hxx>
37 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 namespace oooimprovement
42 class Config
44 public:
45 Config(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& sf);
46 bool getEnablingAllowed() const;
47 bool getInvitationAccepted() const;
48 bool getShowedInvitation() const;
49 ::rtl::OUString getCompleteProductname() const;
50 ::rtl::OUString getLogPath() const;
51 ::rtl::OUString getReporterEmail() const;
52 ::rtl::OUString getSetupLocale() const;
53 ::rtl::OUString getSoapId() const;
54 ::rtl::OUString getSoapUrl() const;
55 sal_Int32 getReportCount() const;
56 #ifdef FUTURE
57 sal_Int32 getFailedAttempts() const;
58 #endif
59 sal_Int32 getOfficeStartCounterdown() const;
60 sal_Int32 incrementEventCount(sal_Int32 by);
61 sal_Int32 incrementReportCount(sal_Int32 by);
62 sal_Int32 incrementFailedAttempts(sal_Int32 by);
63 sal_Int32 decrementOfficeStartCounterdown(sal_Int32 by);
64 void resetFailedAttempts();
65 void giveupUploading();
67 private:
68 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_ServiceFactory;
71 #endif