blob: 2efda8c23e4105557b5726e94c17dceca57f6ba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2009-2021 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_MUMBLE_USAGE_H_
#define MUMBLE_MUMBLE_USAGE_H_
#include <QtCore/QBuffer>
#include <QtCore/QDataStream>
#include <QtCore/QObject>
class ClientUser;
/// This class is used to send usage information to the mumble.info website.
///
/// During instantiation of this class a ten minute timer will be started. After that
/// the object's registerUsage function will be called that sends the respective
/// information to the server.
class Usage : public QObject {
Q_OBJECT
protected:
QBuffer qbReport;
QDataStream qdsReport;
public:
Usage(QObject *p = nullptr);
public slots:
/// Performs the actual registration.
void registerUsage();
};
#endif
|