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);
|
2004-10-09 23:18:56 +00:00
|
|
|
// bool QuitRequested(void);
|
|
|
|
// void Quit(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-05-03 22:41:30 +00:00
|
|
|
ScreenSaverPrefs fPref;
|
|
|
|
SSAwindow *fWin;
|
|
|
|
BScreenSaver *fSaver;
|
|
|
|
ScreenSaverThread *fThrd;
|
|
|
|
pwWindow *fPww;
|
2004-03-09 01:23:02 +00:00
|
|
|
|
2004-05-03 22:41:30 +00:00
|
|
|
thread_id fThreadID;
|
|
|
|
uint32 fBlankTime;
|
2004-03-09 01:23:02 +00:00
|
|
|
|
2004-10-09 23:18:56 +00:00
|
|
|
void shutdown(void);
|
2002-07-09 12:24:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //SCREEN_SAVER_H
|