Version: 0.6.0
gxdbconnections.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxDBConnections class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011,2013 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/catalog/catalog.h"
24 #include "wxgis/catalog/gxfolder.h"
25 #include "wxgis/catalog/gxcatalog.h"
26 #include "wxgis/catalog/gxevent.h"
27 
35 class WXDLLIMPEXP_GIS_CLT wxGxDBConnections :
36  public wxGxFolder,
38 {
39  DECLARE_DYNAMIC_CLASS(wxGxDBConnections)
40 public:
41  wxGxDBConnections(void);
42  virtual ~wxGxDBConnections(void);
43  //wxGxObject
44  virtual bool Create(wxGxObject *oParent = NULL, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
45  virtual wxString GetCategory(void) const {return wxString(_("Database connections folder"));};
46  virtual void Refresh(void);
47  //wxGxObjectContainer
48  virtual bool CanCreate(long nDataType, long DataSubtype);
49  //wxGxObjectContainer
50  virtual bool AreChildrenViewable(void) const {return true;};
51  //IGxRootObjectProperties
52  virtual void Init(wxXmlNode* const pConfigNode);
53  virtual void Serialize(wxXmlNode* const pConfigNode);
54 
55 protected:
56  virtual void StartWatcher(void);
57  virtual void LoadChildren(void);
58 protected:
59  wxString m_sInternalPath;
60  wxGxCatalog* m_pCatalog;
61 };
62 
Definition: gxfolder.h:33
Definition: gxcatalog.h:42
Definition: catalog.h:72
Definition: gxdbconnections.h:35
Definition: gxobject.h:37