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>
5
namespace
NDEVR
6
{
7
class
NDEVR_WIDGETS_API
UpdateButton
:
public
Button
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
;
19
UpdateChecker
*
m_checker
;
20
};
21
}
DLLInfo.h
NDEVR_WIDGETS_API
#define NDEVR_WIDGETS_API
Definition
DLLInfo.h:81
NDEVR::Button
Definition
Button.h:60
NDEVR::UpdateButton
Definition
UpdateButton.h:8
NDEVR::UpdateButton::m_checker
UpdateChecker * m_checker
Definition
UpdateButton.h:19
NDEVR::UpdateButton::m_close_and_update_callback
std::function< void(std::function< void()>)> m_close_and_update_callback
Definition
UpdateButton.h:18
NDEVR::UpdateChecker
Definition
UpdateChecker.h:43
NDEVR
Definition
ACIColor.h:37
Widgets
Headers
UpdateButton.h