MythTV  master
Classes | Macros | Variables
screensaver-dbus.cpp File Reference
#include "screensaver-dbus.h"
#include <cstdint>
#include <string>
#include <QDBusConnection>
#include <QDBusInterface>
#include <QDBusReply>
#include <QString>
#include "mythlogging.h"
Include dependency graph for screensaver-dbus.cpp:

Go to the source code of this file.

Classes

class  ScreenSaverDBusPrivate
 

Macros

#define LOC   QString("ScreenSaverDBus: ")
 
#define NUM_DBUS_METHODS   4
 

Variables

const std::string kApp = "MythTV"
 
const std::string kReason = "Watching TV"
 
const std::string kDbusInhibit = "Inhibit"
 
const std::array< const QString, NUM_DBUS_METHODSkDbusService
 KDE >= 4 and GNOME >= 3.10. More...
 
const std::array< const QString, NUM_DBUS_METHODSkDbusPath
 
const std::array< const QString, NUM_DBUS_METHODSkDbusUnInhibit
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ScreenSaverDBus: ")

Definition at line 14 of file screensaver-dbus.cpp.

◆ NUM_DBUS_METHODS

#define NUM_DBUS_METHODS   4

Definition at line 20 of file screensaver-dbus.cpp.

Variable Documentation

◆ kApp

const std::string kApp = "MythTV"

Definition at line 15 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kReason

const std::string kReason = "Watching TV"

Definition at line 16 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kDbusInhibit

const std::string kDbusInhibit = "Inhibit"

Definition at line 17 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kDbusService

const std::array<const QString,NUM_DBUS_METHODS> kDbusService
Initial value:
{
"org.freedesktop.ScreenSaver",
"org.freedesktop.PowerManagement.Inhibit",
"org.mate.SessionManager",
"org.gnome.SessionManager",
}

KDE >= 4 and GNOME >= 3.10.

KDE and GNOME <= 2.26 >= 1.0 GNOME 2.26..3.4

Definition at line 21 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBus::ScreenSaverDBus().

◆ kDbusPath

const std::array<const QString,NUM_DBUS_METHODS> kDbusPath
Initial value:
{
"/ScreenSaver",
"/org/freedesktop/PowerManagement",
"/org/mate/SessionManager",
"/org/gnome/SessionManager",
}

Definition at line 28 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBus::ScreenSaverDBus().

◆ kDbusUnInhibit

const std::array<const QString,NUM_DBUS_METHODS> kDbusUnInhibit
Initial value:
{
"UnInhibit",
"UnInhibit",
"Uninhibit",
"Uninhibit",
}

Definition at line 37 of file screensaver-dbus.cpp.

Referenced by ScreenSaverDBus::ScreenSaverDBus().