{
public:
- StatusNotification(NotificationType type); //type.
- StatusNotification(void* noti); // notification
- StatusNotification(int privID); //private ID of Notification.
+ explicit StatusNotification(NotificationType type); //type.
+ explicit StatusNotification(void* noti); // notification
+ explicit StatusNotification(int privID); //private ID of Notification.
~StatusNotification();
-
+
+#if 0
NotificationProgressType getProgressType()
{
return m_progressType;
}
-
- std::string getEnumProgressType();
-
void setProgressType( NotificationProgressType type)
{
m_progressType = type;
}
+#endif
+
+ std::string getEnumProgressType();
+
+
void setUpdatedFlag(bool value)
{
if (value)
- LogDebug("set True");
+ LoggerD("set True");
m_notiUpdated = value;
}
time_t getPostedTime();
std::string getTitle();
void setTitle(std::string title);
+
std::string getContent();
+ char* getStrContent();
void setContent(std::string content);
std::string getIconPath() ;
bool getDefaultVibration() ;
void setDefaultVibration(const bool& vibration) ;
-
- double getProgressValue() ;
- void setProgressValue(const double & progressValue) ;
+
+ NotificationProgressType getProgressType();
+ void setProgressType(NotificationProgressType type);
+
+ double getProgressValue() ;
+ void setProgressValue(const double & progressValue);
std::string getSubIconPath() ;
void setSubIconPath(const std::string& subIconPath) ;
std::string getBackground() ;
void setBackground(const std::string imagePath) ;
- unsigned int getNumber() ;
- void setNumber(const unsigned int number) ;
-
+ long getNumber() ;
+ const char* getStrNumber() ;
+ void setNumber(const long number) ;
//void setStatusType(NotificationType type);
DeviceAPI::Application::ApplicationControlPtr getApplicationControl();
void setApplicationId(const std::string& appId);
std::string getApplicationId();
+ std::string getLight();
+ void setLight(std::string color);
+
+ unsigned long getLightOnTime();
+ void setLightOnTime(unsigned long onTime);
+
+ unsigned long getLightOffTime();
+ void setLightOffTime(unsigned long offTime);
+
void* getNotificationHandle();
void setNotificationHandle(void *handle);
protected:
- //NotificationType m_notiType;
NotificationType m_notiType;
service_h m_service;
notification_h m_notiHandle;
std::vector<std::string> m_thumbs; //thumbnail images path
std::vector<NotificationDetailInfo*> m_detailInfos; // detail Info
-
-#if 0
-public:
- StatusNotification();
- virtual ~StatusNotification();
-
- std::string getStatusType() const;
- void setStatusType(std::string statusType);
-
- std::string getIconPath() const;
- void setIconPath(std::string iconPath);
-
- std::string getSubIconPath() const;
- void setSubIconPath(std::string subIconPath);
-
- long getNumber() const;
- void setNumber(long number);
-
- std::vector<NotificationDetailInfo*> getDetailInfo() const;
- void setDetailInfo(std::vector<NotificationDetailInfo*> detailInfo);
-
- std::string getBackgroundImagePath() const;
- void setBackgroundImagePath(std::string backgroundImagePath);
-
- std::vector<std::string> getThumbnails() const;
- void setThumbnails(std::vector<std::string> thumbnails);
-
- std::string getSoundPath() const;
- void setSoundPath(std::string soundPath);
-
- bool getVibration() const;
- void setVibration(bool vibration);
-
- ApplicationControl getAppControl() const;
- void setAppControl(ApplicationControl appControl);
-
- ApplicationId getAppId() const;
- void setAppId(ApplicationId appId);
-
- std::string getProgressType() const;
- void setProgressType(std::string progressType);
-
- unsigned long getProgressValue() const;
- void setProgressValue(unsigned long progressValue);
-
-private:
- std::string m_statusType;
- std::string m_iconPath;
- std::string m_subIconPath;
- long m_number;
- std::vector<NotificationDetailInfo*> m_detailInfo;
- std::string m_backgroundImagePath;
- std::vector<std::string> m_thumbnails;
- std::string m_soundPath;
- bool m_vibration;
- ApplicationControl m_appControl;
- ApplicationId m_appId;
- std::string m_progressType;
- unsigned long m_progressValue;
-
-#endif
};
} // Notification
} // DeviceAPI
-#endif // __TIZEN_STATUS_NOTIFICATION_H__
\ No newline at end of file
+#endif // __TIZEN_STATUS_NOTIFICATION_H__