Loading...
Searching...
No Matches
import_export_handler.h
Go to the documentation of this file.
/*
* Copyright © 2013 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 version 3 as
* published by the Free Software Foundation.
*
* 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 <http://www.gnu.org/licenses/>.
*
* Authored by: Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef COM_LOMIRI_CONTENT_IMPORT_EXPORT_HANDLER_H_
#define COM_LOMIRI_CONTENT_IMPORT_EXPORT_HANDLER_H_
#include <QObject>
namespace com
{
namespace lomiri
{
namespace content
{
class Transfer;
class ImportExportHandler : public QObject
{
Q_OBJECT
public:
ImportExportHandler(const ImportExportHandler&) = delete;
virtual ~ImportExportHandler() = default;
ImportExportHandler& operator=(const ImportExportHandler&) = delete;
Q_INVOKABLE virtual void handle_import(Transfer*) = 0;
Q_INVOKABLE virtual void handle_export(Transfer*) = 0;
Q_INVOKABLE virtual void handle_share(Transfer*) = 0;
protected:
ImportExportHandler(QObject* parent = nullptr);
};
}
}
}
#endif // COM_LOMIRI_CONTENT_IMPORT_EXPORT_HANDLER_H_
QObject
com::lomiri::content::ImportExportHandler::ImportExportHandler
ImportExportHandler(QObject *parent=nullptr)
com::lomiri::content::ImportExportHandler::ImportExportHandler
ImportExportHandler(const ImportExportHandler &)=delete
com::lomiri::content::ImportExportHandler::operator=
ImportExportHandler & operator=(const ImportExportHandler &)=delete
com::lomiri::content::ImportExportHandler::~ImportExportHandler
virtual ~ImportExportHandler()=default
com::lomiri::content::ImportExportHandler::handle_import
virtual Q_INVOKABLE void handle_import(Transfer *)=0
com::lomiri::content::ImportExportHandler::handle_export
virtual Q_INVOKABLE void handle_export(Transfer *)=0
com::lomiri::content::ImportExportHandler::handle_share
virtual Q_INVOKABLE void handle_share(Transfer *)=0
com::lomiri::content::Transfer
Definition transfer.h:54
com::lomiri::content
Definition hub.h:36
com::lomiri
Definition hub.h:34
com
Definition hub.h:32