Andrew Meadowsfixing formatting698e37812 years agoHistory
32 lines · 926 B · C
RawDownload
////  ScriptUUID.h//  libraries/script-engine/src/////  Created by Andrew Meadows on 2014-04-07//  Copyright (c) 2014 High Fidelity, Inc. All rights reserved.////  Scriptable interface for a UUID helper class object. Used exclusively in the JavaScript API////  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_ScriptUUID_h#define hifi_ScriptUUID_h #include <QUuid> /// Scriptable interface for a UUID helper class object. Used exclusively in the JavaScript APIclass ScriptUUID : public QObject {    Q_OBJECT public slots:    QUuid fromString(const QString& string);    QString toString(const QUuid& id);    QUuid generate();    bool isEqual(const QUuid& idA, const QUuid& idB);    bool isNull(const QUuid& id);    void print(const QString& lable, const QUuid& id);}; #endif // hifi_ScriptUUID_h