1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 
26 
27 #ifndef EXTENSIONS_OOOIMPROVEMENT_CONFIG_HXX
28 #define EXTENSIONS_OOOIMPROVEMENT_CONFIG_HXX
29 
30 #include <rtl/ustring.hxx>
31 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
32 
33 
34 namespace oooimprovement
35 {
36     class Config
37     {
38         public:
39             Config(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& sf);
40             bool getEnablingAllowed() const;
41             bool getInvitationAccepted() const;
42             bool getShowedInvitation() const;
43             ::rtl::OUString getCompleteProductname() const;
44             ::rtl::OUString getLogPath() const;
45             ::rtl::OUString getReporterEmail() const;
46             ::rtl::OUString getSetupLocale() const;
47             ::rtl::OUString getSoapId() const;
48             ::rtl::OUString getSoapUrl() const;
49             sal_Int32 getReportCount() const;
50 #ifdef FUTURE
51             sal_Int32 getFailedAttempts() const;
52 #endif
53             sal_Int32 getOfficeStartCounterdown() const;
54             sal_Int32 incrementEventCount(sal_Int32 by);
55             sal_Int32 incrementReportCount(sal_Int32 by);
56             sal_Int32 incrementFailedAttempts(sal_Int32 by);
57             sal_Int32 decrementOfficeStartCounterdown(sal_Int32 by);
58             void resetFailedAttempts();
59             void giveupUploading();
60 
61         private:
62             ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_ServiceFactory;
63     };
64 }
65 #endif
66