Overte C++ Documentation
UpdateDialog.h
1 //
2 // UpdateDialog.h
3 // interface/src/ui
4 //
5 // Created by Leonardo Murillo on 6/3/15.
6 // Copyright 2015 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 #pragma once
13 #ifndef hifi_UpdateDialog_h
14 #define hifi_UpdateDialog_h
15 
16 #include <QtCore/QCoreApplication>
17 
18 #include <OffscreenQmlDialog.h>
19 
20 class UpdateDialog : public OffscreenQmlDialog {
21  Q_OBJECT
22  HIFI_QML_DECL
23 
24  Q_PROPERTY(QString updateAvailableDetails READ updateAvailableDetails CONSTANT)
25  Q_PROPERTY(QString releaseNotes READ releaseNotes CONSTANT)
26 
27 public:
28  UpdateDialog(QQuickItem* parent = nullptr);
29  const QString& updateAvailableDetails() const;
30  const QString& releaseNotes() const;
31 
32 private:
33  QString _updateAvailableDetails;
34  QString _releaseNotes;
35 
36 protected:
37  Q_INVOKABLE void triggerUpgrade();
38 
39 };
40 
41 #endif // hifi_UpdateDialog_h