MythTV  master
Classes | Macros | Variables
mythscreensaverdbus.cpp File Reference
#include <QDBusConnection>
#include <QDBusInterface>
#include <QDBusReply>
#include <QString>
#include "mythlogging.h"
#include "platforms/mythscreensaverdbus.h"
#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: ")
 
#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 15 of file mythscreensaverdbus.cpp.

◆ NUM_DBUS_METHODS

#define NUM_DBUS_METHODS   4

Definition at line 21 of file mythscreensaverdbus.cpp.

Variable Documentation

◆ kApp

const std::string kApp = "MythTV"

Definition at line 17 of file mythscreensaverdbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kReason

const std::string kReason = "Watching TV"

Definition at line 18 of file mythscreensaverdbus.cpp.

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ kDbusInhibit

const std::string kDbusInhibit = "Inhibit"

Definition at line 19 of file mythscreensaverdbus.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 23 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 30 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 39 of file mythscreensaverdbus.cpp.

Referenced by MythScreenSaverDBus::MythScreenSaverDBus().