History

cleanup DSC api, add scripting interface

Stephen Birarda committed 12 years ago

Commit 36137731 parent 340ae8e7 files · +122 −78Browse files

Showing the changes to libraries/script-engine/src/DataServerScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

libraries/script-engine/src/DataServerScriptingInterface.cpp+21−0
@@ -0,0 +1,21 @@
1//
2// DataServerScriptingInterface.cpp
3// hifi
4//
5// Created by Stephen Birarda on 1/20/2014.
6// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
7//
8
9#include <DataServerClient.h>
10
11#include "DataServerScriptingInterface.h"
12
13DataServerScriptingInterface::DataServerScriptingInterface() :
14 _uuid(QUuid::createUuid())
15{
16
17}
18
19void DataServerScriptingInterface::setValueForKey(const QString& key, const QString& value) {
20 DataServerClient::putValueForKeyAndUUID(key, value, _uuid);
21}