stub files

This commit is contained in:
howard-stearns 2017-08-07 12:51:30 -07:00
parent 36453644e0
commit 9bad26c2db
7 changed files with 120 additions and 0 deletions

View file

@ -193,6 +193,8 @@
#include <src/scripting/LimitlessVoiceRecognitionScriptingInterface.h>
#include <EntityScriptClient.h>
#include <ModelScriptingInterface.h>
#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<CloseEventSender>();
DependencyManager::set<ResourceManager>();
DependencyManager::set<ContextOverlayInterface>();
DependencyManager::set<Ledger>();
DependencyManager::set<Wallet>();
return previousSessionCrashed;
}

View file

@ -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"

View file

@ -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 <DependencyManager.h>
class Ledger : public QObject, public Dependency {
Q_OBJECT
SINGLETON_DEPENDENCY
};
#endif // hifi_Ledger_h

View file

@ -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)

View file

@ -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 <OffscreenQmlDialog.h>
class QmlCommerce : public OffscreenQmlDialog {
Q_OBJECT
HIFI_QML_DECL
};
#endif // hifi_QmlCommerce_h

View file

@ -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"

View file

@ -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 <DependencyManager.h>
class Wallet : public QObject, public Dependency {
Q_OBJECT
SINGLETON_DEPENDENCY
};
#endif // hifi_Wallet_h