~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxCrafterCB/wxcLib/wxcNetworkReply.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef WXCNETWORKREPLY_H
 
2
#define WXCNETWORKREPLY_H
 
3
 
 
4
#include "wxcLib/wxcEnums.h"
 
5
#include "wxcLib/json_node.h"
 
6
#include <wx/filename.h>
 
7
#include <vector>
 
8
 
 
9
class wxcNetworkReply
 
10
{
 
11
    wxCrafter::eReplyType   m_replyType;
 
12
    std::vector<wxFileName> m_files;
 
13
    wxString                m_wxcpFile;
 
14
 
 
15
public:
 
16
    wxcNetworkReply();
 
17
    wxcNetworkReply(const wxString &json);
 
18
    virtual ~wxcNetworkReply();
 
19
 
 
20
    // Serialization API
 
21
    void FromJSON(const JSONElement& json);
 
22
    JSONElement ToJSON() const;
 
23
 
 
24
    void SetFiles(const std::vector<wxFileName>& files) {
 
25
        this->m_files = files;
 
26
    }
 
27
    void SetReplyType(const wxCrafter::eReplyType& replyType) {
 
28
        this->m_replyType = replyType;
 
29
    }
 
30
    const std::vector<wxFileName>& GetFiles() const {
 
31
        return m_files;
 
32
    }
 
33
    const wxCrafter::eReplyType& GetReplyType() const {
 
34
        return m_replyType;
 
35
    }
 
36
    void SetWxcpFile(const wxString& wxcpFile) {
 
37
        this->m_wxcpFile = wxcpFile;
 
38
    }
 
39
    const wxString& GetWxcpFile() const {
 
40
        return m_wxcpFile;
 
41
    }
 
42
};
 
43
 
 
44
#endif // WXCNETWORKREPLY_H