aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster/codepasterservice.h
blob: 09674121a00450c31ba079fe3e12545a1bc7c7c2 (plain)
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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QObject>
#include <QString>

namespace CodePaster {

class Service
{
public:
    virtual ~Service() = default;

    virtual void postText(const QString &text, const QString &mimeType) = 0;
    virtual void postCurrentEditor() = 0;
    virtual void postClipboard() = 0;
};

} // namespace CodePaster

QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(CodePaster::Service, "CodePaster::Service")
QT_END_NAMESPACE