Changeset View
Changeset View
Standalone View
Standalone View
plugins/telephony/telephonyplugin.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 155 | { | |||
---|---|---|---|---|---|
158 | QString originalMessage = sender()->property("originalMessage").toString(); | 158 | QString originalMessage = sender()->property("originalMessage").toString(); | ||
159 | SendSmsDialog* dialog = new SendSmsDialog(originalMessage, phoneNumber, contactName); | 159 | SendSmsDialog* dialog = new SendSmsDialog(originalMessage, phoneNumber, contactName); | ||
160 | connect(dialog, &SendSmsDialog::sendSms, this, &TelephonyPlugin::sendSms); | 160 | connect(dialog, &SendSmsDialog::sendSms, this, &TelephonyPlugin::sendSms); | ||
161 | dialog->show(); | 161 | dialog->show(); | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | void TelephonyPlugin::connected() | 164 | void TelephonyPlugin::connected() | ||
165 | { | 165 | { | ||
166 | QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportScriptableContents); | 166 | QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportScriptableInvokables); | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | QString TelephonyPlugin::dbusPath() const | 169 | QString TelephonyPlugin::dbusPath() const | ||
170 | { | 170 | { | ||
171 | return "/modules/kdeconnect/devices/" + device()->id() + "/telephony"; | 171 | return "/modules/kdeconnect/devices/" + device()->id() + "/telephony"; | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | #include "telephonyplugin.moc" | 174 | #include "telephonyplugin.moc" |