Version: 0.6.0
gxremoteserver.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Remote)
3  * Purpose: wxGxRemoteServer class.
4  * Author: Baryshnikov Dmitriy (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2012 Bishop
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 
22 #pragma once
23 
24 #include "wxgis/remoteserver/rxobjectclient.h"
25 
29 class WXDLLIMPEXP_GIS_RS wxGxRemoteServer :
30  public wxRxCatalog
31 {
32  DECLARE_CLASS(wxGxRemoteServer)
33 public:
34  wxGxRemoteServer(void);
35  wxGxRemoteServer(wxGISNetClientConnection* const pNetConn, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
36  virtual ~wxGxRemoteServer(void);
37  //wxGxObject
38  virtual wxString GetBaseName(void) const {return GetName();};
39  virtual wxString GetFullName(void) const {return wxEmptyString;};
40  virtual wxString GetCategory(void) const {return wxString(_("Remote Server"));};
41  virtual bool Destroy(void);
42  //wxGxObjectContainer
43  virtual bool AreChildrenViewable(void){return true;};
44  //wxGxRemoteServer
45  virtual bool Connect(void);
46  virtual bool Disconnect(void);
47  virtual bool IsConnected(void);
48  //events
49  virtual void OnGisNetEvent(wxGISNetEvent& event);
50  protected:
51  bool m_bAuth;
52  long m_ConnectionPointNetCookie;
53 private:
54  DECLARE_EVENT_TABLE()
55 };
The network connection interface class.
Definition: netconn.h:88
A Remote Server GxObject.
Definition: gxremoteserver.h:29
Definition: netevent.h:34
The root of Remote GxObjects (RxObjects).
Definition: rxobjectclient.h:75
Definition: gxobject.h:37