玉兔远程控制
0.1.0-bate5
载入中...
搜索中...
未找到
Src
StatsAppUsage.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#pragma once
4
#include <QObject>
5
#include <QDateTime>
6
#include <QTimer>
7
#include "plugin_export.h"
8
#include "ThreadPool.h"
9
10
class
PLUGIN_EXPORT
CStatsAppUsage
:
public
QObject
11
{
12
Q_OBJECT
13
public
:
14
explicit
CStatsAppUsage
(
const
QString& szVersion = QString(),
15
const
QString& szUrl = QString(),
16
QObject *parent =
nullptr
);
17
virtual
~CStatsAppUsage
();
18
19
void
SetUrl(
const
QString& szUrl);
21
void
SetVersion(
const
QString& szVersion);
22
23
public
Q_SLOTS:
24
void
Start();
25
void
Stop();
26
27
public
Q_SLOTS:
28
void
slotTimeout();
29
Q_SIGNALS:
30
void
sigFinished();
31
32
private
:
33
void
StartOnce();
34
void
StopOnce();
35
void
StartDay();
36
void
StopDay();
37
void
RunOneDay();
38
39
void
Download(
const
QString& szFile);
40
41
private
:
42
QString m_szUrl;
43
QString m_szVersion;
44
QString m_szExt;
45
QDateTime m_tmStart;
46
bool
m_bRunOneDay;
47
QTimer m_Timer;
48
CThreadPool m_ThreadPool;
49
};
CStatsAppUsage
Definition
StatsAppUsage.h:11
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力