Version: 0.6.0
netfactory.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Remote)
3  * Purpose: network classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010,2012 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 
22 #pragma once
23 
24 #include "wxgis/core/core.h"
25 #include "wxgis/net/netconn.h"
26 
27 #include <wx/dynarray.h>
28 #include <wx/event.h>
29 
33 class WXDLLIMPEXP_GIS_NET INetConnFactory :
35  public wxEvtHandler
36 {
37  DECLARE_ABSTRACT_CLASS(INetConnFactory)
38 public:
39  virtual ~INetConnFactory(void);
40  virtual bool StartServerSearch();
41  virtual bool CanStartServerSearch();
42  virtual bool StopServerSearch();
43  virtual bool CanStopServerSearch();
44  virtual bool IsServerSearching();
45  virtual wxString GetName(void) const;
46  virtual wxGISNetClientConnection* const GetConnection(const wxJSONValue &oProperties);
52  virtual void Serialize(wxXmlNode* pConfigNode, bool bSave = true);
53 
54  //virtual char GetID(void) = 0;
55  //virtual void SetID(char nID) = 0;
56 };
57 
58 //WX_DECLARE_USER_EXPORTED_OBJARRAY(INetConnFactory, wxNetConnFactoryArray, WXDLLIMPEXP_GIS_NET);
59 WX_DEFINE_ARRAY_WITH_DECL_PTR(INetConnFactory *, wxNetConnFactoryArray, class WXDLLIMPEXP_GIS_NET);
The JSON value class implementation.
Definition: jsonval.h:91
The network connection factory interface class.
Definition: netfactory.h:33
The network connection interface class.
Definition: netconn.h:88
Definition: pointer.h:34