PKG_CHECK_MODULES([PKGMGR], [pkgmgr])
PKG_CHECK_MODULES([WAYLANDCLIENT], [wayland-client])
PKG_CHECK_MODULES([NOTIFICATION], [notification])
+PKG_CHECK_MODULES([APPSVC], [appsvc])
# libraries for homescreen.
PKG_CHECK_MODULES([EDJE], [edje])
+* Fri Mar 28 2014 Shibata Makoto <shibata@mac.tec.toyota.co.jp> accepted/tizen/ivi/panda/20140326.234210@52d43be
+- bug fix(StatusBar): Clock is not displayed at the time of the first start
+- bug fix(StatusBar): Adjustment of the clock image interval
+
* Wed Mar 26 2014 Shibata Makoto <shibata@mac.tec.toyota.co.jp> accepted/tizen/ivi/release/20140312.115201@3fee487
- bug fix: Notification launch support. (TIVI-2926/1892)
- bug fix: HomeScreen sometimes fails in connection with SystemController at the time of starting.
BuildRequires: pkgconfig(murphy-ecore)
BuildRequires: pkgconfig(murphy-resource)
BuildRequires: pkgconfig(notification)
+BuildRequires: pkgconfig(appsvc)
BuildRequires: boost-devel
BuildRequires: mesa-devel
BuildRequires: weston-ivi-shell
Requires: pkgconfig(ecore-wayland)
Requires: pkgconfig(ecore-x)
Requires: pkgconfig(glib-2.0)
+Requires: pkgconfig(appsvc)
%description system-controller-devel
Development files for application that communicate homescreen.
cp tool/ico_clear_screen %{buildroot}%{_bindir}
cp tool/ico_change_loginuser %{buildroot}%{_bindir}
+cp tool/notification/ico_del_notification %{buildroot}%{_bindir}
+cp tool/notification/ico_dump_notification %{buildroot}%{_bindir}
+cp tool/notification/ico_send_notification %{buildroot}%{_bindir}
+cp tool/notification/ico_send_notification2 %{buildroot}%{_bindir}
%post
/sbin/ldconfig
/usr/lib/systemd/user/weston.target.wants/ico-uxf-wait-launchpad-ready.path
%{_bindir}/ico_clear_screen
%{_bindir}/ico_change_loginuser
+%{_bindir}/ico_del_notification
+%{_bindir}/ico_dump_notification
+%{_bindir}/ico_send_notification
+%{_bindir}/ico_send_notification2
%attr(644,app,app) /home/app/ico/defaultApps.info
%attr(755,app,app) /home/app/ico
/home/app/ico/defaultApps.info
int appCtgryType;
char addCtgry[400];
int addCtgryLen;
- char work[80];
+ char work[PATH_MAX];
/* get default category of this application */
addCtgry[0] = 0;
void
CicoHSMenuTile::FreeObject(void)
{
- char sWork[80];
+ char sWork[PATH_MAX];
ICO_DBG("CicoHSMenuTile::FreeObject(appid=%08x<%s>)", (int)this->appid, appid);
void
CicoHSMenuTile::ValidThumbnail(int surface)
{
- char sWork[80];
+ char sWork[PATH_MAX];
ICO_DBG("CicoHSMenuTile::ValidThumbnail(appid=%08x<%s>) run=%d surf=%08x",
(int)this->appid, appid, app_running, surface);
int svx, svy;
int unmap;
int fd;
- char sWork[80];
+ char sWork[PATH_MAX];
#if 0 /* for BMP format */
#pragma pack(push, 1)
struct _bmphead {
void
CicoHSMenuTile::ShowMenu(bool show)
{
- char sWork[80];
+ char sWork[PATH_MAX];
menu_show = show;
if ((thumb_tile) && (thumb.surface != 0)) {
sprintf(sWork, ICO_HS_THUMB_ICODIR ICO_HS_THUMB_FILEDIR "/%08x."
$(AUL_LIBS) \
$(UWS_LIBS) \
$(NOTIFICATION_LIBS) \
+ $(APPSVC_LIBS) \
-lappsvc \
../../lib/apps-framework/.libs/libico-appfw.so
evas_object_resize( evasobj_, w_width, h );
obj = (Evas_Object*)edje_object_part_object_get(evasobj_,"MIN1_img" );
evas_object_geometry_get( obj, &x, &y, &w, &h );
- Evas_Coord offset = w_width - x - w;
+ Evas_Coord offset = w_width - x - w -18;
for ( i=0; i<CLOCK_OBJECT_COUNT; i++ ) {
obj = (Evas_Object*)edje_object_part_object_get(
if ( obj != NULL ) {
evas_object_geometry_get( obj, &x, &y, &w, &h );
evas_object_move( obj, x+offset , y);
+ evas_object_show(obj);
}
}
/* initial display */
- Update();
+ bool ret = true;
+ ret = Update();
Show();
ICO_TRA("CicoStatusBarClockComponent::Initialize Leave");
- return Update();
+ return ret;
}
/*--------------------------------------------------------------------------*/
obj = (Evas_Object*)edje_object_part_object_get(
evasobj_,clock_image_object[i] );
if ( obj != NULL ) {
- ICO_DBG("SetNotification image set[%s][%s]",clock_image_object[i],clock_image_path[i]);
- evas_object_image_file_set(obj, clock_image_path[now_clock_image[i]], NULL);
+ ICO_DBG("CicoStatusBarClockComponent image set[%s][%s]",
+ clock_image_object[i],clock_image_path[now_clock_image[i]]);
+ evas_object_image_file_set(obj,
+ clock_image_path[now_clock_image[i]], NULL);
+ // add update view area
+ // (Omitted update area is set so that evas_object_image_file_set())
+ //Evas_Coord x,y,w,h;
+ //evas_object_geometry_get( obj, &x, &y, &w, &h );
+ //evas_object_image_data_update_add( obj, x, y, w, h );
+
}
else {
- ICO_DBG("SetNotification image set error[object not found]" );
+ ICO_DBG("CicoStatusBarClockComponent image set error[object not found]" );
}
last_clock_image[i] = now_clock_image[i];
}
bool
CicoNotificationPanelComponent::SetText(const char *text)
{
- ICO_TRA("CicoNotificationPanelComponent::SetText Enter(text=%s)", text? text:"NULL");
+ ICO_TRA("CicoNotificationPanelComponent::SetText Enter(text=%s)",
+ text? text:"NULL");
if ( text == NULL ) {
edje_object_part_text_set(evasobj_, "content_text", "");
return true;
void
CicoNotificationPanelComponent::SetTextEndPosition( Evas_Coord x_end, Evas_Coord y_end)
{
- ICO_TRA("CicoNotificationPanelComponent::SetTextEndPosition Enter(%d,%d)",x_end,y_end);
+ ICO_TRA("CicoNotificationPanelComponent::SetTextEndPosition Enter(%d,%d)",
+ x_end,y_end);
if (evasobj_ == NULL) {
ICO_TRA("CicoNotificationPanelComponent::SetTextEndPosition Leave(false)");
if (window_ == NULL) {
return false;
}
- ecore_main_loop_iterate();
ecore_wl_screen_size_get(&width_, &height_);
ecore_evas_size_min_set(window_, width_, STATUSBAR_HEIGHT);
ecore_evas_object_associate(window_, windowobj_,
ECORE_EVAS_OBJECT_ASSOCIATE_BASE);
+ /* update initial view */
+ Show();
+ ecore_main_loop_iterate();
+
ICO_DBG("Initialize end windowobj_.");
ICO_DBG("Initialize start Clock_Component.");
noticomp_->SetTextEndPosition( x, y );
}
- Show();
+ //Show();
+ //ecore_main_loop_iterate();
+ //clockcomp_->Update();
// add timer callback function of time update
ecore_timer_add(3.0, ecoreUpdateTimeCB, this);
rel1 {
relative: 0.0 0.0;
offset: 500 3;
+/* This Setting not works
+ relative: 1.0 0.0;
+ offset: -45 3;
+*/
}
image{
normal: "time_0.png";
rel1 {
to: "MIN1_img";
relative: 0.0 0.0;
- offset: -31 0;
+ offset: -30 0;
}
image{
normal: "time_0.png";
rel1 {
to: "MIN10_img";
relative: 0.0 0.0;
- offset: -13 8;
+ offset: -24 8;
}
image{
normal: "time_ten.png";
rel1 {
to: "TIME_SP_img";
relative: 0.0 0.0;
- offset: -31 -8;
+ offset: -42 -8;
}
image{
normal: "time_0.png";
rel1 {
to: "HOUR1_img";
relative: 0.0 0.0;
- offset: -31 0;
+ offset: -30 0;
}
image{
normal: "time_0.png";
name: "AM_PM_img";
type: IMAGE;
description {
- min: 60 45;
- max: 60 45;
+ min: 60 43;
+ max: 60 43;
align: 0.0 0.0;
rel1 {
to: "HOUR10_img";
relative: 0.0 0.0;
- offset: -61 12;
+ offset: -72 14;
}
image{
normal: "time_am.png";
$(NOTIFICATION_CFLAGS)
ico_send_notification2_LDADD = \
- $(NOTIFICATION_LIBS) -lappsvc
+ $(NOTIFICATION_LIBS) \
+ $(APPSVC_LIBS)
#
#
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <iostream>
+#include <string>
#include "notification.h"
using namespace std;
printf("notification_delete_group_by_priv_id failed(%d).\n", err);
return -1;
}
+ err = notification_delete_all_by_type("", NOTIFICATION_TYPE_ONGOING);
+ if (NOTIFICATION_ERROR_NONE != err) {
+ printf("notification_delete_group_by_priv_id failed(%d).\n", err);
+ return -1;
+ }
return 0;
}
}
if (argc < 3) {
- printf("%s pkgname priv_id\n", argv[0]);
+ printf("%s [--ongoing] pkgname priv_id\n", argv[0]);
return -1;
}
+ int n_geta = 1;
+ notification_type_e nType = NOTIFICATION_TYPE_NOTI;
+ string sargv1(argv[1]);
+ if (0 == sargv1.compare("--ongoing")) {
+ nType = NOTIFICATION_TYPE_ONGOING;
+ n_geta = 2;
+ if (argc < 4) {
+ printf("%s --ongoing pkgname priv_id\n", argv[0]);
+ return -1;
+ }
+ }
- char *pkgname = argv[1];
- int priv_id = atoi(argv[2]);
- err = notification_delete_by_priv_id(pkgname,
- NOTIFICATION_TYPE_NONE,
- priv_id);
+ char *pkgname = argv[n_geta];
+ int priv_id = atoi(argv[n_geta+1]);
+ err = notification_delete_by_priv_id(pkgname, nType, priv_id);
if (err != NOTIFICATION_ERROR_NONE) {
printf("notification_delete_by_priv_id failed(%d).\n", err);
return -1;