QString Myth::ProfileURL() { QString sProfileURL; HardwareProfile profile; profile.GenerateUUIDs(); sProfileURL = profile.GetProfileURL(); LOG(VB_GENERAL, LOG_NOTICE, QString("ProfileURL: %1").arg(sProfileURL)); return sProfileURL; }
bool Myth::ProfileDelete() { bool bResult = false; HardwareProfile profile; LOG(VB_GENERAL, LOG_NOTICE, "Profile Deletion..."); profile.GenerateUUIDs(); bResult = profile.DeleteProfile(); if (bResult) LOG(VB_GENERAL, LOG_NOTICE, "Profile Deleted."); return bResult; }
QString Myth::ProfileUpdated() { QString sProfileUpdate; HardwareProfile profile; profile.GenerateUUIDs(); QDateTime tUpdated; tUpdated = profile.GetLastUpdate(); sProfileUpdate = tUpdated.toString( gCoreContext->GetSetting( "DateFormat", "MM.dd.yyyy")); return sProfileUpdate; }
QString Myth::ProfileURL() { QString sProfileURL; HardwareProfile *profile = new HardwareProfile(); if (profile) { profile->GenerateUUIDs(); sProfileURL = profile->GetProfileURL(); LOG(VB_GENERAL, LOG_NOTICE, QString("ProfileURL: %1").arg(sProfileURL)); } delete profile; return sProfileURL; }
bool Myth::ProfileDelete() { bool bResult = false; HardwareProfile *profile = new HardwareProfile(); if (profile) { LOG(VB_GENERAL, LOG_NOTICE, "Profile Deletion..."); profile->GenerateUUIDs(); bResult = profile->DeleteProfile(); if (bResult) LOG(VB_GENERAL, LOG_NOTICE, "Profile Deleted."); } delete profile; return bResult; }