Buteo Synchronization Framework: StoragePluginLoader.h Source File

Buteo Synchronization Framework

StoragePluginLoader.h
1 /*
2 * This file is part of buteo-syncfw package
3 *
4 * Copyright (C) 2021 Jolla Ltd.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 *
20 */
21 #ifndef STORAGEPLUGINLOADER_H
22 #define STORAGEPLUGINLOADER_H
23
24 #include <QObject>
25
26 namespace Buteo {
27
28 class StoragePlugin;
29
33 class StoragePluginLoader : public QObject
34 {
35 Q_OBJECT
36 public:
37 virtual StoragePlugin *createPlugin(const QString &aPluginName) = 0;
38 };
39
40 }
41
42 Q_DECLARE_INTERFACE(Buteo::StoragePluginLoader, "com.buteo.msyncd.StoragePluginLoader/1.0")
43
44 #endif // STORAGEPLUGINLOADER_H
Buteo::StoragePluginLoader
Base class for storage plugin loaders.
Definition: StoragePluginLoader.h:34
Buteo::StoragePlugin
Base class for storage plugins.
Definition: StoragePlugin.h:39