2 * Copyright 2003-2014 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Jérôme Duval, jerome.duval@free.fr
8 * John Scipione, jscipione@gmail.com
9 * Puck Meerburg, puck@puckipedia.nl
11 #ifndef SCREEN_SAVER_APP_H
12 #define SCREEN_SAVER_APP_H
15 #include "PasswordWindow.h"
16 #include "ScreenSaverSettings.h"
17 #include "ScreenSaverRunner.h"
18 #include "ScreenSaverWindow.h"
20 #include <Application.h>
21 #include <MessageRunner.h>
24 const static uint32 kMsgResumeSaver
= 'RSSV';
27 class ScreenBlanker
: public BApplication
{
32 virtual void ReadyToRun();
34 virtual bool QuitRequested();
35 virtual void MessageReceived(BMessage
* message
);
37 bool IsPasswordWindowShown() const;
41 void _ShowPasswordWindow();
42 void _QueueResumeScreenSaver();
44 void _SetDPMSMode(uint32 mode
);
45 void _QueueTurnOffScreen();
48 ScreenSaverSettings fSettings
;
49 ScreenSaverWindow
* fWindow
;
50 ScreenSaverRunner
* fSaverRunner
;
51 PasswordWindow
* fPasswordWindow
;
55 BMessageRunner
* fResumeRunner
;
57 BMessageRunner
* fStandByScreenRunner
;
58 BMessageRunner
* fSuspendScreenRunner
;
59 BMessageRunner
* fTurnOffScreenRunner
;
62 #endif // SCREEN_SAVER_APP_H