xref: /haiku/src/kits/screensaver/ScreenSaver.cpp (revision 81f5654c124bf46fba0fd251f208e2d88d81e1ce)
1 #include "ScreenSaver.h"
2 #include <stdio.h>
3 
4 BScreenSaver::BScreenSaver(BMessage *archive,
5                            image_id) : ticksize(50000),looponcount(0),loopoffcount(0)
6 {
7 }
8 
9 
10 BScreenSaver::~BScreenSaver()
11 {
12 }
13 
14 
15 status_t
16 BScreenSaver::InitCheck()
17 {
18     return B_OK; // This method is meant to be overridden
19 }
20 
21 
22 status_t
23 BScreenSaver::StartSaver(BView *view, bool preview)
24 {
25     return B_OK; // This method is meant to be overridden
26 }
27 
28 
29 void
30 BScreenSaver::StopSaver()
31 {
32 	return; // This method is meant to be overridden
33 }
34 
35 
36 void
37 BScreenSaver::Draw(BView *view, int32 frame)
38 {
39 	return; // This method is meant to be overridden
40 }
41 
42 
43 void
44 BScreenSaver::DirectConnected(direct_buffer_info *info)
45 {
46 	return; // This method is meant to be overridden
47 }
48 
49 
50 void
51 BScreenSaver::DirectDraw(int32 frame)
52 {
53 	return; // This method is meant to be overridden
54 }
55 
56 
57 void
58 BScreenSaver::StartConfig(BView *configView)
59 {
60 	return; // This method is meant to be overridden
61 }
62 
63 
64 void
65 BScreenSaver::StopConfig()
66 {
67 	return; // This method is meant to be overridden
68 }
69 
70 
71 void
72 BScreenSaver::SupplyInfo(BMessage *info) const
73 {
74 	return; // This method is meant to be overridden
75 }
76 
77 
78 void
79 BScreenSaver::ModulesChanged(const BMessage *info)
80 {
81 	return; // This method is meant to be overridden
82 }
83 
84 
85 status_t
86 BScreenSaver::SaveState(BMessage *into) const
87 {
88     return B_ERROR; // This method is meant to be overridden
89 }
90 
91 
92 void
93 BScreenSaver::SetTickSize(bigtime_t ts)
94 {
95 	ticksize = ts;
96 }
97 
98 
99 bigtime_t
100 BScreenSaver::TickSize() const
101 {
102     return ticksize;
103 }
104 
105 
106 void
107 BScreenSaver::SetLoop(int32 on_count, int32 off_count)
108 {
109 	looponcount = on_count;
110 	loopoffcount = off_count;
111 }
112 
113 
114 int32
115 BScreenSaver::LoopOnCount() const
116 {
117     return looponcount;
118 }
119 
120 
121 int32
122 BScreenSaver::LoopOffCount() const
123 {
124     return loopoffcount;
125 }
126 
127 
128 void
129 BScreenSaver::_ReservedScreenSaver1()
130 {
131 }
132 
133 
134 void
135 BScreenSaver::_ReservedScreenSaver2()
136 {
137 }
138 
139 
140 void
141 BScreenSaver::_ReservedScreenSaver3()
142 {
143 }
144 
145 
146 void
147 BScreenSaver::_ReservedScreenSaver4()
148 {
149 }
150 
151 
152 void
153 BScreenSaver::_ReservedScreenSaver5()
154 {
155 }
156 
157 
158 void
159 BScreenSaver::_ReservedScreenSaver6()
160 {
161 }
162 
163 
164 void
165 BScreenSaver::_ReservedScreenSaver7()
166 {
167 }
168 
169 
170 void
171 BScreenSaver::_ReservedScreenSaver8()
172 {
173 }
174 
175 
176 extern "C" {
177 void  ReservedScreenSaver1__12BScreenSaver () {}
178 void  ReservedScreenSaver2__12BScreenSaver () {}
179 void  ReservedScreenSaver3__12BScreenSaver () {}
180 void  ReservedScreenSaver4__12BScreenSaver () {}
181 void  ReservedScreenSaver5__12BScreenSaver () {}
182 void  ReservedScreenSaver6__12BScreenSaver () {}
183 void  ReservedScreenSaver7__12BScreenSaver () {}
184 void  ReservedScreenSaver8__12BScreenSaver () {}
185 }
186