MythTV  master
Classes | Macros | Variables
screensaver-dbus.cpp File Reference
#include "screensaver-dbus.h"
#include <cstdint>
#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 char m_app [] = "MythTV"
 
const char m_reason [] = "Watching TV"
 
const char m_dbusInhibit [] = "Inhibit"
 
const char m_dbusService [][40]
 
const char m_dbusPath [][33]
 
const char m_dbusUnInhibit [][10]
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ScreenSaverDBus: ")

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

◆ NUM_DBUS_METHODS

#define NUM_DBUS_METHODS   4

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

Variable Documentation

◆ m_app

const char m_app[] = "MythTV"

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

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ m_reason

const char m_reason[] = "Watching TV"

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

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ m_dbusInhibit

const char m_dbusInhibit[] = "Inhibit"

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

Referenced by ScreenSaverDBusPrivate::Inhibit().

◆ m_dbusService

const char m_dbusService[][40]
Initial value:
= {
"org.freedesktop.ScreenSaver",
"org.freedesktop.PowerManagement.Inhibit",
"org.mate.SessionManager",
"org.gnome.SessionManager",
}

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

Referenced by ScreenSaverDBus::ScreenSaverDBus().

◆ m_dbusPath

const char m_dbusPath[][33]
Initial value:
= {
"/ScreenSaver",
"/org/freedesktop/PowerManagement",
"/org/mate/SessionManager",
"/org/gnome/SessionManager",
}

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

Referenced by ScreenSaverDBus::ScreenSaverDBus().

◆ m_dbusUnInhibit

const char m_dbusUnInhibit[][10]
Initial value:
= {
"UnInhibit",
"UnInhibit",
"Uninhibit",
"Uninhibit",
}

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

Referenced by ScreenSaverDBus::ScreenSaverDBus().