Ticket #8357: screensaver-xdg.h

File screensaver-xdg.h, 549 bytes (added by Johnny Walker <johnnyjboss@…>, 10 years ago)
Line 
1#ifndef MYTH_SCREENSAVER_XDG_H
2#define MYTH_SCREENSAVER_XDG_H
3
4#include <QObject>
5
6#include "screensaver.h"
7
8class ScreenSaverXDG : public QObject, public ScreenSaverControl
9{
10    Q_OBJECT
11
12  public:
13    ScreenSaverXDG();
14    ~ScreenSaverXDG();
15
16    // determine if xdg-utils is installed
17    static bool isXDGInstalled(void);
18
19    void Disable(void);
20    void Restore(void);
21    void Reset(void);
22
23    bool Asleep(void);
24
25  public slots:
26    void resetSlot();
27
28  protected:
29    class ScreenSaverXDGPrivate *d;
30};
31
32#endif // MYTH_SCREENSAVER_XDG_H
33