Changeset View
Changeset View
Standalone View
Standalone View
src/kded/helpers/requestconfirmation.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 33 | { | |||
---|---|---|---|---|---|
45 | actions.append(i18nc("Notification button to say that the PIN is wrong", "PIN incorrect")); | 45 | actions.append(i18nc("Notification button to say that the PIN is wrong", "PIN incorrect")); | ||
46 | 46 | | |||
47 | notification->setActions(actions); | 47 | notification->setActions(actions); | ||
48 | 48 | | |||
49 | connect(notification, &KNotification::action1Activated, this, &RequestConfirmation::pinCorrect); | 49 | connect(notification, &KNotification::action1Activated, this, &RequestConfirmation::pinCorrect); | ||
50 | connect(notification, &KNotification::action2Activated, this, &RequestConfirmation::pinWrong); | 50 | connect(notification, &KNotification::action2Activated, this, &RequestConfirmation::pinWrong); | ||
51 | connect(notification, &KNotification::closed, this, &RequestConfirmation::pinWrong); | 51 | connect(notification, &KNotification::closed, this, &RequestConfirmation::pinWrong); | ||
52 | connect(notification, &KNotification::ignored, this, &RequestConfirmation::pinWrong); | 52 | connect(notification, &KNotification::ignored, this, &RequestConfirmation::pinWrong); | ||
53 | connect(parent, SIGNAL(agentCanceled()), this, SLOT(pinWrong())); | ||||
53 | 54 | | |||
54 | notification->sendEvent(); | 55 | notification->sendEvent(); | ||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | void RequestConfirmation::pinCorrect() | 58 | void RequestConfirmation::pinCorrect() | ||
58 | { | 59 | { | ||
59 | qCDebug(BLUEDAEMON) << "PIN correct:" << m_device->name() << m_device->address(); | 60 | qCDebug(BLUEDAEMON) << "PIN correct:" << m_device->name() << m_device->address(); | ||
60 | 61 | | |||
Show All 11 Lines |