-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathscreensavermeter.py
65 lines (48 loc) · 1.91 KB
/
screensavermeter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 2016-2018 PeppyMeter [email protected]
#
# This file is part of PeppyMeter.
#
# PeppyMeter is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PeppyMeter is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PeppyMeter. If not, see <http://www.gnu.org/licenses/>.
class ScreensaverMeter():
""" Parent class for all screensaver plug-ins """
def __init__(self):
""" Initializer. Sets the default update period - 1 second """
self.update_period = 1
def get_update_period(self):
""" Return screensaver update period """
return self.update_period
def set_image(self, image):
""" Set station image. The method can be used by plug-ins which use station logo images
:param image: station logo image
"""
pass
def set_image_folder(self, state):
""" Set image folder.
:param: state object defining image folder
"""
pass
def set_volume(self, volume):
""" Set volume level. The method can be used by plug-ins which use volume level
:param volume: new volume level
"""
pass
def refresh(self):
""" Refresh the screensaver. Used for animation """
pass
def start(self):
""" Start screensaver """
pass
def stop(self):
""" Stop screensaver """
pass