LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
iimportexport.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #ifndef INTERFACES_IIMPORTEXPORT_H
10 #define INTERFACES_IIMPORTEXPORT_H
11 #include <QByteArray>
12 #include <QtPlugin>
13 
21 class Q_DECL_EXPORT IImportExport
22 {
23 public:
35  virtual void ImportSettings (const QByteArray& data) = 0;
36 
48  virtual void ImportData (const QByteArray& data) = 0;
49 
61  virtual QByteArray ExportSettings () const = 0;
62 
74  virtual QByteArray ExportData () const = 0;
75 
78  virtual ~IImportExport () {}
79 };
80 
81 Q_DECLARE_INTERFACE (IImportExport, "org.Deviant.LeechCraft.IImportExport/1.0")
82 
83 #endif
84 
IImportExport
Interface for plugins which can import/export data to persistent storage.
Definition: iimportexport.h:21