Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/inhibit-screensaver/InhibitScreensaverPlugin.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 69 | { | |||
---|---|---|---|---|---|
70 | delete d; | 70 | delete d; | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | QStringList InhibitScreensaverPlugin::backendTypes() const | 73 | QStringList InhibitScreensaverPlugin::backendTypes() const | ||
74 | { | 74 | { | ||
75 | return QStringList( nameId() ); | 75 | return QStringList( nameId() ); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | QStringList InhibitScreensaverPlugin::renderPosition() const | 78 | RenderPositions InhibitScreensaverPlugin::renderPositions() const | ||
79 | { | 79 | { | ||
80 | // We're invisible, but need to be initialized | 80 | // We're invisible, but need to be initialized | ||
81 | return QStringList( "FLOAT_ITEM" ); | 81 | return FloatItemRenderPosition; | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | QString InhibitScreensaverPlugin::name() const | 84 | QString InhibitScreensaverPlugin::name() const | ||
85 | { | 85 | { | ||
86 | return tr( "Inhibit Screensaver" ); | 86 | return tr( "Inhibit Screensaver" ); | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | QString InhibitScreensaverPlugin::guiString() const | 89 | QString InhibitScreensaverPlugin::guiString() const | ||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | |||||
155 | 155 | | |||
156 | void InhibitScreensaverPlugin::inhibitScreenSaver() | 156 | void InhibitScreensaverPlugin::inhibitScreenSaver() | ||
157 | { | 157 | { | ||
158 | if ( d->m_interface && d->m_interface->isValid() ) { | 158 | if ( d->m_interface && d->m_interface->isValid() ) { | ||
159 | d->m_interface->call( "req_display_blanking_pause" ); | 159 | d->m_interface->call( "req_display_blanking_pause" ); | ||
160 | } | 160 | } | ||
161 | } | 161 | } | ||
162 | 162 | | |||
163 | bool InhibitScreensaverPlugin::render( GeoPainter *, ViewportParams *, const QString&, GeoSceneLayer *) | 163 | bool InhibitScreensaverPlugin::render(GeoPainter *, ViewportParams *, RenderPosition, GeoSceneLayer *) | ||
164 | { | 164 | { | ||
165 | // invisible | 165 | // invisible | ||
166 | return true; | 166 | return true; | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | QString InhibitScreensaverPlugin::renderPolicy() const | 169 | QString InhibitScreensaverPlugin::renderPolicy() const | ||
170 | { | 170 | { | ||
171 | return "NEVER"; | 171 | return "NEVER"; | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | #include "moc_InhibitScreensaverPlugin.cpp" | 176 | #include "moc_InhibitScreensaverPlugin.cpp" |