Version: 0.6.0
gxremoteserverui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Remote)
3  * Purpose: wxGxRemoteServerUI 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/remoteserverui/remoteserverui.h"
25 #include "wxgis/remoteserver/gxremoteserver.h"
26 #include "wxgis/catalogui/catalogui.h"
27 
31 class WXDLLIMPEXP_GIS_RSU wxGxRemoteServerUI :
32  public wxGxRemoteServer,
33  public IGxObjectUI,
34  public IGxObjectWizard
35 {
36  DECLARE_CLASS(wxGxRemoteServerUI)
37 public:
38  wxGxRemoteServerUI(void);
39  wxGxRemoteServerUI(wxGISNetClientConnection* const pNetConn, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &SmallIco = wxNullIcon, const wxIcon &LargeIco = wxNullIcon, const wxIcon &SmalDsbIco = wxNullIcon, const wxIcon &LargeDsbIco = wxNullIcon, const wxIcon &SmallAuthIco = wxNullIcon, const wxIcon &LargeAuthIco = wxNullIcon);
40  virtual ~wxGxRemoteServerUI(void);
41  //IGxObjectUI
42  virtual wxIcon GetLargeImage(void);
43  virtual wxIcon GetSmallImage(void);
44  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxRemoteServerUI.ContextMenu"));};
45  virtual wxString NewMenu(void) const {return wxEmptyString;};
46  //IGxObjectWizard
47  virtual bool Invoke(wxWindow* pParentWnd);
48  //wxGxRemoteServer
49  virtual bool Connect(void);
50  virtual bool Disconnect(void);
51 protected:
52  //wxGxRemoteServer events
53  virtual void OnGisNetEvent(wxGISNetEvent& event);
54 protected:
55  wxIcon m_SmallIcon, m_LargeIcon;
56  wxIcon m_SmallDsblIcon, m_LargeDsblIcon;
57  wxIcon m_SmallAuthIcon, m_LargeAuthIcon;
58  long m_nGxPendingId;
59 };
The network connection interface class.
Definition: netconn.h:88
A Remote Server UI GxObject.
Definition: gxremoteserverui.h:31
Definition: catalogui.h:73
A Remote Server GxObject.
Definition: gxremoteserver.h:29
Definition: catalogui.h:60
Definition: netevent.h:34
Definition: gxobject.h:37