コード例 #1
0
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*)));
}
コード例 #2
0
ファイル: entity-model.cpp プロジェクト: R4md4c/ktp-text-ui
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*)));
    }
}