Exemple #1
0
const QStringList ASI::GetProfile(CRef& cref, ProfileType type)
{
    QStringList list;

    Component* pComponent = cref.GetInstance();
    if (pComponent != NULL)
    {
        list = pComponent->GetProfile(type);
        cref.ReleaseInstance();
    }

    return list;
}
Exemple #2
0
void ASI::GetMenus(CRef& cref, MenuSet& menuSet)
{
    int type = cref.Type();

    if (!m_pMenuManager->GetMenus(type, menuSet))
    {
        menuSet.Clear();

        Component* pComponent = cref.GetInstance();
        if (pComponent != NULL)
        {
            const QStringList profile = pComponent->GetProfile();

            m_pMenuManager->GetMenus(profile, menuSet, type);

            cref.ReleaseInstance();
        }
    }
}