~pete-woods/indicator-network/wapi-lp1597681

« back to all changes in this revision

Viewing changes to src/connectivity-api/connectivity-qt/connectivityqt/connectivity.cpp

New Connectivity Service Private API for managing mobile data and SIM cards. Tests. (LP: #1373463)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        else if (name == "SimForMobileData")
181
181
        {
182
182
            auto path = value.value<QDBusObjectPath>();
 
183
            p.sims();
183
184
            auto sim = m_simsModel->getSimByPath(path);
184
185
            p.setSimForMobileData(sim.get());
185
186
        }
188
189
    void simsUpdated()
189
190
    {
190
191
        auto path = m_writePropertyCache->get("SimForMobileData").value<QDBusObjectPath>();
 
192
        p.sims();
191
193
        auto sim = m_simsModel->getSimByPath(path);
192
194
        p.setSimForMobileData(sim.get());
193
195
    }
424
426
 
425
427
Sim *Connectivity::simForMobileData() const
426
428
{
 
429
    sims();
427
430
    return d->m_simForMobileData.get();
428
431
}
429
432