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 ShowIndicatorNotification(const Tizen::Base::String& messageText, const Tizen::Base::String& contentPath);
void SetForwardButtonEnabled(bool isEnabled);
void SetBackButtonEnabled(bool isEnabled);
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
-
-<ScenePanel Bversion="2.0.0.201306151404" Dversion="20120315">
+<ScenePanel Bversion="2.0.0.201307041803" Dversion="20120315">
<Panel id="IDL_FIND_ON_PAGE">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout height="82.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="3.0" y="27.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_FIND_ON_PAGE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_FIND_ON_PAGE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="134.0" x="1130.0" y="5.0"/>
</Button>
<Button id="IDC_FIND_PREV" parent="IDL_FIND_ON_PAGE">
- <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="I01_title_btn_icon_up_disabled.png" disabledColor="#848484" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_title_btn_icon_up.png" normalColor="#848484" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_title_btn_icon_up.png" pressedColor="#008CD2" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="I01_title_btn_icon_up_disabled.png" disabledColor="#848484" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_title_btn_icon_up.png" normalColor="#848484" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_title_btn_icon_up_pressed.png" pressedColor="#008CD2" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="78.0" x="16.0" y="5.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FIND_ON_PAGE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_FIND_ON_PAGE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="78.0" x="16.0" y="5.0"/>
</Button>
<Button id="IDC_FIND_NEXT" parent="IDL_FIND_ON_PAGE">
- <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="I01_title_btn_icon_down_disabled.png" disabledColor="#848484" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_title_btn_icon_down.png" normalColor="#848484" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_title_btn_icon_down.png" pressedColor="#008CD2" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="I01_title_btn_icon_down_disabled.png" disabledColor="#848484" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_title_btn_icon_down.png" normalColor="#848484" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_title_btn_icon_down_pressed.png" pressedColor="#008CD2" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="3.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="78.0" x="97.0" y="5.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FIND_PREV" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="3.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_FIND_ON_PAGE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="78.0" x="97.0" y="5.0"/>
</Button>
else
{
- if(pSceneManager->GoBackward(BackwardSceneTransition())!= E_SUCCESS)
+ if(pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT))!= E_SUCCESS)
{
AppLogDebug("BookmarkListForm::OnActionPerformed GoBackward failed");
return;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
+static const wchar_t* APPCONTROL_SELECT_KEY_IMAGE = L"http://tizen.org/appcontrol/data/image/crop_mode";
+static const wchar_t* APPCONTROL_SELECT_VALUE_IMAGE = L"fit_to_screen";
+static const wchar_t* APPCONTROL_PROVIDER_ID_IMAGE_VIEWER = L"tizen.imageviewer";
+static const wchar_t* APPCONTROL_OPERATION_ID_IMAGE_VIEWER = L"http://tizen.org/appcontrol/operation/view";
+
const int MIN_MEMORY_NEEDED = 1048576;
InternetApp::InternetApp(void)
__pNewWindowInfo = null;
}
}
+ else if (operationId.CompareTo(L"http://tizen.org/appcontrol/operation/main") == 0)
+ {
+ if (pArgs)
+ {
+ const String* pVal = (String *) pArgs->GetValue(String(L"http://tizen.org/appcontrol/data/notification"));
+ if (pVal && pVal->GetLength() > 0)
+ {
+ HashMap extraData;
+ extraData.Construct();
+ String typeKey = APPCONTROL_SELECT_KEY_IMAGE;
+ String typeVal = APPCONTROL_SELECT_VALUE_IMAGE;
+ extraData.Add(&typeKey, &typeVal);
+
+ AppControl* pAc = AppManager::FindAppControlN(APPCONTROL_PROVIDER_ID_IMAGE_VIEWER,
+ APPCONTROL_OPERATION_ID_IMAGE_VIEWER);
+ if (pAc)
+ {
+ if (pAc->Start(pVal, null, null, null) == E_SUCCESS)
+ {
+ delete pAc;
+ }
+ }
+ }
+ }
+ }
+
AppLogDebug("ABC::Internet::OnAppControlRequestReceivedN Exit");
return;
}
contentPath.Append(imageName);
contentPath.Append(".jpg");
contentId = contentManager.CreateContent(*aBuffer, contentPath);
- ShowIndicatorNotification(L"Download Complete");
+ ShowIndicatorNotification(L"Download Complete",contentPath);
AppLog("Content manager update content result %s" ,GetErrorMessage(GetLastResult()));
}
void
-MainForm::ShowIndicatorNotification(const String& messageText)
+MainForm::ShowIndicatorNotification(const String& messageText, const String& contentPath)
{
AppLogDebug("ENTER");
NotificationRequest request;
request.SetAlertText(messageText);
request.SetTitleText(L"");
- request.SetAppMessage(L"AppMessage");
-
+ request.SetAppMessage(contentPath);
+ request.SetOngoingActivityType(ONGOING_ACTIVITY_TYPE_TEXT);
+ request.SetNotificationStyle(NOTIFICATION_STYLE_THUMBNAIL);
Tizen::App::App* pApp = Tizen::App::App::GetInstance();
String homePath = pApp->GetAppRootPath();
String iconPath = homePath + L"res/screen-density-xhigh/Notification_download_complete.png";
Tizen::Shell::NotificationManager notiMgr;
notiMgr.Construct();
- notiMgr.Notify(request);
+ notiMgr.NotifyOngoingActivity(request);
AppLogDebug("EXIT: %s", GetErrorMessage(GetLastResult()));
return;