LMMS
Loading...
Searching...
No Matches
juce::PushNotifications::Pimpl Struct Reference
Inheritance diagram for juce::PushNotifications::Pimpl:
juce::PushNotificationsDelegate

Public Member Functions

 Pimpl (PushNotifications &p)
void requestPermissionsWithSettings (const PushNotifications::Settings &settingsToUse)
void requestSettingsUsed ()
bool areNotificationsEnabled () const
void sendLocalNotification (const Notification &n)
void getDeliveredNotifications () const
void removeAllDeliveredNotifications ()
void removeDeliveredNotification (const String &identifier)
void setupChannels (const Array< ChannelGroup > &groups, const Array< Channel > &channels)
void getPendingLocalNotifications () const
void removePendingLocalNotification (const String &identifier)
void removeAllPendingLocalNotifications ()
String getDeviceToken ()
void registeredForRemoteNotifications (NSData *deviceTokenToUse) override
void failedToRegisterForRemoteNotifications (NSError *error) override
void didReceiveRemoteNotification (NSDictionary *userInfo) override
void didDeliverNotification (NSUserNotification *notification) override
void didActivateNotification (NSUserNotification *notification) override
bool shouldPresentNotification (NSUserNotification *) override
void subscribeToTopic (const String &topic)
void unsubscribeFromTopic (const String &topic)
void sendUpstreamMessage (const String &serverSenderId, const String &collapseKey, const String &messageId, const String &messageType, int timeToLive, const StringPairArray &additionalData)

Private Attributes

PushNotificationsowner
const bool isEarlierThanLion = std::floor (NSFoundationVersionNumber) < std::floor (NSFoundationVersionNumber10_7)
const bool isAtLeastMountainLion = std::floor (NSFoundationVersionNumber) >= NSFoundationVersionNumber10_7
const bool isEarlierThanMavericks = std::floor (NSFoundationVersionNumber) < NSFoundationVersionNumber10_9
const bool isEarlierThanYosemite = std::floor (NSFoundationVersionNumber) <= NSFoundationVersionNumber10_9
bool initialised = false
String deviceToken
PushNotifications::Settings settings
Private Attributes inherited from juce::PushNotificationsDelegate
NSUniquePtr< NSObject< NSApplicationDelegate, NSUserNotificationCenterDelegate > > delegate

Additional Inherited Members

Private Member Functions inherited from juce::PushNotificationsDelegate
 PushNotificationsDelegate ()
virtual ~PushNotificationsDelegate ()

Constructor & Destructor Documentation

◆ Pimpl()

juce::PushNotifications::Pimpl::Pimpl ( PushNotifications & p)
inline

Member Function Documentation

◆ areNotificationsEnabled()

bool juce::PushNotifications::Pimpl::areNotificationsEnabled ( ) const
inline

◆ didActivateNotification()

void juce::PushNotifications::Pimpl::didActivateNotification ( NSUserNotification * notification)
inlineoverridevirtual

◆ didDeliverNotification()

void juce::PushNotifications::Pimpl::didDeliverNotification ( NSUserNotification * notification)
inlineoverridevirtual

◆ didReceiveRemoteNotification()

void juce::PushNotifications::Pimpl::didReceiveRemoteNotification ( NSDictionary * userInfo)
inlineoverridevirtual

◆ failedToRegisterForRemoteNotifications()

void juce::PushNotifications::Pimpl::failedToRegisterForRemoteNotifications ( NSError * error)
inlineoverridevirtual

◆ getDeliveredNotifications()

void juce::PushNotifications::Pimpl::getDeliveredNotifications ( ) const
inline

◆ getDeviceToken()

String juce::PushNotifications::Pimpl::getDeviceToken ( )
inline

◆ getPendingLocalNotifications()

void juce::PushNotifications::Pimpl::getPendingLocalNotifications ( ) const
inline

◆ registeredForRemoteNotifications()

void juce::PushNotifications::Pimpl::registeredForRemoteNotifications ( NSData * deviceTokenToUse)
inlineoverridevirtual

◆ removeAllDeliveredNotifications()

void juce::PushNotifications::Pimpl::removeAllDeliveredNotifications ( )
inline

◆ removeAllPendingLocalNotifications()

void juce::PushNotifications::Pimpl::removeAllPendingLocalNotifications ( )
inline

◆ removeDeliveredNotification()

void juce::PushNotifications::Pimpl::removeDeliveredNotification ( const String & identifier)
inline

◆ removePendingLocalNotification()

void juce::PushNotifications::Pimpl::removePendingLocalNotification ( const String & identifier)
inline

◆ requestPermissionsWithSettings()

void juce::PushNotifications::Pimpl::requestPermissionsWithSettings ( const PushNotifications::Settings & settingsToUse)
inline

◆ requestSettingsUsed()

void juce::PushNotifications::Pimpl::requestSettingsUsed ( )
inline

◆ sendLocalNotification()

void juce::PushNotifications::Pimpl::sendLocalNotification ( const Notification & n)
inline

◆ sendUpstreamMessage()

void juce::PushNotifications::Pimpl::sendUpstreamMessage ( const String & serverSenderId,
const String & collapseKey,
const String & messageId,
const String & messageType,
int timeToLive,
const StringPairArray & additionalData )
inline

◆ setupChannels()

void juce::PushNotifications::Pimpl::setupChannels ( const Array< ChannelGroup > & groups,
const Array< Channel > & channels )
inline

◆ shouldPresentNotification()

bool juce::PushNotifications::Pimpl::shouldPresentNotification ( NSUserNotification * )
inlineoverridevirtual

◆ subscribeToTopic()

void juce::PushNotifications::Pimpl::subscribeToTopic ( const String & topic)
inline

◆ unsubscribeFromTopic()

void juce::PushNotifications::Pimpl::unsubscribeFromTopic ( const String & topic)
inline

Member Data Documentation

◆ deviceToken

String juce::PushNotifications::Pimpl::deviceToken
private

◆ initialised

bool juce::PushNotifications::Pimpl::initialised = false
private

◆ isAtLeastMountainLion

const bool juce::PushNotifications::Pimpl::isAtLeastMountainLion = std::floor (NSFoundationVersionNumber) >= NSFoundationVersionNumber10_7
private

◆ isEarlierThanLion

const bool juce::PushNotifications::Pimpl::isEarlierThanLion = std::floor (NSFoundationVersionNumber) < std::floor (NSFoundationVersionNumber10_7)
private

◆ isEarlierThanMavericks

const bool juce::PushNotifications::Pimpl::isEarlierThanMavericks = std::floor (NSFoundationVersionNumber) < NSFoundationVersionNumber10_9
private

◆ isEarlierThanYosemite

const bool juce::PushNotifications::Pimpl::isEarlierThanYosemite = std::floor (NSFoundationVersionNumber) <= NSFoundationVersionNumber10_9
private

◆ owner

PushNotifications& juce::PushNotifications::Pimpl::owner
private

◆ settings

PushNotifications::Settings juce::PushNotifications::Pimpl::settings
private

The documentation for this struct was generated from the following file: