LibEngsas
efilesystemplugin.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef EFILESYSTEMPLUGIN_H
22 #define EFILESYSTEMPLUGIN_H
23 
24 #include <efileserviceplugin.h>
25 
26 #if QT_VERSION >= 0x050000
27 #include <QtPlugin>
28 #endif
29 
37 {
38  Q_OBJECT
39  Q_INTERFACES ( EFileServicePlugin )
40 #if QT_VERSION >= 0x050000
41  Q_PLUGIN_METADATA(IID LibEngsasEfileServicePluginIID FILE "efilesystemplugin.json")
42 #endif
43  Q_PROPERTY(QString name READ name)
44  Q_PROPERTY(QString description READ description)
45  public:
46  EFileSystemPlugin(QObject *parent = NULL) : EFileServicePlugin( ) { Q_UNUSED(parent); };
47 
48  QString name() const;
49  QString serviceId() const;
50  QString description() const;
51 
55  EFileInfo info(QString uniqueId) const;
59  EFileInfo add(QFileInfo info, bool create) const;
60  bool move(EFileInfo source, QString target) const;
61  bool copy(EFileInfo source, QString target) const;
62  bool deleteFile(EFileInfo file) const;
63  bool open(EFileInfo file);
65 };
66 
67 #endif // EFILESYSTEMPLUGIN_H