summaryrefslogtreecommitdiff
path: root/gui/handlers.cpp
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-16 21:28:48 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-06-26 12:12:41 +0200
commitc17b5f6f7b6b28c890764688ff5e966ecebece63 (patch)
tree4c9931b10e7cddd9050f76aff95205dbf04d6d26 /gui/handlers.cpp
parenta18e61aa1be37aa568552c69fbd743d25498b9bb (diff)
[feat] re-implement donation reminders
first pass on giving functionality to the donation reminder
Diffstat (limited to 'gui/handlers.cpp')
-rw-r--r--gui/handlers.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/gui/handlers.cpp b/gui/handlers.cpp
index e37de2d..39a5746 100644
--- a/gui/handlers.cpp
+++ b/gui/handlers.cpp
@@ -1,5 +1,7 @@
#include <QTimer>
#include <QDebug>
+#include <QDesktopServices>
+#include <QUrl>
#include "handlers.h"
#include "lib/libgoshim.h"
@@ -23,9 +25,19 @@ void Backend::unblock()
Unblock();
}
-void Backend::toggleDonate()
+void Backend::donateAccepted()
{
- ToggleDonate();
+ DonateAccepted();
+}
+
+void Backend::donateRejected()
+{
+ DonateRejected();
+}
+
+void Backend::openURL(QString link)
+{
+ QDesktopServices::openUrl(QUrl(link));
}
void Backend::quit()