This commit is contained in:
Nathan Hourt 2015-07-22 13:17:49 -04:00
parent 63222183cd
commit 3196eb75a7
3 changed files with 40 additions and 6 deletions

View file

@ -22,7 +22,7 @@ namespace graphene { namespace chain {
{ {
struct fee_parameters_type { struct fee_parameters_type {
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION; uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10; /// only required for large memos. uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
}; };
asset fee; asset fee;

View file

@ -0,0 +1,3 @@
#include "GrapheneObject.hpp"
// This space intentionally left blank

View file

@ -0,0 +1,31 @@
#pragma once
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#include <QObject>
#include <functional>
using ObjectId = qint64;
Q_DECLARE_METATYPE(ObjectId)
Q_DECLARE_METATYPE(std::function<void()>)
class GrapheneObject : public QObject
{
Q_OBJECT
Q_PROPERTY(ObjectId id MEMBER m_id READ id NOTIFY idChanged)
ObjectId m_id;
public:
GrapheneObject(ObjectId id = -1, QObject* parent = nullptr)
: QObject(parent), m_id(id)
{}
ObjectId id() const {
return m_id;
}
Q_SIGNALS:
void idChanged();
};