ADD_DEFINITIONS("-std=c++0x")
ADD_SUBDIRECTORY(webapp-common)
ADD_SUBDIRECTORY(webapp-detail)
+ADD_SUBDIRECTORY(po)
+ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALE_DIR}\"")
+wrt-setting (0.0.18) unstable; urgency=low
+
+ * Change string to STMS
+ * entry selector & popup issue
+ * The lib & rsc pathes has been changed
+ * Icon and String path has been changed
+ * Security header has been changed
+ * Add po file and po file list in CmakeList.txt
+
+ * Git : apps/home/wrt-setting
+ * Tag : wrt-setting_0.0.18
+
+ -- leerang <leerang.song@samsung.com> Fri, 16 Nov 2012 21:26:25 +0900
+
wrt-setting (0.0.15) unstable; urgency=low
* Add std DEFINITIONS
Name: wrt-setting
-Version: 0.0.15
+Version: 0.0.18
Release: 1
Summary: WRT Setting UI Gadgets
Group: Development/Libraries
BuildRequires: edje-bin
BuildRequires: cmake
+BuildRequires: gettext
+BuildRequires: edje-tools
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ui-gadget-1)
%defattr(-,root,root,-)
%{_datadir}/license/%{name}
/opt/ug/*
+#/usr/ug/lib/*
+/usr/ug/res/*
--- /dev/null
+# for i18n
+SET(POFILES hy.po az.po eu.po bg.po ca.po zh_CN.po zh_HK.po
+cs.po da.po nl_NL.po en.po en_US.po et.po fi.po fr_FR.po gl.po hr.po
+ka.po de_DE.po el_GR.po hu.po is.po ga.po it_IT.po ja_JP.po kk.po
+ko_KR.po lv.po lt.po mk.po nb.po pl.po pt_PT.po pt_BR.po ro.po
+ru_RU.po sr.po sk.po sl.po es_ES.po es_US.po sv.po tr_TR.po uk.po
+uz.po ar.po zh_SG.po hi.po en_PH.po fr_CA.po zh_TW.po)
+
+SET(PROJECT_NAME "ug-webapp-common-efl")
+SET(LOCALE_DIR "/usr/ug/res/locale/")
+SET(MSGFMT "/usr/bin/msgfmt")
+
+FOREACH(pofile ${POFILES})
+ SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile})
+ MESSAGE("PO: ${pofile}")
+ GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE)
+ GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE)
+
+ SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo)
+ ADD_CUSTOM_COMMAND( OUTPUT ${moFile}
+ COMMAND ${MSGFMT} -o ${moFile} ${absPofile}
+ DEPENDS ${absPofile} )
+ INSTALL(FILES ${moFile}
+ DESTINATION ${LOCALE_DIR}/${lang}/LC_MESSAGES
+ RENAME ${PROJECT_NAME}.mo)
+SET(moFiles ${moFiles} ${moFile})
+ENDFOREACH(pofile)
+
+MESSAGE(".mo files: ${moFiles}")
+ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles})
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "مشاركة ملفات تعريف الارتباط"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "مشاركة ملفات تعريف الارتباط بين تطبيقات الويب"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Kuki paylaşması"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Veb-proqramlar arasında kukiləri paylaş"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Споделяне на бисквитка"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Споделяне на бисквитки между уеб приложения"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Ús compartit de cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Compartir galetes entre aplicacions web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Sdílení cookies"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Sdílet cookies mezi webovými aplikacemi"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie-deling"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Del cookies mellem web-programmer"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie-Freigabe"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Cookies zwischen Web Apps freigeben"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Κοινή χρήση cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Κοινή χρήση cookies μεταξύ εφαρμογών web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie sharing"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Share cookies between web apps"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie sharing"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Share cookies between web apps"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie sharing"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Share cookies between web apps"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Uso compartido de cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Compartir cookies entre aplicaciones web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Compartir cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Compartir cookies entre aplicaciones Web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Küpsise jagamine"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Jagage küpsiseid veebirakenduste vahel"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie partekatzea"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Partekatu aplikazio web orrien arteko cookieak"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Evästeiden jako"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Jaa evästeitä sovellusten välillä"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Partage des témoins"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Partager les cookies entre les applications Web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Partage de cookies"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Partager les cookies entre les applications Web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Comhroinnt fianán"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Comhroinn fianáin idir feidhmchláir Ghréasáin"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Uso compartido de cookies"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Compartir cookies entre aplicacións web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "कुकीज़ साझाकरण"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "वेब ऐप्स के मध्य कुकीज़ साझा करें"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Dijeljenje kolačića"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Dijeli kolačiće među web aplikacijama"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie-megosztás"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Cookie-k megosztása a webalkalmazások között"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Թխուկների համօգտագործում"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Փոխանակել թխուկներ համացանցային ծրագրերի միջև"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Deiling fótspora"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Deila fótsporum milli vefforrita"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Condivisione cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Condividi cookie tra le applicazioni Web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookieの共有"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Webアプリ間でCookieを共有"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "ქუქი-ფაილების გაზიარება"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "ქუქი-ფაილების გაზიარება ვებ-პროგრამებს შორის"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie бөлісу"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Веб-бағдарламалар арасында cookies файлдарымен бөлісу"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "쿠기 공유"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "웹 애플리케이션간에 쿠키 공유"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Slapukų bendrinimas"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Bendrinti slapukus tarp žiniatinklio programų"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Sīkfailu kopīgošana"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Kopīgot sīkfailus starp tīmekļa programmām"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Делење колачиња"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Дели колачиња меѓу веб-апликации"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Deling av informasjonskapsel"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Del informasjonskapsler mellom webprogrammer"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie delen"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Cookies delen tussen webapps"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Udostępnianie pliku cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Udostępniaj pliki cookie pomiędzy aplikacjami internetowymi"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Compartilhamento de cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Compartilhar cookies entre apps da web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Partilha de cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Partilhar cookies entre aplicações web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Partajare cookie-uri"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Se partajează cookie-urile între aplicaţii web"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Обмен cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Обмен cookie между веб-приложениями"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Zdieľanie súborov cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Zdieľať súbory cookie medzi webovými aplikáciami"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Skupna raba piškotka"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Skupna raba piškotkov med spletnimi programi"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Deljenje kolačića"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Deli kolačiće između web aplikacija"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie-delning"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Dela cookies mellan webbprogram"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Çerez paylaşımı"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Çerezleri web uygulamaları arasında paylaş"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Спільний доступ до cookie"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Спільний доступ до cookies для Інтернет-програм"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie ulashish"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "Veb-ilovalar o‘rtasidagi cookie-fayllarni ulashing"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie 共享"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "在网络应用程序之间共享 cookies"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie 分享"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "在網頁應用程式中分享 cookie"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie 共享"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "在网络应用程序之间共享 cookies"
+
--- /dev/null
+msgid "IDS_ST_BODY_COOKIE_SHARING"
+msgstr "Cookie 分享"
+
+msgid "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS"
+msgstr "在網頁應用程式中分享 cookie"
+
SET(TARGET_UG_LIB "ug-webapp-common-efl")
SET(TARGET_UG_EDJ "webapp-common.edj")
SET(UGDIR "${UG_INSTALL_PREFIX}/ug/lib")
-SET(ICONDIR "${UG_INSTALL_PREFIX}/ug/res/icons/${TARGET_UG_LIB}")
+SET(ICONDIR "${UG_INSTALL_PREFIX}/ug/res/images/${TARGET_UG_LIB}")
SET(EDJDIR "${UG_INSTALL_PREFIX}/ug/res/edje/${TARGET_UG_LIB}")
PKG_CHECK_MODULES(UG_WEB_APP_COMMON_DEPS
#include <dlog.h>
namespace WebAppCommonSetting {
+const char * const COOKIE_SHARING = "IDS_ST_BODY_COOKIE_SHARING";
+const char * const SHARE_COOKIES_BETWEEN_WEB_APPS =
+ "IDS_ST_BODY_SHARE_COOKIES_BETWEEN_WEB_APPS";
+const char * const MOFILE_INSTALL_DIR =
+ "/usr/ug/res/locale";
char *ListView::getWacTitle(void */*data*/,
Evas_Object */*obj*/,
evas_object_del(conform);
return false;
}
+ bindtextdomain("ug-webapp-common-efl",
+ MOFILE_INSTALL_DIR);
elm_object_style_set(gl, "dialogue");
elm_object_content_set(conform, gl);
resetBase(conform);
addDepth(gl);
addOnOffItem(gl,
- "Cookie sharing",
- getCookieSharingVal,
- onCookieSharingChanged);
+ dgettext("ug-webapp-common-efl", COOKIE_SHARING),
+ getCookieSharingVal,
+ onCookieSharingChanged);
addDesc(gl,
- "Share cookies between web apps");
-
+ dgettext("ug-webapp-common-efl",
+ SHARE_COOKIES_BETWEEN_WEB_APPS));
pushToNaviFrame();
return true;
#
SET(TARGET_UG_DETAIL_LIB "ug-webapp-detail-efl")
-SET(TARGET_UG_EDJ "web-app.edj")
+SET(TARGET_UG_EDJ "webapp-detail.edj")
SET(UGDIR "${UG_INSTALL_PREFIX}/ug/lib")
-SET(EDJDIR "${UG_INSTALL_PREFIX}/ug/res/edje/${TARGET_UG_LIB}")
+SET(EDJDIR "${UG_INSTALL_PREFIX}/ug/res/edje/${TARGET_UG_DETAIL_LIB}")
# Compiler flags
SET(CMAKE_BUILD_TYPE "Release")
dpl-efl
dpl-wrt-dao-rw
dpl-utils-efl
- security
- security-dao-rw
+ security-settings
REQUIRED)
SET(UG_DETAIL_SOURCES
closeCallback,
(void *)popup);
evas_object_show(l_button);
+ elm_object_focus_allow_set(popup, EINA_TRUE);
+ elm_object_focus_set(popup, EINA_TRUE);
}
void DetailView::_mouse_up_save_login_info(void *data,
#define WEB_SRC_SETTING_WEBAPP_DETAIL_FEATURE_H_
#include <dpl/wrt-dao-rw/widget_dao.h>
-#include <ace/SettingsLogic.h>
+#include <ace-settings/ace_api_settings.h>
namespace WebAppDetailSetting {
{
std::string m_name;
std::string m_uri;
- AceDB::PreferenceTypes m_perm;
+ ace_preference_t m_perm;
public:
Feature(const char *name = NULL, const char *uri = NULL) :
- m_perm(AceDB::PreferenceTypes::PREFERENCE_DEFAULT)
+ m_perm(ACE_PREFERENCE_DEFAULT)
{
if (name)
m_name.assign(name);
if (uri)
m_uri.assign(uri);
}
- void setPerm(AceDB::PreferenceTypes perm) { m_perm = perm; }
+ void setPerm(ace_preference_t perm) { m_perm = perm; }
std::string& getName(void) { return m_name; }
std::string& getUri(void) { return m_uri; }
- AceDB::PreferenceTypes getPerm(void) { return m_perm; }
+ ace_preference_t getPerm(void) { return m_perm; }
};
} /* WebAppDetailSetting */
#include <Elementary.h>
#include <dpl/wrt-dao-rw/widget_dao.h>
-#include <ace/SettingsLogic.h>
#include <dpl/foreach.h>
#include <dpl/assert.h>
Assert(permData);
featureData = permData->m_featureData;
Assert(featureData);
- SettingsLogic::setWidgetDevCapSetting(
- featureData->m_feature->getUri(),
+ ace_set_widget_resource_preference(
featureData->m_appID,
+ const_cast<char *>(featureData->m_feature->getUri().c_str()),
permData->m_type);
- featureData->m_feature->setPerm(
- SettingsLogic::getWidgetDevCapSetting(
- featureData->m_feature->getUri(),
- featureData->m_appID));
+ ace_preference_t perm;
+ ace_get_widget_resource_preference(
+ featureData->m_appID,
+ const_cast<char *>(featureData->m_feature->getUri().c_str()),
+ &perm);
+ featureData->m_feature->setPerm(perm);
elm_genlist_item_selected_set(it, EINA_FALSE);
elm_genlist_item_update(it);
parent_it = elm_genlist_item_parent_get(it);
itc.func.del = delPermData;
try {
- permData = new PermData(featureData, AceDB::PreferenceTypes::PREFERENCE_DENY);
+ permData = new PermData(featureData, ACE_PREFERENCE_DENY);
newIt = elm_genlist_item_append(obj,
&itc,
permData,
if (!newIt)
delete permData;
- permData = new PermData(featureData, AceDB::PreferenceTypes::PREFERENCE_DEFAULT);
+ permData = new PermData(featureData, ACE_PREFERENCE_DENY);
newIt = elm_genlist_item_append(obj,
&itc,
permData,
Assert(data);
permData = static_cast<PermData *>(data);
switch (permData->m_type) {
- case AceDB::PreferenceTypes::PREFERENCE_DENY:
+ case ACE_PREFERENCE_DENY:
/* FIXME: i18n */
return strdup("Deny");
- case AceDB::PreferenceTypes::PREFERENCE_DEFAULT:
+ case ACE_PREFERENCE_DEFAULT:
default:
/* FIXME: i18n */
return strdup("Default");
} else if (!strcmp(part, "elm.text.2")) {
switch (featureData->m_feature->getPerm()) {
- case AceDB::PreferenceTypes::PREFERENCE_DENY:
+ case ACE_PREFERENCE_DENY:
/* FIXME: i18n */
str = "Deny";
break;
- case AceDB::PreferenceTypes::PREFERENCE_DEFAULT:
+ case ACE_PREFERENCE_DEFAULT:
default:
/* FIXME: i18n */
str = "Default";
{
public:
FeatureData *m_featureData;
- AceDB::PreferenceTypes m_type;
+ ace_preference_t m_type;
- PermData(FeatureData *featureData, AceDB::PreferenceTypes type) :
+ PermData(FeatureData *featureData, ace_preference_t type) :
m_featureData(featureData),
m_type(type) { };
};
#undef None
#include <dpl/wrt-dao-ro/WrtDatabase.h>
-#include <ace-dao-ro/AceDAOReadOnly.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include "mainview.h"
return -1;
WrtDB::WrtDatabase::attachToThreadRW();
- AceDB::AceDAOReadOnly::attachToThreadRW();
+ //AceDB::AceDAOReadOnly::attachToThreadRW();
memset(ops, 0x00, sizeof(*ops));
ops->priv = priv;
delete priv->mainView;
free(priv);
- AceDB::AceDAOReadOnly::detachFromThread();
+ //AceDB::AceDAOReadOnly::detachFromThread();
WrtDB::WrtDatabase::detachFromThread();
}
*/
#include <dpl/foreach.h>
-#include <ace/SettingsLogic.h>
-
#include "wac_feature.h"
#include "util.h"
+#include <ace-settings/ace_api_settings.h>
namespace WebAppDetailSetting {
m_feature[i])) {
featureMap[i] = Feature(m_featureName[i],
m_feature[i]);
-
- featureMap[i].setPerm(
- SettingsLogic::getWidgetDevCapSetting(
- m_feature[i], appID));
+ ace_preference_t perm;
+ ace_get_widget_resource_preference(
+ appID,
+ const_cast<char *>(m_feature[i]),
+ &perm);
+ featureMap[i].setPerm(perm);
break;
}