|
@ -67,7 +67,7 @@ class CompilationResult: public QObject |
|
|
Q_PROPERTY(QContractDefinition* contract READ contract) |
|
|
Q_PROPERTY(QContractDefinition* contract READ contract) |
|
|
Q_PROPERTY(QString compilerMessage READ compilerMessage CONSTANT) |
|
|
Q_PROPERTY(QString compilerMessage READ compilerMessage CONSTANT) |
|
|
Q_PROPERTY(bool successful READ successful CONSTANT) |
|
|
Q_PROPERTY(bool successful READ successful CONSTANT) |
|
|
Q_PROPERTY(QString contractDefinition READ contractDefinition CONSTANT) |
|
|
Q_PROPERTY(QString contractInterface READ contractInterface CONSTANT) |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
/// Empty compilation result constructor
|
|
|
/// Empty compilation result constructor
|
|
@ -90,7 +90,7 @@ public: |
|
|
/// @returns contract bytecode in human-readable form
|
|
|
/// @returns contract bytecode in human-readable form
|
|
|
QString assemblyCode() const { return m_assemblyCode; } |
|
|
QString assemblyCode() const { return m_assemblyCode; } |
|
|
/// @returns contract definition in JSON format
|
|
|
/// @returns contract definition in JSON format
|
|
|
QString contractDefinition() const { return m_contractDefinition; } |
|
|
QString contractInterface() const { return m_contractInterface; } |
|
|
/// Get code highlighter
|
|
|
/// Get code highlighter
|
|
|
std::shared_ptr<CodeHighlighter> codeHighlighter() { return m_codeHighlighter; } |
|
|
std::shared_ptr<CodeHighlighter> codeHighlighter() { return m_codeHighlighter; } |
|
|
|
|
|
|
|
@ -101,7 +101,7 @@ private: |
|
|
QString m_compilerMessage; ///< @todo: use some structure here
|
|
|
QString m_compilerMessage; ///< @todo: use some structure here
|
|
|
dev::bytes m_bytes; |
|
|
dev::bytes m_bytes; |
|
|
QString m_assemblyCode; |
|
|
QString m_assemblyCode; |
|
|
QString m_contractDefinition; |
|
|
QString m_contractInterface; |
|
|
std::shared_ptr<CodeHighlighter> m_codeHighlighter; |
|
|
std::shared_ptr<CodeHighlighter> m_codeHighlighter; |
|
|
|
|
|
|
|
|
friend class CodeModel; |
|
|
friend class CodeModel; |
|
@ -142,7 +142,7 @@ signals: |
|
|
/// Emitted if there are any changes in the code model
|
|
|
/// Emitted if there are any changes in the code model
|
|
|
void codeChanged(); |
|
|
void codeChanged(); |
|
|
/// Emitted if there are any changes in the contract interface
|
|
|
/// Emitted if there are any changes in the contract interface
|
|
|
void contractDefinitionChanged(); |
|
|
void contractInterfaceChanged(); |
|
|
/// Emitted on compilation complete. Internal
|
|
|
/// Emitted on compilation complete. Internal
|
|
|
void compilationCompleteInternal(CompilationResult* _newResult); |
|
|
void compilationCompleteInternal(CompilationResult* _newResult); |
|
|
|
|
|
|
|
|