mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-24 11:22:05 -05:00
40 lines
748 B
C++
40 lines
748 B
C++
#ifndef THELIBS_GLOBAL_H
|
|
#define THELIBS_GLOBAL_H
|
|
|
|
#include <QtCore/qglobal.h>
|
|
#include <QObject>
|
|
#include <QDBusMessage>
|
|
#include <QDBusReply>
|
|
#include <QDBusConnection>
|
|
#include <QApplication>
|
|
#include <QStyle>
|
|
#include <QStyleFactory>
|
|
|
|
#if defined(THELIBS_LIBRARY)
|
|
# define THELIBSSHARED_EXPORT Q_DECL_EXPORT
|
|
#else
|
|
# define THELIBSSHARED_EXPORT Q_DECL_IMPORT
|
|
#endif
|
|
|
|
class THELIBSSHARED_EXPORT theLibsGlobal : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static theLibsGlobal* instance();
|
|
|
|
public slots:
|
|
bool powerStretchEnabled();
|
|
|
|
private slots:
|
|
void powerStretchChangedPrivate(bool isOn);
|
|
|
|
signals:
|
|
void powerStretchChanged(bool isOn);
|
|
|
|
private:
|
|
theLibsGlobal();
|
|
|
|
bool powerStretch = false;
|
|
};
|
|
|
|
#endif // THELIBS_GLOBAL_H
|