2002-07-09 12:24:59 +00:00
|
|
|
#ifndef SCREEN_SAVER_H
|
|
|
|
#define SCREEN_SAVER_H
|
|
|
|
|
|
|
|
#ifndef _APPLICATION_H
|
|
|
|
#include <Application.h>
|
|
|
|
#endif
|
|
|
|
#include "SSAwindow.h"
|
2004-03-09 01:23:02 +00:00
|
|
|
#include "ScreenSaverPrefs.h"
|
|
|
|
#include "ScreenSaverThread.h"
|
2004-03-17 03:43:30 +00:00
|
|
|
#include "pwWindow.h"
|
2002-07-09 12:24:59 +00:00
|
|
|
|
|
|
|
class ScreenSaverApp : public BApplication
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScreenSaverApp();
|
2004-03-09 01:23:02 +00:00
|
|
|
bool LoadAddOn(void);
|
|
|
|
void ReadyToRun(void);
|
|
|
|
bool QuitRequested(void);
|
2004-03-17 03:43:30 +00:00
|
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
void ShowPW(void);
|
2002-07-09 12:24:59 +00:00
|
|
|
private:
|
2004-03-09 01:23:02 +00:00
|
|
|
ScreenSaverPrefs pref;
|
|
|
|
SSAwindow *win;
|
|
|
|
BScreenSaver *saver;
|
|
|
|
ScreenSaverThread *thrd;
|
2004-03-17 03:43:30 +00:00
|
|
|
pwWindow *pww;
|
2004-03-09 01:23:02 +00:00
|
|
|
|
|
|
|
thread_id threadID;
|
2004-03-17 03:43:30 +00:00
|
|
|
uint32 blankTime;
|
2004-03-09 01:23:02 +00:00
|
|
|
|
2002-07-09 12:24:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //SCREEN_SAVER_H
|