}
SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Setting the icon path failed.", GetErrorMessage(r));
}
+ // Indicator icon path
+ std::unique_ptr<char[]> pIndicatorIconPath(null);
+ _IndicatorIconStyle iconStyle = pRequestImpl->GetIndicatorIcon();
+ if (iconStyle == _INDICATOR_ICON_STYLE_NORMAL)
+ {
+ String indicatorIconPath(pIconPath.get());
+ pIndicatorIconPath.reset(_StringConverter::CopyToCharArrayN(indicatorIconPath));
+ }
+ else if (iconStyle == _INDICATOR_ICON_STYLE_DOWNLOADING)
+ {
+ pIndicatorIconPath.reset(_StringConverter::CopyToCharArrayN(L"reserved://indicator/ani/downloading"));
+ }
+ else if (iconStyle == _INDICATOR_ICON_STYLE_UPLOADING)
+ {
+ pIndicatorIconPath.reset(_StringConverter::CopyToCharArrayN(L"reserved://indicator/ani/uploading"));
+ }
// Sound file path
std::unique_ptr<char[]> pSoundPath(null);
if (!soundPath.IsEmpty())
// Set - icon file path
r = ConvertNotificationResult(notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath.get()));
SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Setting the icon path failed.", GetErrorMessage(r));
- r = ConvertNotificationResult(notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, pIconPath.get()));
+ // Set - indicator icon path
+ r = ConvertNotificationResult(notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, pIndicatorIconPath.get()));
SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Setting the indicator icon path failed.", GetErrorMessage(r));
// Set - sound file path
if (pSoundPath.get())
, __pThumbnailPathList(null)
, __lightOnTime(0)
, __lightOffTime(0)
+ , __iconStyle(_INDICATOR_ICON_STYLE_NORMAL)
{
}
, __lightColor(notificationMessage.__lightColor)
, __lightOnTime(notificationMessage.__lightOnTime)
, __lightOffTime(notificationMessage.__lightOffTime)
+ , __iconStyle(notificationMessage.__iconStyle)
{
}
__lightColor = notificationMessage.__lightColor;
__lightOnTime = notificationMessage.__lightOnTime;
__lightOffTime = notificationMessage.__lightOffTime;
+
+ __iconStyle = notificationMessage.__iconStyle;
}
return *this;
}
{
return false;
}
-
+ if (__iconStyle != pMsgImpl->__iconStyle)
+ {
+ return false;
+ }
return true;
}
^ __lightColor.GetHashCode()
^ Integer(__lightOnTime).GetHashCode()
^ Integer(__lightOffTime).GetHashCode()
+ ^ Integer(static_cast<int>(__iconStyle)).GetHashCode()
;
}
return __pThumbnailPathList;
}
+result
+_NotificationRequestImpl::SetIndicatorIcon(_IndicatorIconStyle iconStyle)
+{
+ __iconStyle = iconStyle;
+ return E_SUCCESS;
+}
+
+_IndicatorIconStyle
+_NotificationRequestImpl::GetIndicatorIcon(void) const
+{
+ return __iconStyle;
+}
+
+
_NotificationRequestImpl*
_NotificationRequestImpl::GetInstance(NotificationRequest& request)
{
class NotificationRequest;
const int INVALID_OFFSET_BADGE_NUMBER = -1000;
+enum _IndicatorIconStyle
+{
+ _INDICATOR_ICON_STYLE_NORMAL, /**< The icon is normal style */
+ _INDICATOR_ICON_STYLE_DOWNLOADING, /**< The icon is downloading style */
+ _INDICATOR_ICON_STYLE_UPLOADING /**< The icon is uploading style */
+};
+
class _OSP_EXPORT_ _NotificationRequestImpl
: public Tizen::Base::Object
{
*/
int GetOffTime(void) const;
+ /**
+ * Sets an icon style for specified %NotificationRequest instance.
+ */
+ result SetIndicatorIcon(_IndicatorIconStyle iconStyle);
+
+ /**
+ * Gets an icon style for specified %NotificationRequest instance.
+ */
+ _IndicatorIconStyle GetIndicatorIcon(void) const;
+
//
// Gets the implementation.
//
Tizen::Graphics::Color __lightColor;
int __lightOnTime;
int __lightOffTime;
+ // 2.2.1
+ _IndicatorIconStyle __iconStyle;
}; //_NotificationRequestImpl