~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to src/app/qgspluginmetadata.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                    qgspluginmetadata.h  -  Metadata class for
 
3
                    describing a loaded plugin.
 
4
                             -------------------
 
5
    begin                : Fri Feb 6 2004
 
6
    copyright            : (C) 2004 by Gary E.Sherman
 
7
    email                : sherman at mrcc.com
 
8
 ***************************************************************************/
 
9
 
 
10
/***************************************************************************
 
11
 *                                                                         *
 
12
 *   This program is free software; you can redistribute it and/or modify  *
 
13
 *   it under the terms of the GNU General Public License as published by  *
 
14
 *   the Free Software Foundation; either version 2 of the License, or     *
 
15
 *   (at your option) any later version.                                   *
 
16
 *                                                                         *
 
17
 ***************************************************************************/
 
18
/* $Id$ */
 
19
 
 
20
#ifndef QGSPLUGINMETADATA_H
 
21
#define QGSPLUGINMETADATA_H
 
22
#include <QString>
 
23
class QgisPlugin;
 
24
/**
 
25
* \class QgsPluginMetadata
 
26
* \brief Stores information about a loaded plugin, including a pointer to
 
27
* the instantiated object. This allows the plugin manager to tell the plugin to
 
28
* unload itself.
 
29
*/
 
30
class QgsPluginMetadata
 
31
{
 
32
  public:
 
33
    QgsPluginMetadata( QString _libraryPath, QString _name, QgisPlugin *_plugin );
 
34
    QString name();
 
35
    QString library();
 
36
    QgisPlugin *plugin();
 
37
  private:
 
38
    QString m_name;
 
39
    QString libraryPath;
 
40
    QgisPlugin *m_plugin;
 
41
};
 
42
#endif //QGSPLUGINMETADATA_H
 
43