예제 #1
0
파일: myth.cpp 프로젝트: adicarlo/mythtv
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;
}
예제 #2
0
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;
}