Changeset View
Changeset View
Standalone View
Standalone View
src/kded/helpers/requestauthorization.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 34 | { | |||
---|---|---|---|---|---|
48 | 48 | | |||
49 | notification->setActions(actions); | 49 | notification->setActions(actions); | ||
50 | 50 | | |||
51 | connect(notification, &KNotification::action1Activated, this, &RequestAuthorization::authorizeAndTrust); | 51 | connect(notification, &KNotification::action1Activated, this, &RequestAuthorization::authorizeAndTrust); | ||
52 | connect(notification, &KNotification::action2Activated, this, &RequestAuthorization::authorize); | 52 | connect(notification, &KNotification::action2Activated, this, &RequestAuthorization::authorize); | ||
53 | connect(notification, &KNotification::action3Activated, this, &RequestAuthorization::deny); | 53 | connect(notification, &KNotification::action3Activated, this, &RequestAuthorization::deny); | ||
54 | connect(notification, &KNotification::closed, this, &RequestAuthorization::deny); | 54 | connect(notification, &KNotification::closed, this, &RequestAuthorization::deny); | ||
55 | connect(notification, &KNotification::ignored, this, &RequestAuthorization::deny); | 55 | connect(notification, &KNotification::ignored, this, &RequestAuthorization::deny); | ||
56 | connect(parent, SIGNAL(agentCanceled()), this, SLOT(deny())); | ||||
56 | 57 | | |||
57 | notification->sendEvent(); | 58 | notification->sendEvent(); | ||
58 | } | 59 | } | ||
59 | 60 | | |||
60 | void RequestAuthorization::authorizeAndTrust() | 61 | void RequestAuthorization::authorizeAndTrust() | ||
61 | { | 62 | { | ||
62 | qCDebug(BLUEDAEMON) << "Authorization accepted and trusted:" << m_device->name() << m_device->address(); | 63 | qCDebug(BLUEDAEMON) << "Authorization accepted and trusted:" << m_device->name() << m_device->address(); | ||
63 | 64 | | |||
Show All 20 Lines |