1 /************************************************************************* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * Copyright 2000, 2010 Oracle and/or its affiliates. 5 * 6 * OpenOffice.org - a multi-platform office productivity suite 7 * 8 * This file is part of OpenOffice.org. 9 * 10 * OpenOffice.org is free software: you can redistribute it and/or modify 11 * it under the terms of the GNU Lesser General Public License version 3 12 * only, as published by the Free Software Foundation. 13 * 14 * OpenOffice.org is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Lesser General Public License version 3 for more details 18 * (a copy is included in the LICENSE file that accompanied this code). 19 * 20 * You should have received a copy of the GNU Lesser General Public License 21 * version 3 along with OpenOffice.org. If not, see 22 * <http://www.openoffice.org/license.html> 23 * for a copy of the LGPLv3 License. 24 * 25 ************************************************************************/ 26 27 // MARKER(update_precomp.py): autogen include statement, do not remove 28 29 30 #ifndef EXTENSIONS_OOOIMPROVEMENT_CONFIG_HXX 31 #define EXTENSIONS_OOOIMPROVEMENT_CONFIG_HXX 32 33 #include <rtl/ustring.hxx> 34 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 35 36 37 namespace oooimprovement 38 { 39 class Config 40 { 41 public: 42 Config(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& sf); 43 bool getEnablingAllowed() const; 44 bool getInvitationAccepted() const; 45 bool getShowedInvitation() const; 46 ::rtl::OUString getCompleteProductname() const; 47 ::rtl::OUString getLogPath() const; 48 ::rtl::OUString getReporterEmail() const; 49 ::rtl::OUString getSetupLocale() const; 50 ::rtl::OUString getSoapId() const; 51 ::rtl::OUString getSoapUrl() const; 52 sal_Int32 getReportCount() const; 53 #ifdef FUTURE 54 sal_Int32 getFailedAttempts() const; 55 #endif 56 sal_Int32 getOfficeStartCounterdown() const; 57 sal_Int32 incrementEventCount(sal_Int32 by); 58 sal_Int32 incrementReportCount(sal_Int32 by); 59 sal_Int32 incrementFailedAttempts(sal_Int32 by); 60 sal_Int32 decrementOfficeStartCounterdown(sal_Int32 by); 61 void resetFailedAttempts(); 62 void giveupUploading(); 63 64 private: 65 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_ServiceFactory; 66 }; 67 } 68 #endif 69