History

Initial creation of class - has COPY of getOperatingSystemType().

NissimHadar committed 7 years ago

Commit c28167f1 parent 4f3dd392 files · +53 −0Browse files

Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/PlatformInfoScriptingInterface.cpp+23−0
@@ -0,0 +1,23 @@
1//
2// Created by Nissim Hadar on 2018/12/28
3// Copyright 2013-2016 High Fidelity, Inc.
4//
5// Distributed under the Apache License, Version 2.0.
6// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7//
8#include "PlatformInfoScriptingInterface.h"
9
10PlatformInfoScriptingInterface* PlatformInfoScriptingInterface::getInstance() {
11 static PlatformInfoScriptingInterface sharedInstance;
12 return &sharedInstance;
13}
14
15QString PlatformInfoScriptingInterface::getOperatingSystemType() {
16#ifdef Q_OS_WIN
17 return "WINDOWS";
18#elif defined Q_OS_MAC
19 return "MACOS";
20#else
21 return "UNKNOWN";
22#endif
23}