From 9bad26c2dbc3b611ac86c009c52ab5e9303db3c7 Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Mon, 7 Aug 2017 12:51:30 -0700 Subject: [PATCH] stub files --- interface/src/Application.cpp | 4 ++++ interface/src/commerce/Ledger.cpp | 12 ++++++++++++ interface/src/commerce/Ledger.h | 25 +++++++++++++++++++++++++ interface/src/commerce/QmlCommerce.cpp | 16 ++++++++++++++++ interface/src/commerce/QmlCommerce.h | 26 ++++++++++++++++++++++++++ interface/src/commerce/Wallet.cpp | 12 ++++++++++++ interface/src/commerce/Wallet.h | 25 +++++++++++++++++++++++++ 7 files changed, 120 insertions(+) create mode 100644 interface/src/commerce/Ledger.cpp create mode 100644 interface/src/commerce/Ledger.h create mode 100644 interface/src/commerce/QmlCommerce.cpp create mode 100644 interface/src/commerce/QmlCommerce.h create mode 100644 interface/src/commerce/Wallet.cpp create mode 100644 interface/src/commerce/Wallet.h diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 2bc1d1e20e..6af4d75c1e 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -193,6 +193,8 @@ #include #include #include +#include "commerce/Ledger.h" +#include "commerce/Wallet.h" // On Windows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU // FIXME seems to be broken. @@ -598,6 +600,8 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { DependencyManager::set(); DependencyManager::set(); DependencyManager::set(); + DependencyManager::set(); + DependencyManager::set(); return previousSessionCrashed; } diff --git a/interface/src/commerce/Ledger.cpp b/interface/src/commerce/Ledger.cpp new file mode 100644 index 0000000000..71e5ac3fee --- /dev/null +++ b/interface/src/commerce/Ledger.cpp @@ -0,0 +1,12 @@ +// +// Ledger.cpp +// interface/src/commerce +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#include "Ledger.h" diff --git a/interface/src/commerce/Ledger.h b/interface/src/commerce/Ledger.h new file mode 100644 index 0000000000..e04bad6198 --- /dev/null +++ b/interface/src/commerce/Ledger.h @@ -0,0 +1,25 @@ +// +// Ledger.h +// interface/src/commerce +// +// Bottlenecks all interaction with the blockchain or other ledger system. +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#ifndef hifi_Ledger_h +#define hifi_Ledger_h + +#include + +class Ledger : public QObject, public Dependency { + Q_OBJECT + SINGLETON_DEPENDENCY + +}; + +#endif // hifi_Ledger_h diff --git a/interface/src/commerce/QmlCommerce.cpp b/interface/src/commerce/QmlCommerce.cpp new file mode 100644 index 0000000000..d8521330fd --- /dev/null +++ b/interface/src/commerce/QmlCommerce.cpp @@ -0,0 +1,16 @@ +// +// Commerce.cpp +// interface/src/commerce +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#include "QmlCommerce.h" +#include "Application.h" +#include "DependencyManager.h" + +HIFI_QML_DEF(QmlCommerce) diff --git a/interface/src/commerce/QmlCommerce.h b/interface/src/commerce/QmlCommerce.h new file mode 100644 index 0000000000..ecd366cece --- /dev/null +++ b/interface/src/commerce/QmlCommerce.h @@ -0,0 +1,26 @@ +// +// Commerce.h +// interface/src/commerce +// +// Guard for safe use of Commerce (Wallet, Ledger) by authorized QML. +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#pragma once +#ifndef hifi_QmlCommerce_h +#define hifi_QmlCommerce_h + +#include + +class QmlCommerce : public OffscreenQmlDialog { + Q_OBJECT + HIFI_QML_DECL + +}; + +#endif // hifi_QmlCommerce_h diff --git a/interface/src/commerce/Wallet.cpp b/interface/src/commerce/Wallet.cpp new file mode 100644 index 0000000000..a33510a904 --- /dev/null +++ b/interface/src/commerce/Wallet.cpp @@ -0,0 +1,12 @@ +// +// Wallet.cpp +// interface/src/commerce +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#include "Wallet.h" diff --git a/interface/src/commerce/Wallet.h b/interface/src/commerce/Wallet.h new file mode 100644 index 0000000000..5bc9cbc3a9 --- /dev/null +++ b/interface/src/commerce/Wallet.h @@ -0,0 +1,25 @@ +// +// Wallet.h +// interface/src/commerce +// +// API for secure keypair management +// +// Created by Howard Stearns on 8/4/17. +// Copyright 2017 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#ifndef hifi_Wallet_h +#define hifi_Wallet_h + +#include + +class Wallet : public QObject, public Dependency { + Q_OBJECT + SINGLETON_DEPENDENCY + +}; + +#endif // hifi_Wallet_h