API Documentation
Loading...
Searching...
No Matches
UpdateButton.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Button.h>
4#include <NDEVR/UpdateChecker.h>
5namespace NDEVR
6{
8 {
9 public:
10 explicit UpdateButton(QWidget* parent = nullptr);
11 void setUpdateChecker(UpdateChecker* checker);
12 void setUpdateAndCloseAppCallback(const std::function<void(std::function<void()>)>& close_and_update_callback);
13 bool hasChecker() const;
14 protected slots:
15 void updateStateSlot();
16 void updatePercentSlot();
17 protected:
18 std::function<void(std::function<void()>)> m_close_and_update_callback;
20 };
21}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
Definition Button.h:60
Definition UpdateButton.h:8
UpdateChecker * m_checker
Definition UpdateButton.h:19
std::function< void(std::function< void()>)> m_close_and_update_callback
Definition UpdateButton.h:18
Definition UpdateChecker.h:43
Definition ACIColor.h:37