~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/app/qgspluginmetadata.cpp

  • 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.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$ */
 
19
 
 
20
#include "../plugins/qgisplugin.h"
 
21
#include "qgspluginmetadata.h"
 
22
QgsPluginMetadata::QgsPluginMetadata( QString _libraryPath,
 
23
                                      QString _name,
 
24
                                      QgisPlugin * _plugin ):
 
25
    m_name( _name ),
 
26
    libraryPath( _libraryPath ),
 
27
    m_plugin( _plugin )
 
28
{
 
29
 
 
30
}
 
31
 
 
32
QString QgsPluginMetadata::name()
 
33
{
 
34
  return m_name;
 
35
}
 
36
 
 
37
QString QgsPluginMetadata::library()
 
38
{
 
39
  return libraryPath;
 
40
}
 
41
 
 
42
QgisPlugin *QgsPluginMetadata::plugin()
 
43
{
 
44
  return m_plugin;
 
45
}