~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/qgspluginmetadata.cpp

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                    qgspluginmetadata.cpp  -  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: qgspluginmetadata.cpp,v 1.2 2004/02/13 06:04:12 gsherman Exp $ */
19
 
 
20
 
#include <qstring.h>
21
 
#include "../plugins/qgisplugin.h"
22
 
#include "qgspluginmetadata.h"
23
 
QgsPluginMetadata::QgsPluginMetadata(QString _libraryPath, QString _name, QgisPlugin * _plugin):libraryPath(_libraryPath), m_name(_name),
24
 
m_plugin(_plugin)
25
 
{
26
 
 
27
 
}
28
 
 
29
 
QString QgsPluginMetadata::name()
30
 
{
31
 
  return m_name;
32
 
}
33
 
 
34
 
QString QgsPluginMetadata::library()
35
 
{
36
 
  return libraryPath;
37
 
}
38
 
 
39
 
QgisPlugin *QgsPluginMetadata::plugin()
40
 
{
41
 
  return m_plugin;
42
 
}