2005-07-29 11:41:58 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2003, Michael Phipps. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
|
2004-06-13 02:46:11 +04:00
|
|
|
#ifndef SCREEN_SAVER_THREAD_H
|
|
|
|
#define SCREEN_SAVER_THREAD_H
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <DirectWindow.h>
|
|
|
|
|
|
|
|
class BScreenSaver;
|
|
|
|
class BView;
|
|
|
|
class ScreenSaverPrefs;
|
|
|
|
|
|
|
|
class ScreenSaverThread
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScreenSaverThread(BWindow *wnd, BView *vw, ScreenSaverPrefs *p);
|
2005-07-26 20:12:05 +04:00
|
|
|
void Thread();
|
|
|
|
BScreenSaver *LoadAddOn() ;
|
|
|
|
void Quit();
|
|
|
|
|
|
|
|
static int32 ThreadFunc(void *data);
|
2004-06-13 02:46:11 +04:00
|
|
|
private:
|
2005-07-26 20:12:05 +04:00
|
|
|
BScreenSaver *fSaver;
|
|
|
|
BWindow *fWin;
|
|
|
|
BDirectWindow *fDWin;
|
|
|
|
BView *fView;
|
|
|
|
ScreenSaverPrefs *fPref;
|
2004-06-13 02:46:11 +04:00
|
|
|
|
2005-07-26 20:12:05 +04:00
|
|
|
long fFrame;
|
|
|
|
int fSnoozeCount;
|
|
|
|
image_id fAddonImage;
|
2004-06-13 02:46:11 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //SCREEN_SAVER_THREAD_H
|