/* * Copyright 2012 Canonical Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * * Author: Zsombor Egri */ #ifndef QQUICKCLIPBOARD_P_H #define QQUICKCLIPBOARD_P_H #include #include #include #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include #else #include #endif #include "qquickmimedata_p.h" class QQmlEngine; class QJSEngine; UT_NAMESPACE_BEGIN class QQuickMimeData; class QQuickClipboardPrivate; class LOMIRITOOLKIT_EXPORT QQuickClipboard : public QObject { Q_OBJECT #ifndef Q_QDOC Q_PROPERTY(UT_PREPEND_NAMESPACE(QQuickMimeData) *data READ data NOTIFY dataChanged) #else Q_PROPERTY(QQuickMimeData *data READ data NOTIFY dataChanged) #endif public: explicit QQuickClipboard(QObject *parent = 0); Q_INVOKABLE UT_PREPEND_NAMESPACE(QQuickMimeData) *newData(); private: //getter/setter QQuickMimeData *data(); Q_SIGNALS: void dataChanged(); public Q_SLOTS: void push(const QVariant& data); void clear(); private: Q_DECLARE_PRIVATE(QQuickClipboard) }; UT_NAMESPACE_END #endif // QQUICKCLIPBOARD_P_H