From 0c503ba042ce6884f167dcd0d24f3e1c6fb36ab6 Mon Sep 17 00:00:00 2001 From: rahul sharma Date: Sat, 29 Jun 2013 19:14:23 +0900 Subject: [PATCH] Added the notification in indicator area for saved file Change-Id: Ie03fd6ce74d9ec74ffda11eff9be9242cc1257f1 --- inc/IntMainForm.h | 1 + manifest.xml | 1 + .../Notification_download_complete.png | Bin 0 -> 2618 bytes .../Notification_download_failed.png | Bin 0 -> 4092 bytes src/IntMainForm.cpp | 28 +++++++++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 res/screen-density-xhigh/Notification_download_complete.png create mode 100644 res/screen-density-xhigh/Notification_download_failed.png diff --git a/inc/IntMainForm.h b/inc/IntMainForm.h index 54fd0a2..334f08b 100644 --- a/inc/IntMainForm.h +++ b/inc/IntMainForm.h @@ -258,6 +258,7 @@ public: virtual void OnTextValueChanged (const Tizen::Ui::Control &source); void UpdateImageContent(Tizen::Base::ByteBuffer* aBuffer, Tizen::Base::String imageName); + void ShowIndicatorNotification(const Tizen::Base::String& messageText); void SetForwardButtonEnabled(bool isEnabled); void SetBackButtonEnabled(bool isEnabled); diff --git a/manifest.xml b/manifest.xml index 2d4c722..c3876f0 100644 --- a/manifest.xml +++ b/manifest.xml @@ -19,6 +19,7 @@ http://tizen.org/privilege/power http://tizen.org/privilege/content.write http://tizen.org/privilege/appmanager.launch + http://tizen.org/privilege/notification diff --git a/res/screen-density-xhigh/Notification_download_complete.png b/res/screen-density-xhigh/Notification_download_complete.png new file mode 100644 index 0000000000000000000000000000000000000000..567f4fa38087bab73d2910484db1eb8a8704c646 GIT binary patch literal 2618 zcmbVOX;c&05)P{bWN}mwLCFLaM9E4*!Y0{}_yA)JiafTEbVz_KBw-R%776JT@WVp;(= z2taU=*&hT-uDv=a`GN3VooP-qMi1>Sf^w37=C?}BlLeY@bG zHz}9r!lZhA^99b_;e5GV;(|mf6bgg_ix5jAkZ2;2sKLNs96=37S)54DRyvAgwlfG+ zK*o^@ByxdR1k)h0!^N?3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F4XFUV{* z3`HOizY_=qrP=cKsi`SfiR#?5l&(V5CBbn%IlQDd|3tdpq5ghArKDUDJUvMZndNq4 zWMX{$eo9Y=`OEQpJw5L#YHK&oGkJZV!`N^3Acz-fa|l`kyQ$40Q9RU1l*R*dUf$6r ze>5HEZ{2#IfX7cPM?lJQqALPzy1KicN{`KV)wg(k=45l9{w-8i=lNIRS`HDGapjAC zHtno_>is4uCwXyYRn^1o3*K1$D(iqYWwsk&jJ_*22*XtEkKMBDd0kEdBc`_3 zVa1A_&d$zbsf1Z7MsY}S;;u!cllSd1lf1*Nvb}yyFDR-gDS187(Q#m^{*6o~3yoDM zkQse$dmBXspD)xO&nzu2ES&D_?p9nH{l(_EkCO=#lam{Vhlelhx&;MH+ROaTR#f~o2)2u>S+#4EZnRu3zuya9>9?RQ{w(G> zGji&+>%O*(5P$!_iUNxk@3e2Gz)V}6yiE$0Y}-ANl?(TDZu|qD|)#J767{w>#}T_u*rQ>r3sc zvRiFU36EYr_wex1E5EHW69;70H)I7RDo@K5;9@0 u9s?0E?RVL;=CU#-<)2g2iPoQ}r4Q*?yY7&QV)(A+Z;np$qyA0~Oa2?S=28#< literal 0 HcmV?d00001 diff --git a/res/screen-density-xhigh/Notification_download_failed.png b/res/screen-density-xhigh/Notification_download_failed.png new file mode 100644 index 0000000000000000000000000000000000000000..0f2e56fe458495c04f3f73a6ec01ef6b37893a23 GIT binary patch literal 4092 zcmbVPc|26z{~rk<$zHamk+B;L!;GC7nlcPCB}*7)Fl7w0ShKWNwF{Tbl|8VO)cr23M8XbK^K>sCYpm>jWBwc5L;3p zd4Cj*go|>-`$Zl1gA+lP7C^HI1P_2hVi154l%QZbBElT>H!gzryg3X30sm%U95)C3 zGU^Bh3$&%uNI)Z9sE(hWzCI8J)73XLg2D8)fd+c|1`s{o3DeOxL>R#k2FAeO2Z*PQ zM)XIxAnktZ;`Piyfec0n0s;vS57!Nc>QZR|5PditzKLOApu^+Pp+^QY2oXBLbd^5{ zND|$TMh;<+sl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0 HcmV?d00001 diff --git a/src/IntMainForm.cpp b/src/IntMainForm.cpp index 4372b64..7221f39 100644 --- a/src/IntMainForm.cpp +++ b/src/IntMainForm.cpp @@ -25,6 +25,8 @@ #include #include #include +#include +//#include #include "IntBookmarkData.h" #include "IntBookmarkPresentationModel.h" @@ -44,6 +46,7 @@ using namespace Tizen::Graphics; using namespace Tizen::Io; using namespace Tizen::Locales; using namespace Tizen::Media; +using namespace Tizen::Shell; using namespace Tizen::Ui; using namespace Tizen::Ui::Controls; using namespace Tizen::Content; @@ -5016,10 +5019,35 @@ void MainForm::UpdateImageContent(ByteBuffer* aBuffer, String imageName) contentPath.Append(imageName); contentPath.Append(".jpg"); contentId = contentManager.CreateContent(*aBuffer, contentPath); + ShowIndicatorNotification(L"Download Complete"); AppLog("Content manager update content result %s" ,GetErrorMessage(GetLastResult())); } void +MainForm::ShowIndicatorNotification(const String& messageText) +{ + AppLogDebug("ENTER"); + + NotificationRequest request; + request.SetAlertText(messageText); + request.SetTitleText(L""); + request.SetAppMessage(L"AppMessage"); + + Tizen::App::App* pApp = Tizen::App::App::GetInstance(); + String homePath = pApp->GetAppRootPath(); + String iconPath = homePath + L"res/screen-density-xhigh/Notification_download_complete.png"; + AppLog("The iconPath is : %ls", homePath.GetPointer()); + request.SetIconFilePath(iconPath); + + Tizen::Shell::NotificationManager notiMgr; + notiMgr.Construct(); + notiMgr.Notify(request); + + AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult())); + return; +} + +void MainForm::SetForwardButtonEnabled(bool isEnabled) { __pGoForwardBtn->SetEnabled(isEnabled); -- 2.7.4