~ci-train-bot/history-service/history-service-ubuntu-yakkety-landing-1774

« back to all changes in this revision

Viewing changes to daemon/historydaemon.cpp

Request contact information for all known participants on history-daemon initialization, and use this cached information on the models.
Approved by: Tiago Salem Herrmann, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        mBackend = History::PluginManager::instance()->plugins().first();
43
43
    }
44
44
 
 
45
    // FIXME: maybe we should only set the plugin as ready after the contact cache was generated
 
46
    connect(TelepathyHelper::instance(), &TelepathyHelper::setupReady, [&]() {
 
47
        mBackend->generateContactCache();
 
48
        mDBus.connectToBus();
 
49
    });
 
50
 
45
51
    connect(TelepathyHelper::instance(),
46
52
            SIGNAL(channelObserverCreated(ChannelObserver*)),
47
53
            SLOT(onObserverCreated()));
63
69
    // FIXME: we need to do this in a better way, but for now this should do
64
70
    mProtocolFlags["ofono"] = History::MatchPhoneNumber;
65
71
    mProtocolFlags["multimedia"] = History::MatchPhoneNumber;
66
 
 
67
 
    mDBus.connectToBus();
68
72
}
69
73
 
70
74
HistoryDaemon::~HistoryDaemon()