GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::Module::Integrated::VersionCheckingModule::VersionCheckTask Class Reference
Inheritance diagram for GpgFrontend::Module::Integrated::VersionCheckingModule::VersionCheckTask:
Inheritance graph
Collaboration diagram for GpgFrontend::Module::Integrated::VersionCheckingModule::VersionCheckTask:
Collaboration graph

Signals

void SignalUpgradeVersion (SoftwareVersion version)
 
- Signals inherited from GpgFrontend::Thread::Task
void SignalRun ()
 
void SignalTaskShouldEnd (int)
 
void SignalTaskEnd ()
 

Public Member Functions

 VersionCheckTask ()
 Construct a new Version Check Thread object.
 
- Public Member Functions inherited from GpgFrontend::Thread::Task
 Task (QString name)
 Construct a new Task object.
 
 Task (TaskRunnable runnable, QString name, DataObjectPtr data_object=nullptr)
 Construct a new Task object. More...
 
 Task (TaskRunnable runnable, QString name, DataObjectPtr data, TaskCallback callback)
 Construct a new Task object. More...
 
 ~Task () override
 Destroy the Task object.
 
auto GetUUID () const -> QString
 
auto GetFullID () const -> QString
 Get the Full I D object. More...
 
void HoldOnLifeCycle (bool hold_on)
 
auto GetRTN ()
 

Protected Member Functions

auto Run () -> int override
 can be overwrite by subclass More...
 
- Protected Member Functions inherited from GpgFrontend::Thread::Task
void setRTN (int rtn)
 

Private Slots

void slot_parse_latest_version_info ()
 
void slot_parse_current_version_info ()
 

Private Attributes

QByteArray latest_reply_bytes_
 
QByteArray current_reply_bytes_
 
QNetworkReply * latest_reply_ = nullptr
 latest version info reply
 
QNetworkReply * current_reply_ = nullptr
 current version info reply
 
QNetworkAccessManager * network_manager_
 
QString current_version_
 
SoftwareVersion version_
 

Additional Inherited Members

- Public Types inherited from GpgFrontend::Thread::Task
using TaskRunnable = std::function< int(DataObjectPtr)>
 
using TaskCallback = std::function< void(int, DataObjectPtr)>
 
- Public Slots inherited from GpgFrontend::Thread::Task
void SafelyRun ()
 shouldn't be overwrite by subclass
 

Member Function Documentation

◆ Run()

auto GpgFrontend::Module::Integrated::VersionCheckingModule::VersionCheckTask::Run ( ) -> int
overrideprotectedvirtual

can be overwrite by subclass

Returns
int

Reimplemented from GpgFrontend::Thread::Task.

◆ SignalUpgradeVersion

void GpgFrontend::Module::Integrated::VersionCheckingModule::VersionCheckTask::SignalUpgradeVersion ( SoftwareVersion  version)
signal
Parameters
version

The documentation for this class was generated from the following files: