the-libs/the-libs_global.h
2017-01-07 22:31:52 +11:00

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