23 #include "wxgis/net/net.h"
25 #include "wxgis/core/json/jsonval.h"
26 #include "wxgis/core/json/jsonreader.h"
27 #include "wxgis/core/json/jsonwriter.h"
29 #include "wx/xml/xml.h"
52 wxNetMessage(wxGISNetCommand nNetCmd = enumGISNetCmdUnk, wxGISNetCommandState nNetCmdState = enumGISNetCmdStUnk,
short nPriority = enumGISPriorityNormal,
long nId = wxNOT_FOUND);
57 bool operator != (
const wxNetMessage& obj)
const {
return !(*
this == obj); };
60 short GetPriority(
void)
const;
61 void SetPriority(
short nPriority);
62 wxGISNetCommand GetCommand(
void)
const;
63 void SetCommand(wxGISNetCommand nCmd);
64 wxGISNetCommandState GetState(
void)
const;
65 void SetState(wxGISNetCommandState nState);
67 long GetId(
void)
const;
70 wxString GetMessage(
void)
const;
71 void SetMessage(
const wxString& sMsg);
78 virtual wxObjectRefData *CreateRefData()
const;
79 virtual wxObjectRefData *CloneRefData(
const wxObjectRefData *data)
const;
95 wxNetMessageRefData( wxGISNetCommand nNetCmd = enumGISNetCmdUnk, wxGISNetCommandState nNetCmdState = enumGISNetCmdStUnk,
short nPriority = enumGISPriorityNormal,
long nId = wxNOT_FOUND );
101 void SetPriority(
short nPriority);
102 void SetState(wxGISNetCommandState nState);
103 void SetMessage(
const wxString& sMsg);
104 void SetId(
long nId);
105 void SetCommand(wxGISNetCommand nState);
109 wxGISNetCommand m_nCmd;
110 wxGISNetCommandState m_nState;
115 #ifdef wxGIS_USE_EMAIL
123 class WXDLLIMPEXP_GIS_NET wxMailMessage
126 wxMailMessage(
const wxString& subject,
const wxString& body,
const wxString& from = wxEmptyString,
const wxString& attachment = wxEmptyString,
const wxString& attachmentTitle = wxEmptyString);
131 void AddAttachment(
const wxString& attach,
const wxString& title = wxEmptyString);
133 void SetSubject(
const wxString& subject);
134 void SetBody(
const wxString& body);
135 void SetFrom(
const wxString& from);
142 wxArrayString m_attachments;
143 wxArrayString m_attachmentTitles;
146 #endif //wxGIS_USE_EMAIL
The JSON value class implementation.
Definition: jsonval.h:91