MythTV  master
Classes | Macros | Variables
mythscreensaverdbus.cpp File Reference
#include <QDBusConnection>
#include <QDBusInterface>
#include <QDBusReply>
#include <QString>
#include "libmythbase/mythlogging.h"
#include "platforms/mythscreensaverdbus.h"
#include <array>
#include <cstdint>
#include <string>
Include dependency graph for mythscreensaverdbus.cpp:

Go to the source code of this file.

Classes

class  ScreenSaverDBusPrivate
 

Macros

#define LOC   QString("ScreenSaverDBus: ")
 

Variables

const std::string kApp = "MythTV"
 
const std::string kReason = "Watching TV"
 
const std::string kDbusInhibit = "Inhibit"
 
static constexpr size_t NUM_DBUS_METHODS { 4 }
 
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 16 of file mythscreensaverdbus.cpp.

Variable Documentation

◆ kApp

const std::string kApp = "MythTV"

Definition at line 18 of file mythscreensaverdbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kReason

const std::string kReason = "Watching TV"

Definition at line 19 of file mythscreensaverdbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kDbusInhibit

const std::string kDbusInhibit = "Inhibit"

Definition at line 20 of file mythscreensaverdbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ NUM_DBUS_METHODS

constexpr size_t NUM_DBUS_METHODS { 4 }
staticconstexpr

Definition at line 22 of file mythscreensaverdbus.cpp.

Referenced by MythScreenSaverDBus::MythScreenSaverDBus().

◆ 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 24 of file mythscreensaverdbus.cpp.

Referenced by MythScreenSaverDBus::MythScreenSaverDBus().

◆ 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 31 of file mythscreensaverdbus.cpp.

Referenced by MythScreenSaverDBus::MythScreenSaverDBus().

◆ kDbusUnInhibit

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

Definition at line 40 of file mythscreensaverdbus.cpp.

Referenced by MythScreenSaverDBus::MythScreenSaverDBus().