MythTV  master
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
HardwareProfile Class Reference

#include <hardwareprofile.h>

Inheritance diagram for HardwareProfile:
Inheritance graph
[legend]
Collaboration diagram for HardwareProfile:
Collaboration graph
[legend]

Public Member Functions

 HardwareProfile ()
 
 ~HardwareProfile (void)=default
 
void Enable (void)
 
void GenerateUUIDs (void)
 
QString GetPublicUUIDFromFile (void) const
 
bool NeedsUpdate (void) const
 
bool SubmitProfile (bool updateTime=true)
 
bool DeleteProfile (void)
 
QString GetPublicUUID (void) const
 
QString GetPrivateUUID (void) const
 
QDateTime GetLastUpdate (void) const
 
QString GetProfileURL (void) const
 

Static Public Member Functions

static void Disable (void)
 
static QString GetPrivateUUIDFromFile (void)
 
static bool WritePrivateUUIDToFile (const QString &uuid)
 
static QString GetAdminPasswordFromFile (void)
 
static QString GetHardwareProfile (void)
 

Private Attributes

bool m_enabled {false}
 
QString m_uuid
 
QString m_publicuuid
 
QDateTime m_lastUpdate
 
QString m_hardwareProfile
 

Detailed Description

Definition at line 16 of file hardwareprofile.h.

Constructor & Destructor Documentation

◆ HardwareProfile()

HardwareProfile::HardwareProfile ( )

Definition at line 21 of file hardwareprofile.cpp.

◆ ~HardwareProfile()

HardwareProfile::~HardwareProfile ( void  )
default

Member Function Documentation

◆ Enable()

void HardwareProfile::Enable ( void  )

Definition at line 40 of file hardwareprofile.cpp.

Referenced by SubmitProfile().

◆ Disable()

void HardwareProfile::Disable ( void  )
static

Definition at line 48 of file hardwareprofile.cpp.

Referenced by DeleteProfile().

◆ GenerateUUIDs()

void HardwareProfile::GenerateUUIDs ( void  )

Definition at line 53 of file hardwareprofile.cpp.

Referenced by GeneralSetupWizard::loadData(), and SubmitProfile().

◆ GetPrivateUUIDFromFile()

QString HardwareProfile::GetPrivateUUIDFromFile ( void  )
static

Definition at line 99 of file hardwareprofile.cpp.

Referenced by GenerateUUIDs().

◆ WritePrivateUUIDToFile()

bool HardwareProfile::WritePrivateUUIDToFile ( const QString &  uuid)
static

Definition at line 160 of file hardwareprofile.cpp.

Referenced by GenerateUUIDs().

◆ GetPublicUUIDFromFile()

QString HardwareProfile::GetPublicUUIDFromFile ( void  ) const

Definition at line 115 of file hardwareprofile.cpp.

Referenced by GenerateUUIDs().

◆ GetAdminPasswordFromFile()

QString HardwareProfile::GetAdminPasswordFromFile ( void  )
static

◆ NeedsUpdate()

bool HardwareProfile::NeedsUpdate ( void  ) const

Definition at line 174 of file hardwareprofile.cpp.

◆ SubmitProfile()

bool HardwareProfile::SubmitProfile ( bool  updateTime = true)

◆ DeleteProfile()

bool HardwareProfile::DeleteProfile ( void  )

Definition at line 226 of file hardwareprofile.cpp.

Referenced by GeneralSetupWizard::OnDeletePromptReturn().

◆ GetPublicUUID()

QString HardwareProfile::GetPublicUUID ( void  ) const
inline

Definition at line 38 of file hardwareprofile.h.

Referenced by SubmitProfile().

◆ GetPrivateUUID()

QString HardwareProfile::GetPrivateUUID ( void  ) const
inline

Definition at line 39 of file hardwareprofile.h.

Referenced by SubmitProfile().

◆ GetLastUpdate()

QDateTime HardwareProfile::GetLastUpdate ( void  ) const
inline

Definition at line 40 of file hardwareprofile.h.

◆ GetProfileURL()

QString HardwareProfile::GetProfileURL ( void  ) const

◆ GetHardwareProfile()

QString HardwareProfile::GetHardwareProfile ( void  )
static

Definition at line 262 of file hardwareprofile.cpp.

Referenced by Myth::ProfileText().

Member Data Documentation

◆ m_enabled

bool HardwareProfile::m_enabled {false}
private

Definition at line 45 of file hardwareprofile.h.

Referenced by HardwareProfile(), and SubmitProfile().

◆ m_uuid

QString HardwareProfile::m_uuid
private

◆ m_publicuuid

QString HardwareProfile::m_publicuuid
private

Definition at line 47 of file hardwareprofile.h.

Referenced by GenerateUUIDs(), GetProfileURL(), and HardwareProfile().

◆ m_lastUpdate

QDateTime HardwareProfile::m_lastUpdate
private

Definition at line 48 of file hardwareprofile.h.

Referenced by HardwareProfile(), and NeedsUpdate().

◆ m_hardwareProfile

QString HardwareProfile::m_hardwareProfile
private

Definition at line 49 of file hardwareprofile.h.

Referenced by GenerateUUIDs(), and SubmitProfile().


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