mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-23 03:37:30 +00:00
closes: #1374 . Use SPDX short-form identifiers instead of lengthy copyright header to document per-file license and copyright. This commit updates all files under src/ directory where applicable as well as org.flameshot.Flameshot.metainfo.xml.
28 lines
744 B
C++
28 lines
744 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#pragma once
|
|
|
|
#include "src/cli/commandlineparser.h"
|
|
#include <QDBusConnection>
|
|
#include <QObject>
|
|
|
|
class DBusUtils : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DBusUtils(QObject* parent = nullptr);
|
|
|
|
void connectPrintCapture(QDBusConnection& session, uint id);
|
|
void checkDBusConnection(const QDBusConnection& connection);
|
|
void connectSelectionCapture(QDBusConnection& session, uint id);
|
|
|
|
public slots:
|
|
void selectionTaken(uint id, QByteArray rawImage, QRect selection);
|
|
void captureTaken(uint id, QByteArray rawImage, QRect selection);
|
|
void captureFailed(uint id);
|
|
|
|
private:
|
|
uint m_id;
|
|
};
|