PendingTpLoggerEntities::PendingTpLoggerEntities(const Tp::AccountPtr &account,
                                                 QObject *parent):
    PendingLoggerEntities(account, parent)
{
    Tpl::LogManagerPtr logManager = Tpl::LogManager::instance();
    Tpl::PendingEntities *op = logManager->queryEntities(account);
    connect(op, SIGNAL(finished(Tpl::PendingOperation*)),
            this, SLOT(entitiesRetrieved(Tpl::PendingOperation*)));
}
Esempio n. 2
0
void EntityModel::setAccountManager(const Tp::AccountManagerPtr &accountManager)
{
    Tpl::LogManagerPtr logManager = Tpl::LogManager::instance();
    Q_FOREACH(const Tp::AccountPtr &account, accountManager->allAccounts()) {
        connect(logManager->queryEntities(account),
                SIGNAL(finished(Tpl::PendingOperation*)),
                SLOT(onEntitiesSearchFinished(Tpl::PendingOperation*)));
    }
}