c566b0927d
changed the way prefs is stored, so that we have default settings general cleanup time sliders are now linked together as on R5 password window is centered onscreen git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13849 a95241bf-73f2-0310-859d-f6bbb57e9c96
37 lines
688 B
C++
37 lines
688 B
C++
/*
|
|
* Copyright 2003, Michael Phipps. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#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);
|
|
void Thread();
|
|
BScreenSaver *LoadAddOn() ;
|
|
void Quit();
|
|
|
|
static int32 ThreadFunc(void *data);
|
|
private:
|
|
BScreenSaver *fSaver;
|
|
BWindow *fWin;
|
|
BDirectWindow *fDWin;
|
|
BView *fView;
|
|
ScreenSaverPrefs *fPref;
|
|
|
|
long fFrame;
|
|
int fSnoozeCount;
|
|
image_id fAddonImage;
|
|
};
|
|
|
|
#endif //SCREEN_SAVER_THREAD_H
|