~ken-vandine/ubuntu/wily/libqofono/libqofono-0.79

« back to all changes in this revision

Viewing changes to src/qofonoconnectioncontext.cpp

  • Committer: Ken VanDine
  • Author(s): Ken VanDine, Jonas Drange
  • Date: 2015-05-21 20:16:51 UTC
  • Revision ID: ken.vandine@canonical.com-20150521201651-boa8e4wvl26l369h
Tags: 0.70-0ubuntu4
[ Jonas Drange ]
* debian/patches/connman-resetcontexts.patch
  - Added bindings to Ofono's reset context API (LP: #1338758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    SUPER::propertyChanged(property, value);
84
84
    if (property == QLatin1String("Active")) {
85
85
        Q_EMIT activeChanged(value.value<bool>());
 
86
    } else if (property == QLatin1String("Preferred")) {
 
87
        Q_EMIT preferredChanged(value.value<bool>());
86
88
    } else if (property == QLatin1String("Name")) {
87
89
        Q_EMIT nameChanged(value.value<QString>());
88
90
    } else if (property == QLatin1String("AccessPointName")) {
111
113
    return getBool("Active");
112
114
}
113
115
 
 
116
bool QOfonoConnectionContext::preferred() const
 
117
{
 
118
    return getBool("Preferred");
 
119
}
 
120
 
114
121
QString QOfonoConnectionContext::accessPointName() const
115
122
{
116
123
    return getString("AccessPointName");
170
177
    setProperty("Active", value);
171
178
}
172
179
 
 
180
void QOfonoConnectionContext::setPreferred(const bool value)
 
181
{
 
182
    setProperty("Preferred", value);
 
183
}
 
184
 
173
185
void QOfonoConnectionContext::setAccessPointName(const QString &value)
174
186
{
175
187
    setProperty("AccessPointName", value);