~ken-vandine/libqofono/0.90-suggests

« back to all changes in this revision

Viewing changes to src/qofonoconnectioncontext.cpp

  • Committer: Slava Monich
  • Date: 2015-03-23 10:28:42 UTC
  • mto: This revision was merged to the branch mainline in revision 192.
  • Revision ID: git-v1:7fb3118e98c6994b3d7882e2a043df2035f5a738
[libqofono] Added QOfonoConnectionContext::authMethod property

Matches "AuthenticationMethod" property in ConnectionContext interface
which appeared in ofono 1.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        Q_EMIT accessPointNameChanged(value.value<QString>());
125
125
    } else if (property == QLatin1String("Type")) {
126
126
        Q_EMIT typeChanged(value.value<QString>());
 
127
    } else if (property == QLatin1String("AuthenticationMethod")) {
 
128
        Q_EMIT authMethodChanged(value.value<QString>());
127
129
    } else if (property == QLatin1String("Username")) {
128
130
        Q_EMIT usernameChanged(value.value<QString>());
129
131
    } else if (property == QLatin1String("Password")) {
156
158
    return getString("Type");
157
159
}
158
160
 
 
161
QString QOfonoConnectionContext::authMethod() const
 
162
{
 
163
    return getString("AuthenticationMethod");
 
164
}
 
165
 
159
166
QString QOfonoConnectionContext::username() const
160
167
{
161
168
    return getString("Username");
215
222
    setProperty("Type", value);
216
223
}
217
224
 
 
225
void QOfonoConnectionContext::setAuthMethod(const QString &value)
 
226
{
 
227
    setProperty("AuthenticationMethod", value);
 
228
}
 
229
 
218
230
void QOfonoConnectionContext::setUsername(const QString &value)
219
231
{
220
232
    setProperty("Username", value);