~ci-train-bot/history-service/history-service-ubuntu-zesty-2629

« back to all changes in this revision

Viewing changes to Ubuntu/History/historymodel.cpp

Move the classes from historyprivate static library to libhistoryservice itself and just keep their header files private.
Approved by: Tiago Salem Herrmann, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        break;
92
92
    case ParticipantsRole:
93
93
        if (mMatchContacts) {
94
 
            result = ContactMatcher::instance()->contactInfo(properties[History::FieldAccountId].toString(),
95
 
                                                             History::Participants::fromVariantList(properties[History::FieldParticipants].toList()).identifiers());
 
94
            result = History::ContactMatcher::instance()->contactInfo(properties[History::FieldAccountId].toString(),
 
95
                                                                      History::Participants::fromVariantList(properties[History::FieldParticipants].toList()).identifiers());
96
96
        } else {
97
97
            //FIXME: handle contact changes
98
98
            result = properties[History::FieldParticipants];
174
174
    Q_EMIT matchContactsChanged();
175
175
 
176
176
    if (mMatchContacts) {
177
 
        connect(ContactMatcher::instance(),
 
177
        connect(History::ContactMatcher::instance(),
178
178
                SIGNAL(contactInfoChanged(QString,QString,QVariantMap)),
179
179
                SLOT(onContactInfoChanged(QString,QString,QVariantMap)));
180
180
    } else {
181
 
        ContactMatcher::instance()->disconnect(this);
 
181
        History::ContactMatcher::instance()->disconnect(this);
182
182
    }
183
183
 
184
184
    // mark all indexes as changed
280
280
void HistoryModel::watchContactInfo(const QString &accountId, const QString &identifier, const QVariantMap &currentInfo)
281
281
{
282
282
    if (mMatchContacts) {
283
 
        ContactMatcher::instance()->watchIdentifier(accountId, identifier, currentInfo);
 
283
        History::ContactMatcher::instance()->watchIdentifier(accountId, identifier, currentInfo);
284
284
    }
285
285
}
286
286