Version: 0.6.0
gxdiscconnection.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxDiscConnection class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2010,2012-2014 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/gxfolder.h"
24 #include "wxgis/catalog/gxcatalog.h"
25 #include "wxgis/catalog/gxevent.h"
26 
27 #define TM_CHECKING 950
28 
36 class WXDLLIMPEXP_GIS_CLT wxGxDiscConnection :
37  public wxGxFolder
38 {
39  DECLARE_DYNAMIC_CLASS(wxGxDiscConnection)
40  enum
41  {
42  TIMER_ID = 1016
43  };
44 public:
45  wxGxDiscConnection(void);
46  wxGxDiscConnection(wxGxObject *oParent, int nStoreId, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
47  virtual ~wxGxDiscConnection(void);
48  //wxGxObject
49  virtual wxString GetCategory(void){return wxString(_("Folder connection"));};
50  virtual void Refresh(void);
51  //IGxObjectEdit
52  virtual bool Delete(void);
53  virtual bool CanDelete(void) const {return false;};
54  virtual bool Rename(const wxString& NewName);
55  virtual int GetStoreId(void) const {return m_nStoreId;};
56 protected:
57  virtual void StartWatcher(void);
58  virtual void LoadChildren(void);
59 
60 protected:
61  wxCriticalSection m_CritSect;
62  int m_nStoreId;
63  wxGxCatalog* m_pCatalog;
64 };
Definition: gxfolder.h:33
Definition: gxcatalog.h:42
Definition: gxdiscconnection.h:36
Definition: gxobject.h:37