Changeset View
Changeset View
Standalone View
Standalone View
src/awaymanager.cpp
Show All 29 Lines | 27 | { | |||
---|---|---|---|---|---|
30 | connect(KIdleTime::instance(), SIGNAL(resumingFromIdle()), this, SLOT(resumeFromIdle())); | 30 | connect(KIdleTime::instance(), SIGNAL(resumingFromIdle()), this, SLOT(resumeFromIdle())); | ||
31 | connect(KIdleTime::instance(), SIGNAL(timeoutReached(int)), this, SLOT(idleTimeoutReached(int))); | 31 | connect(KIdleTime::instance(), SIGNAL(timeoutReached(int)), this, SLOT(idleTimeoutReached(int))); | ||
32 | 32 | | |||
33 | // Catch the first "resume event" (= user input) so we correctly catch the first | 33 | // Catch the first "resume event" (= user input) so we correctly catch the first | ||
34 | // resume event in case the user is already idle on startup). | 34 | // resume event in case the user is already idle on startup). | ||
35 | KIdleTime::instance()->catchNextResumeEvent(); | 35 | KIdleTime::instance()->catchNextResumeEvent(); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | AwayManager::~AwayManager() | 38 | AwayManager::~AwayManager() = default; | ||
39 | { | | |||
40 | } | | |||
41 | 39 | | |||
42 | int AwayManager::minutesToMilliseconds(int minutes) | 40 | int AwayManager::minutesToMilliseconds(int minutes) | ||
43 | { | 41 | { | ||
44 | return minutes * 60 * 1000; | 42 | return minutes * 60 * 1000; | ||
45 | } | 43 | } | ||
46 | 44 | | |||
47 | void AwayManager::identitiesChanged() | 45 | void AwayManager::identitiesChanged() | ||
48 | { | 46 | { | ||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |