~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxCrafterCB/wxcLib/wxcNetworkCommand.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 WXCNETWORKCOMMAND_H
 
2
#define WXCNETWORKCOMMAND_H
 
3
 
 
4
#include "wxcLib/wxcEnums.h"
 
5
#include "wxcLib/json_node.h"
 
6
 
 
7
class wxcNetworkCommand
 
8
{
 
9
    wxCrafter::eCommandType m_commandType;
 
10
    wxString                m_filename;
 
11
 
 
12
public:
 
13
    wxcNetworkCommand();
 
14
    wxcNetworkCommand(const wxString& json);
 
15
    virtual ~wxcNetworkCommand();
 
16
    
 
17
    void SetCommandType(const wxCrafter::eCommandType& commandType) {
 
18
        this->m_commandType = commandType;
 
19
    }
 
20
    void SetFilename(const wxString& filename) {
 
21
        this->m_filename = filename;
 
22
    }
 
23
    const wxCrafter::eCommandType& GetCommandType() const {
 
24
        return m_commandType;
 
25
    }
 
26
    const wxString& GetFilename() const {
 
27
        return m_filename;
 
28
    }
 
29
 
 
30
    // Serialization API
 
31
    void FromJSON(const JSONElement& json);
 
32
    JSONElement ToJSON() const;
 
33
};
 
34
 
 
35
#endif // WXCNETWORKCOMMAND_H