Overte C++ Documentation
AvatarCertifyBanner.h
1 //
2 // AvatarCertifyBanner.h
3 // interface/src/ui
4 //
5 // Created by Simon Walton, April 2019
6 // Copyright 2019 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_AvatarCertifyBanner_h
13 #define hifi_AvatarCertifyBanner_h
14 
15 #include <QUuid>
16 #include "OffscreenQmlElement.h"
17 #include "EntityItemID.h"
18 
19 class EntityItemID;
20 
21 class AvatarCertifyBanner : QObject {
22  Q_OBJECT
23  HIFI_QML_DECL
24 public:
25  AvatarCertifyBanner(QQuickItem* parent = nullptr);
26  void show(const QUuid& avatarID);
27  void clear();
28 
29 private:
30  const EntityItemID _bannerID { QUuid::createUuid() };
31  bool _active { false };
32 };
33 
34 #endif // hifi_AvatarCertifyBanner_h
Abstract ID for editing model items. Used in EntityItem JS API.
Definition: EntityItemID.h:28