1 //////////////////////////////////////////////////////////////////////
2 //
3 // BeeBEEP Copyright (C) 2010-2021 Marco Mastroddi
4 //
5 // BeeBEEP is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published
7 // by the Free Software Foundation, either version 3 of the License,
8 // or (at your option) any later version.
9 //
10 // BeeBEEP is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with BeeBEEP. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // Author: Marco Mastroddi <marco.mastroddi(AT)gmail.com>
19 //
20 // $Id: GAnalytics.h 1455 2020-12-23 10:17:53Z mastroddi $
21 //
22 //////////////////////////////////////////////////////////////////////
23 
24 #ifndef BEEBEEP_GANALYTICS_H
25 #define BEEBEEP_GANALYTICS_H
26 
27 #include "Config.h"
28 
29 
30 class GAnalytics: public QObject
31 {
32   Q_OBJECT
33 
34 public:
35   explicit GAnalytics( QObject* parent = Q_NULLPTR );
36 
37 public slots:
38   void doPost();
39 
40 signals:
41   void jobFinished();
42 
43 protected slots:
44   void onReplyFinished( QNetworkReply* );
45   void onSslErrors( const QList<QSslError>& );
46 
47 private:
48   QNetworkAccessManager* mp_manager;
49 
50 };
51 
52 #endif // BEEBEEP_DOWNLOADER_H
53