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

« back to all changes in this revision

Viewing changes to src/core/qgsdatamanager.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
 
                          qgsdatamanager.cpp
3
 
                             -------------------
4
 
    begin                : 24, August 2005
5
 
    copyright            : (C) 2005 by Mark Coletti
6
 
    email                : mcoletti -> gmail.com
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#include "qgsdatamanager.h"
19
 
#include "qgsmaplayer.h"
20
 
#include "qgsvectordataprovider.h"
21
 
#include "qgsproviderregistry.h"
22
 
 
23
 
 
24
 
 
25
 
static const char* const ident_ = "$Id: qgsdatamanager.cpp 4502 2006-01-08 01:18:20Z timlinux $";
26
 
 
27
 
 
28
 
 
29
 
QgsDataManager * QgsDataManager::instance_ = 0x0;
30
 
 
31
 
 
32
 
QgsDataManager::QgsDataManager()
33
 
{
34
 
} // QgsDataManager ctor
35
 
 
36
 
 
37
 
 
38
 
QgsDataManager::~QgsDataManager()
39
 
{
40
 
  if ( instance_ )
41
 
  {
42
 
    delete instance_;
43
 
  }
44
 
} // QgsDataManager dtor
45
 
 
46
 
 
47
 
 
48
 
 
49
 
QgsDataManager &
50
 
QgsDataManager::instance()
51
 
{
52
 
  if ( ! instance_ )
53
 
  {
54
 
    instance_ = new QgsDataManager;
55
 
  }
56
 
  
57
 
  return *instance_;
58
 
} // QgsDataManager::instance()
59
 
 
60
 
 
61
 
 
62
 
bool QgsDataManager::openVector( QString const & name )
63
 
{
64
 
  // find the default provider that can handle the given name
65
 
  
66
 
  // note that we may already have the provider
67
 
  
68
 
  // create a QgsDataSourceLayer for the provider
69
 
  return false;
70
 
} // QgsDataManager::openVector
71
 
 
72
 
 
73
 
 
74
 
bool QgsDataManager::openVector( QString const & name, QgsDataProvider & provider )
75
 
{
76
 
  return false;
77
 
} // QgsDataManager::openVector
78
 
 
79
 
 
80
 
 
81
 
bool QgsDataManager::openRaster( QString const & name )
82
 
{
83
 
  return false;
84
 
} // QgsDataManager::openRaster
85
 
 
86
 
 
87
 
 
88
 
bool QgsDataManager::openRaster( QString const & name, QgsDataProvider & provider )
89
 
{
90
 
  return false;
91
 
} // QgsDataManager::openRaster
92
 
 
93