mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// NotificationService.h
|
||||
// Copyright ROBLOX Corp 2014
|
||||
//
|
||||
// Created by Ganesh Agrawal on 5/15/14.
|
||||
//
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "V8Tree/Instance.h"
|
||||
#include "V8Tree/Service.h"
|
||||
|
||||
namespace RBX
|
||||
{
|
||||
extern const char* const sNotificationService;
|
||||
class NotificationService
|
||||
: public DescribedNonCreatable<NotificationService, Instance, sNotificationService, Reflection::ClassDescriptor::INTERNAL>
|
||||
, public Service
|
||||
{
|
||||
private:
|
||||
typedef DescribedNonCreatable<NotificationService, Instance, sNotificationService, Reflection::ClassDescriptor::INTERNAL> Super;
|
||||
|
||||
bool canUseService();
|
||||
|
||||
public:
|
||||
NotificationService();
|
||||
|
||||
rbx::signal<void(int, int, std::string, int)> scheduleNotificationSignal;
|
||||
rbx::signal<void(int, int)> cancelNotificationSignal;
|
||||
rbx::signal<void(int)> cancelAllNotificationSignal;
|
||||
rbx::signal<void(int, boost::function<void(shared_ptr<const Reflection::ValueArray>)>, boost::function<void(std::string)>)> getScheduledNotificationsSignal;
|
||||
|
||||
|
||||
void scheduleNotification(int userId, int alertId, std::string alerMsg, int minutesToFire);
|
||||
void cancelNotification(int userId, int alertId);
|
||||
void cancelAllNotification(int userId);
|
||||
void getScheduledNotifications(int userId, boost::function<void(shared_ptr<const Reflection::ValueArray>)> resumeFunction, boost::function<void(std::string)> errorFunction);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user