| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
sparkle_bridge.h
Go to the documentation of this file.
1
27// XXX We could alternatively do this via C++:
28// https://github.com/sparkle-project/Sparkle/issues/1137
29
30
31#ifndef SPARKLE_BRIDGE_H
32#define SPARKLE_BRIDGE_H
33
39 typedef void (*sparkle_update_attention_callback_t)(void);
40
41// Callback invoked when Sparkle wants to relaunch for an update.
42// The application should save all documents and perform cleanup.
43// Call the provided proceed function pointer when ready.
44 typedef void (*sparkle_postpone_relaunch_callback_t)(void (*proceed)(void *ctx), void *ctx);
45
46// Callback invoked right before the application is relaunched.
47// Last-chance notification — cannot be vetoed.
48 typedef void (*sparkle_will_relaunch_callback_t)(void);
49
50 class SparkleBridge
51{
52
53 SparkleBridge() {}
54
55 public:
56
76 static void updateInit(const char *url, bool enabled, int interval);
77
85 static void updateCheck();
86
97 static void setUpdateCallbacks(
98 sparkle_update_attention_callback_t attention_cb,
99 sparkle_postpone_relaunch_callback_t postpone_relaunch_cb,
100 sparkle_will_relaunch_callback_t will_relaunch_cb);
101
102};
103
104#endif // SPARKLE_BRIDGE_H
SparkleBridge
Definition sparkle_bridge.h:51
SparkleBridge::updateCheck
static void updateCheck()
Definition sparkle_bridge.mm:272
SparkleBridge::updateInit
static void updateInit(const char *url, bool enabled, int interval)
Definition sparkle_bridge.mm:250
SparkleBridge::setUpdateCallbacks
static void setUpdateCallbacks(sparkle_update_attention_callback_t attention_cb, sparkle_postpone_relaunch_callback_t postpone_relaunch_cb, sparkle_will_relaunch_callback_t will_relaunch_cb)
Definition sparkle_bridge.mm:282
sparkle_update_attention_callback_t
void(* sparkle_update_attention_callback_t)(void)
Definition sparkle_bridge.h:39