headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / screensaver / ScreenSaver.cpp
blob88df13472372d9a329b8cf99a40be677c517b2e4
1 /*
2 * Copyright 2003-2006, Michael Phipps. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "ScreenSaver.h"
10 BScreenSaver::BScreenSaver(BMessage *archive, image_id thisImage)
12 fTickSize(50000),
13 fLoopOnCount(0),
14 fLoopOffCount(0)
19 BScreenSaver::~BScreenSaver()
24 status_t
25 BScreenSaver::InitCheck()
27 // This method is meant to be overridden
28 return B_OK;
32 status_t
33 BScreenSaver::StartSaver(BView *view, bool preview)
35 // This method is meant to be overridden
36 return B_OK;
40 void
41 BScreenSaver::StopSaver()
43 // This method is meant to be overridden
44 return;
48 void
49 BScreenSaver::Draw(BView *view, int32 frame)
51 // This method is meant to be overridden
52 return;
56 void
57 BScreenSaver::DirectConnected(direct_buffer_info *info)
59 // This method is meant to be overridden
60 return;
64 void
65 BScreenSaver::DirectDraw(int32 frame)
67 // This method is meant to be overridden
68 return;
72 void
73 BScreenSaver::StartConfig(BView *configView)
75 // This method is meant to be overridden
76 return;
80 void
81 BScreenSaver::StopConfig()
83 // This method is meant to be overridden
84 return;
88 void
89 BScreenSaver::SupplyInfo(BMessage* info) const
91 // This method is meant to be overridden
92 return;
96 void
97 BScreenSaver::ModulesChanged(const BMessage* info)
99 // This method is meant to be overridden
100 return;
104 status_t
105 BScreenSaver::SaveState(BMessage *into) const
107 // This method is meant to be overridden
108 return B_ERROR;
112 void
113 BScreenSaver::SetTickSize(bigtime_t tickSize)
115 fTickSize = tickSize;
119 bigtime_t
120 BScreenSaver::TickSize() const
122 return fTickSize;
126 void
127 BScreenSaver::SetLoop(int32 onCount, int32 offCount)
129 fLoopOnCount = onCount;
130 fLoopOffCount = offCount;
134 int32
135 BScreenSaver::LoopOnCount() const
137 return fLoopOnCount;
141 int32
142 BScreenSaver::LoopOffCount() const
144 return fLoopOffCount;
148 void BScreenSaver::_ReservedScreenSaver1() {}
149 void BScreenSaver::_ReservedScreenSaver2() {}
150 void BScreenSaver::_ReservedScreenSaver3() {}
151 void BScreenSaver::_ReservedScreenSaver4() {}
152 void BScreenSaver::_ReservedScreenSaver5() {}
153 void BScreenSaver::_ReservedScreenSaver6() {}
154 void BScreenSaver::_ReservedScreenSaver7() {}
155 void BScreenSaver::_ReservedScreenSaver8() {}
157 // for compatibility with older BeOS versions
158 extern "C" {
159 void ReservedScreenSaver1__12BScreenSaver() {}
160 void ReservedScreenSaver2__12BScreenSaver() {}
161 void ReservedScreenSaver3__12BScreenSaver() {}
162 void ReservedScreenSaver4__12BScreenSaver() {}
163 void ReservedScreenSaver5__12BScreenSaver() {}
164 void ReservedScreenSaver6__12BScreenSaver() {}
165 void ReservedScreenSaver7__12BScreenSaver() {}
166 void ReservedScreenSaver8__12BScreenSaver() {}