1
//MountManager - the program for easy mounting of storage devices in Linux
2
//Copyright (C) 2007-2008 Tikhonov Sergey
4
//This file is part of MountManager Gui
6
//This program is free software; you can redistribute it and/or
7
//modify it under the terms of the GNU General Public License
8
//as published by the Free Software Foundation; either version 2
9
//of the License, or (at your option) any later version.
11
//This program is distributed in the hope that it will be useful,
12
//but WITHOUT ANY WARRANTY; without even the implied warranty of
13
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
//GNU General Public License for more details.
16
//You should have received a copy of the GNU General Public License
17
//along with this program; if not, write to the Free Software
18
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
#ifndef PLUGININTERFACE_H
20
#define PLUGININTERFACE_H
31
typedef QList<QAction *> Actions;
33
class MountManagerPlugin
36
virtual ~MountManagerPlugin() { }
38
// parent recieve signals about main program status
39
virtual void setParent(QObject *parent) = 0;
41
// Information about plugin
42
virtual const QString pluginName() const = 0;
43
virtual const QString pluginDescription() const = 0;
45
virtual QDialog *dialog() const = 0;
46
virtual QDockWidget *dockWidget() const = 0;
47
virtual QMenu *menu() const = 0;
48
virtual QToolBar *toolBar() const = 0;
50
virtual Actions menuActions() const = 0;
53
Q_DECLARE_INTERFACE(MountManagerPlugin,"org.vialinx.MountManager.MountManagerPlugin/1.0")