...
 
Commits (2)
......@@ -16,6 +16,7 @@
#include "homeapplication.h"
#include "compositor/lipstickcompositor.h"
#include "notifications/notificationmanager.h"
LipstickApi::LipstickApi(QObject *parent)
: QObject(parent)
......@@ -40,3 +41,8 @@ ScreenshotResult *LipstickApi::takeScreenshot(const QString &path)
{
return ScreenshotService::saveScreenshot(path);
}
QString LipstickApi::notificationSystemApplicationName() const
{
return NotificationManager::instance(false)->systemApplicationName();
}
......@@ -23,6 +23,7 @@ class LIPSTICK_EXPORT LipstickApi : public QObject
Q_OBJECT
Q_PROPERTY(bool active READ active NOTIFY activeChanged)
Q_PROPERTY(QObject *compositor READ compositor CONSTANT)
Q_PROPERTY(QString notificationSystemApplicationName READ notificationSystemApplicationName CONSTANT)
public:
LipstickApi(QObject *parent = 0);
......@@ -32,6 +33,8 @@ public:
Q_INVOKABLE ScreenshotResult *takeScreenshot(const QString &path = QString());
QString notificationSystemApplicationName() const;
signals:
void activeChanged();
};
......