~ubuntu-branches/ubuntu/breezy/qgis/breezy

« back to all changes in this revision

Viewing changes to src/qgsproviderregistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2004-12-21 09:46:27 UTC
  • Revision ID: james.westby@ubuntu.com-20041221094627-r9lb6mlz2o3yp8gn
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                    qgsproviderregistry.h  -  Singleton class for
 
3
                    registering data providers.
 
4
                             -------------------
 
5
    begin                : Sat Jan 10 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: qgsproviderregistry.h,v 1.4 2004/01/29 02:21:56 gsherman Exp $ */
 
19
 
 
20
#ifndef QGSPROVIDERREGISTRY_H
 
21
#define QGSPROVIDERREGISTRY_H
 
22
#include <map>
 
23
class QgsProviderMetadata;
 
24
class QString;
 
25
 
 
26
class QgsProviderRegistry
 
27
{
 
28
public:
 
29
 static QgsProviderRegistry* instance(const char *pluginPath=0);
 
30
 QString library(QString providerKey);
 
31
 QString pluginList(bool asHtml=false);
 
32
 QString libDirectory();
 
33
 void setLibDirectory(QString path);
 
34
protected:
 
35
 QgsProviderRegistry(const char *pluginPath);
 
36
private:
 
37
 static QgsProviderRegistry* _instance;
 
38
 std::map<QString,QgsProviderMetadata*> provider;
 
39
 //! directory provider plugins are installed in
 
40
 QString libDir;
 
41
};
 
42
#endif //QGSPROVIDERREGISTRY_H
 
43