12 #ifndef __CF_NOTIFICATION_H__ 13 #define __CF_NOTIFICATION_H__ 15 #include <Gui/CFButton.h> 16 #include <Gui/CFImage.h> 17 #include <Gui/CFLabel.h> 18 #include <Core/CFDefines.h> 20 #include <Gui/CFBox.h> 67 const Glib::ustring kDateFormat =
"%l:%M %p";
87 const Glib::ustring& title,
88 const Glib::ustring& content);
120 Glib::ustring getTitle();
127 void setTitle(
const Glib::ustring& title);
136 Glib::DateTime getCreateDateTime();
143 void setTime(
const Glib::ustring& time);
150 void setTimeout(CFUInt ms_time);
164 void setShowTime(
bool show_time);
187 sigc::signal<void, CFNotificationDestroyedReason> signalReason();
190 virtual void onShow();
192 virtual bool onTimeout();
194 virtual void onClicked();
200 Glib::DateTime m_createTime;
205 bool m_isNeedShowTime;
210 sigc::signal<void, CFNotificationDestroyedReason> m_reasonSignal;
215 #endif // __CF_NOTIFICATION_H__ bool cleanable
是否可清除,默认 FALSE
Definition: CFNotification.h:62
CFBox 该控件会以矩形区域来组织其所容纳的控件。
Definition: CFBox.h:34
Glib::ustring body
消息体
Definition: CFNotification.h:57
表示通知超过了设定的过期时间
Definition: CFNotification.h:45
CFNotificationDestroyedReason
通知关闭的原因
Definition: CFNotification.h:43
Definition: CFNotification.h:55
紧急程度一般
Definition: CFNotification.h:34
CFBuiltinIconSize
cdos-fw 内建的图标尺寸
Definition: CFEnums.h:86
bool title_markup
标题是否允许标记
Definition: CFNotification.h:59
CFNotificationUrgency
用以表示通知紧急程度的枚举
Definition: CFNotification.h:32
CFImage image
图标
Definition: CFNotification.h:58
bool custom_content
自定义内容
Definition: CFNotification.h:56
CFNotification 控件会以矩形区域来组织其所容纳的控件。
Definition: CFNotification.h:75
bool body_markup
C版本里与bannerMarkup相同
Definition: CFNotification.h:61
未定义,对应js里的undefine
Definition: CFNotification.h:44
紧急程度低
Definition: CFNotification.h:33
表示通知被点击
Definition: CFNotification.h:46
紧急程度高
Definition: CFNotification.h:35
bool banner_markup
消息体是可以标记
Definition: CFNotification.h:60