_NotificationManagerImpl::_NotificationManagerImpl(void)
: __notifyPrivateId(-1)
, __notifyPrivateIdForOngoing(-1)
+ , __lastNotifyPrivateId(-1)
{
}
{
SysTryReturnResult(NID_SHELL, false, E_INVALID_ARG, "Invalid argument is used.");
}
+ __lastAppId = pAppIdChar.get();
const int badgeNumber = notifyRequest.GetBadgeNumber();
const int badgeOffset = notifyRequest.GetBadgeOffset();
const String& soundPath = notifyRequest.GetSoundFilePath();
const notification_type_e notiType = isOngoing ? NOTIFICATION_TYPE_ONGOING : NOTIFICATION_TYPE_NOTI;
int notiPrivateId = isOngoing ? __notifyPrivateIdForOngoing : __notifyPrivateId;
+ __lastNotifyPrivateId = notiPrivateId;
notification_h notiHandle = null;
bundle* pBundle = null;
bool needUpdate = false;
{
__notifyPrivateId = notiPrivateId;
}
+ __lastNotifyPrivateId = notiPrivateId;
}
else
{
return _BadgeManagerImpl::GetInstance()->RemovePrimaryBadgeEventListener(*this);
}
+int
+_NotificationManagerImpl::GetLastNotificationId(void) const
+{
+ return __lastNotifyPrivateId;
+}
+
+const Tizen::Base::String&
+_NotificationManagerImpl::GetLastAppId(void) const
+{
+ return __lastAppId;
+}
+
void
_NotificationManagerImpl::OnBadgeUpdated(const Tizen::App::AppId& appId, int badgeNumber)
{
*/
result RemoveBadgeEventListener(IBadgeEventListener& listener);
+ /*
+ * Get last notification id
+ */
+ int GetLastNotificationId(void) const;
+
+ /*
+ * Get last AppId
+ */
+ const Tizen::Base::String& GetLastAppId(void) const;
+
virtual void OnBadgeUpdated(const Tizen::App::AppId& appId, int badgeNumber);
static const _NotificationManagerImpl* GetInstance(const NotificationManager& notiMgr);
private:
int __notifyPrivateId;
int __notifyPrivateIdForOngoing;
+ int __lastNotifyPrivateId;
+ Tizen::Base::String __lastAppId;
Tizen::Base::Collection::LinkedListT<IBadgeEventListener*> __badgeEventListenerList;
}; //_NotificationManagerImpl