/
lipstickapi.h
39 lines (31 loc) · 1.03 KB
/
lipstickapi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/***************************************************************************
**
** Copyright (c) 2013 Jolla Ltd.
**
** This file is part of lipstick.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation
** and appearing in the file LICENSE.LGPL included in the packaging
** of this file.
**
****************************************************************************/
#ifndef LIPSTICKAPI_H
#define LIPSTICKAPI_H
#include <QObject>
#include "screenshotservice.h"
class LIPSTICK_EXPORT LipstickApi : public QObject
{
Q_OBJECT
Q_PROPERTY(bool active READ active NOTIFY activeChanged)
Q_PROPERTY(QObject *compositor READ compositor CONSTANT)
public:
LipstickApi(QObject *parent = 0);
bool active() const;
QObject *compositor() const;
Q_INVOKABLE ScreenshotResult *takeScreenshot(const QString &path = QString());
signals:
void activeChanged();
};
#endif // LIPSTICKAPI_H