2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file task_widget_config.cpp
18 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
20 * @brief Implementation file for installer task widget config
28 #include <dpl/errno_string.h>
29 #include <dpl/foreach.h>
30 #include <dpl/localization/w3c_file_localization.h>
31 #include <dpl/singleton_impl.h>
32 #include <dpl/utils/mime_type_utils.h>
33 #include <dpl/utils/wrt_global_settings.h>
34 #include <dpl/utils/wrt_utility.h>
35 #include <dpl/wrt-dao-ro/global_config.h>
36 #include <dpl/wrt-dao-rw/feature_dao.h>
38 #include <libiriwrapper.h>
39 #include <parser_runner.h>
40 #include <root_parser.h>
42 #include <widget_install/job_widget_install.h>
43 #include <widget_install/task_widget_config.h>
44 #include <widget_install/widget_install_context.h>
45 #include <widget_install/widget_install_errors.h>
46 #include <widget_parser.h>
47 #include <wrt_error.h>
50 namespace { // anonymous
51 const DPL::String BR = DPL::FromUTF8String("<br>");
52 const std::string WIDGET_NOT_COMPATIBLE = "This widget is "
53 "not compatible with WRT.<br><br>";
54 const std::string QUESTION = "Do you want to install it anyway?";
56 const char *const DEFAULT_LANGUAGE = "default";
58 const char *const WRT_WIDGET_CONFIG_FILE_NAME = "config.xml";
60 const std::string WINDGET_INSTALL_NETWORK_ACCESS = "network access";
65 namespace WidgetInstall {
66 void InstallerTaskWidgetPopupData::PopupData::addWidgetInfo(
67 const DPL::String &info)
72 TaskWidgetConfig::TaskWidgetConfig(InstallerContext& installContext) :
73 DPL::TaskDecl<TaskWidgetConfig>(this),
74 WidgetInstallPopup(installContext),
75 m_installContext(installContext)
78 AddStep(&TaskWidgetConfig::StepProcessConfigurationFile);
79 AddStep(&TaskWidgetConfig::ReadLocaleFolders);
80 AddStep(&TaskWidgetConfig::ProcessLocalizedStartFiles);
81 AddStep(&TaskWidgetConfig::ProcessBackgroundPageFile);
82 AddStep(&TaskWidgetConfig::ProcessLocalizedIcons);
83 AddStep(&TaskWidgetConfig::ProcessWidgetInstalledPath);
84 AddStep(&TaskWidgetConfig::StepVerifyFeatures);
85 AddStep(&TaskWidgetConfig::StepCheckMinVersionInfo);
87 if (!GlobalSettings::TestModeEnabled() && !m_installContext.m_quiet) {
88 AddStep(&TaskWidgetConfig::StepCancelWidgetInstallationAfterVerifyFeatures);
89 AddStep(&TaskWidgetConfig::StepShowWidgetInfo);
90 AddStep(&TaskWidgetConfig::StepCancelWidgetInstallation);
91 AddStep(&TaskWidgetConfig::StepCancelWidgetInstallationAfterMinVersion);
92 AddStep(&TaskWidgetConfig::StepDeletePopupWin);
96 void TaskWidgetConfig::StepProcessConfigurationFile()
100 std::string path = m_installContext.locations->getConfigurationDir();
101 LogInfo("path: " << path);
103 processFile(path, m_installContext.widgetConfig);
105 Catch(Exception::ConfigParseFailed)
107 LogError("Parsing failed.");
108 ReThrow(Exceptions::WidgetConfigFileInvalid);
111 m_installContext.job->UpdateProgress(
112 InstallerContext::INSTALL_WIDGET_CONFIG1,
113 "Parse elements of configuration file and save them");
116 void TaskWidgetConfig::ReadLocaleFolders()
118 LogDebug("Reading locale");
119 //Adding default locale
120 m_localeFolders.insert(L"");
122 std::string localePath = m_installContext.locations->getConfigurationDir() + "/locales";
123 DIR* localeDir = opendir(localePath.c_str());
125 LogDebug("No /locales directory in the widget package.");
129 struct dirent* dirent;
130 struct stat statStruct;
133 if ((dirent = readdir(localeDir))) {
134 DPL::String dirName = DPL::FromUTF8String(dirent->d_name);
135 std::string absoluteDirName = localePath + "/";
136 absoluteDirName += dirent->d_name;
138 if (stat(absoluteDirName.c_str(), &statStruct) != 0) {
139 LogError("stat() failed with " << DPL::GetErrnoString());
143 if (S_ISDIR(statStruct.st_mode)) {
144 //Yes, we ignore current, parent & hidden directories
145 if (dirName[0] != L'.') {
146 LogDebug("Adding locale directory \"" << dirName << "\"");
147 m_localeFolders.insert(dirName);
155 LogError("readdir() failed with " << DPL::GetErrnoString());
158 if (-1 == TEMP_FAILURE_RETRY(closedir(localeDir))) {
159 LogError("Failed to close dir: " << localePath << " with error: "
160 << DPL::GetErrnoString());
164 void TaskWidgetConfig::ProcessLocalizedStartFiles()
166 typedef DPL::String S;
168 m_installContext.widgetConfig.configInfo.startFile,
169 m_installContext.widgetConfig.configInfo.
170 startFileContentType,
171 m_installContext.widgetConfig.configInfo.startFileEncoding,
173 ProcessStartFile(S(L"index.htm"), S(L"text/html"));
174 ProcessStartFile(S(L"index.html"), S(L"text/html"));
175 ProcessStartFile(S(L"index.svg"), S(L"image/svg+xml"));
176 ProcessStartFile(S(L"index.xhtml"), S(L"application/xhtml+xml"));
177 ProcessStartFile(S(L"index.xht"), S(L"application/xhtml+xml"));
178 // TODO: (l.wrzosek) we need better check if in current locales widget is valid.
179 FOREACH(it, m_installContext.widgetConfig.localizationData.startFiles) {
180 if (it->propertiesForLocales.size() > 0) {
184 ThrowMsg(Exceptions::WidgetConfigFileInvalid,
185 L"The Widget has no valid start file");
188 void TaskWidgetConfig::ProcessStartFile(const DPL::OptionalString& path,
189 const DPL::OptionalString& type,
190 const DPL::OptionalString& encoding,
191 bool typeForcedInConfig)
193 using namespace WrtDB;
196 WidgetRegisterInfo::LocalizedStartFile startFileData;
197 startFileData.path = *path;
199 FOREACH(i, m_localeFolders) {
200 DPL::String pathPrefix = *i;
201 if (!pathPrefix.empty()) {
202 pathPrefix = L"locales/" + pathPrefix + L"/";
205 DPL::String relativePath = pathPrefix + *path;
206 DPL::String absolutePath = DPL::FromUTF8String(
207 m_installContext.locations->getConfigurationDir()) + L"/" + relativePath;
209 // get property data from packaged app
210 if (WrtUtilFileExists(DPL::ToUTF8String(absolutePath))) {
211 WidgetRegisterInfo::StartFileProperties startFileProperties;
213 startFileProperties.type = *type;
215 startFileProperties.type =
216 MimeTypeUtils::identifyFileMimeType(absolutePath);
219 //proceed only if MIME type is supported
220 if (MimeTypeUtils::isMimeTypeSupportedForStartFile(
221 startFileProperties.type))
224 startFileProperties.encoding = *encoding;
226 MimeTypeUtils::MimeAttributes attributes =
227 MimeTypeUtils::getMimeAttributes(
228 startFileProperties.type);
229 if (attributes.count(L"charset") > 0) {
230 startFileProperties.encoding =
231 attributes[L"charset"];
233 startFileProperties.encoding = L"UTF-8";
237 startFileData.propertiesForLocales[*i] =
241 //(there seems to be no similar requirement in .6,
242 //so let's throw only when mime type is
243 // provided explcitly in config.xml)
244 if (typeForcedInConfig) {
245 ThrowMsg(Exceptions::WidgetConfigFileInvalid,
246 "Unsupported MIME type for start file.");
250 // set property data for hosted start url
251 // Hosted start url only support TIZEN WebApp
252 if (m_installContext.widgetConfig.webAppType ==
253 APP_TYPE_TIZENWEBAPP)
255 std::string startPath = DPL::ToUTF8String(startFileData.path);
257 if (strstr(startPath.c_str(), "http") == startPath.c_str()) {
258 WidgetRegisterInfo::StartFileProperties
261 startFileProperties.type = *type;
264 startFileProperties.encoding = *encoding;
266 startFileData.propertiesForLocales[*i] =
273 m_installContext.widgetConfig.localizationData.startFiles.push_back(
278 void TaskWidgetConfig::ProcessBackgroundPageFile()
280 if (!!m_installContext.widgetConfig.configInfo.backgroundPage) {
281 // check whether file exists
282 DPL::String backgroundPagePath = DPL::FromUTF8String(
283 m_installContext.locations->getConfigurationDir()) + L"/" +
284 *m_installContext.widgetConfig.configInfo.backgroundPage;
285 //if no then cancel installation
286 if (!WrtUtilFileExists(DPL::ToUTF8String(backgroundPagePath))) {
287 ThrowMsg(Exceptions::WidgetConfigFileInvalid,
288 L"Given background page file not found in archive");
293 void TaskWidgetConfig::ProcessLocalizedIcons()
295 using namespace WrtDB;
296 ProcessIcon(ConfigParserData::Icon(L"icon.svg"));
297 ProcessIcon(ConfigParserData::Icon(L"icon.ico"));
298 ProcessIcon(ConfigParserData::Icon(L"icon.png"));
299 ProcessIcon(ConfigParserData::Icon(L"icon.gif"));
300 ProcessIcon(ConfigParserData::Icon(L"icon.jpg"));
302 FOREACH(i, m_installContext.widgetConfig.configInfo.iconsList)
308 void TaskWidgetConfig::ProcessIcon(const WrtDB::ConfigParserData::Icon& icon)
311 bool isAnyIconValid = false;
312 //In case a default filename is passed as custom filename in config.xml, we
313 //need to keep a set of already processed filenames to avoid icon duplication
316 using namespace WrtDB;
318 if (m_processedIconSet.count(icon.src) > 0) {
321 m_processedIconSet.insert(icon.src);
323 LocaleSet localesAvailableForIcon;
325 FOREACH(i, m_localeFolders)
327 DPL::String pathPrefix = *i;
328 if (!pathPrefix.empty()) {
329 pathPrefix = L"locales/" + pathPrefix + L"/";
332 DPL::String relativePath = pathPrefix + icon.src;
333 DPL::String absolutePath = DPL::FromUTF8String(
334 m_installContext.locations->getConfigurationDir()) + L"/" + relativePath;
336 if (WrtUtilFileExists(DPL::ToUTF8String(absolutePath))) {
337 DPL::String type = MimeTypeUtils::identifyFileMimeType(absolutePath);
339 if (MimeTypeUtils::isMimeTypeSupportedForIcon(type)) {
340 isAnyIconValid = true;
341 localesAvailableForIcon.insert(*i);
342 LogInfo("Icon absolutePath :" << absolutePath <<
343 ", assigned locale :" << *i << ", type: " << type);
350 WidgetRegisterInfo::LocalizedIcon localizedIcon(icon,
351 localesAvailableForIcon);
352 m_installContext.widgetConfig.localizationData.icons.push_back(
357 void TaskWidgetConfig::ProcessWidgetInstalledPath()
359 LogDebug("ProcessWidgetInstalledPath");
360 m_installContext.widgetConfig.widgetInstalledPath =
361 DPL::FromUTF8String(m_installContext.locations->getPackageInstallationDir());
364 void TaskWidgetConfig::StepCancelWidgetInstallationAfterVerifyFeatures()
366 LogDebug("StepCancelWidgetInstallationAfterVerifyFeatures");
367 if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
368 m_installCancel = WRT_POPUP_BUTTON;
370 ThrowMsg(Exceptions::WidgetConfigFileInvalid, "Widget not allowed");
374 void TaskWidgetConfig::StepCancelWidgetInstallation()
376 if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
377 m_installCancel = WRT_POPUP_BUTTON;
379 ThrowMsg(Exceptions::NotAllowed, "Widget not allowed");
383 void TaskWidgetConfig::StepCancelWidgetInstallationAfterMinVersion()
385 if (InfoPopupButton::WRT_POPUP_BUTTON_CANCEL == m_installCancel) {
386 m_installCancel = WRT_POPUP_BUTTON;
388 ThrowMsg(Exceptions::NotAllowed, "WRT version incompatible.");
392 void TaskWidgetConfig::createInstallPopup(PopupType type, const std::string &label)
394 m_installContext.job->Pause();
398 bool ret = createPopup();
401 loadPopup( type, label);
406 void TaskWidgetConfig::StepDeletePopupWin()
411 void TaskWidgetConfig::StepShowWidgetInfo()
413 if (!m_popupData.widgetInfo.empty()) {
414 std::string label = DPL::ToUTF8String(m_popupData.widgetInfo);
415 createInstallPopup(PopupType::WIDGET_FEATURE_INFO, label);
416 m_installContext.job->UpdateProgress(
417 InstallerContext::INSTALL_WIDGET_CONFIG2,
418 "Show Widget Info Finished");
422 void TaskWidgetConfig::StepCheckMinVersionInfo()
424 if (!isMinVersionCompatible(
425 m_installContext.widgetConfig.webAppType.appType,
426 m_installContext.widgetConfig.minVersion)) {
427 if(!GlobalSettings::TestModeEnabled() && !m_installContext.m_quiet)
429 LogDebug("Platform version to low - launching");
430 std::string label = WIDGET_NOT_COMPATIBLE + QUESTION;
431 createInstallPopup(PopupType::WIDGET_MIN_VERSION, label);
435 LogError("Platform version lower than required -> cancelling installation");
436 ThrowMsg(Exceptions::NotAllowed,
437 "Platform version does not meet requirements");
441 m_installContext.job->UpdateProgress(
442 InstallerContext::INSTALL_WIDGET_CONFIG2,
443 "Check MinVersion Finished");
446 void TaskWidgetConfig::StepVerifyFeatures()
448 using namespace WrtDB;
449 ConfigParserData &data = m_installContext.widgetConfig.configInfo;
450 ConfigParserData::FeaturesList list = data.featuresList;
451 ConfigParserData::FeaturesList newList;
453 //in case of tests, this variable is unused
454 std::string featureInfo;
457 // check feature vender for permission
458 // WAC, TIZEN WebApp cannot use other feature
460 if (!isFeatureAllowed(m_installContext.widgetConfig.webAppType.appType,
463 LogInfo("This application type not allowed to use this feature");
465 Exceptions::WidgetConfigFileInvalid,
467 m_installContext.widgetConfig.webAppType.getApptypeToString() <<
468 "] cannot be allowed to use [" <<
469 DPL::ToUTF8String(it->name) + "] feature");
471 if (!WrtDB::FeatureDAOReadOnly::isFeatureInstalled(
472 DPL::ToUTF8String(it->name))) {
473 LogWarning("Feature not found. Checking if required :[" <<
474 DPL::ToUTF8String(it->name) << "]");
478 * WL-3210 The WRT MUST inform the user if a widget cannot be
479 * installed because one or more required features are not
482 std::ostringstream os;
483 os << "Widget cannot be installed, required feature is missing:["
484 << DPL::ToUTF8String(it->name) << "]";
485 if (!GlobalSettings::TestModeEnabled() && !isTizenWebApp()) {
486 std::string label = os.str();
487 createInstallPopup(PopupType::WIDGET_WRONG_FEATURE_INFO, label);
489 ThrowMsg(Exceptions::WidgetConfigFileInvalid, os.str());
493 featureInfo += DPL::ToUTF8String(it->name);
494 featureInfo += DPL::ToUTF8String(BR);
497 if(!data.accessInfoSet.empty()) {
498 featureInfo += WINDGET_INSTALL_NETWORK_ACCESS;
499 featureInfo += DPL::ToUTF8String(BR);
501 data.featuresList = newList;
502 if (!featureInfo.empty()) {
503 m_popupData.addWidgetInfo(DPL::FromUTF8String(featureInfo));
506 m_installContext.job->UpdateProgress(
507 InstallerContext::INSTALL_WIDGET_CONFIG2,
508 "Widget Config step2 Finished");
511 bool TaskWidgetConfig::isFeatureAllowed(WrtDB::AppType appType,
512 DPL::String featureName)
514 using namespace WrtDB;
515 LogInfo("AppType = [" <<
516 WidgetType(appType).getApptypeToString() << "]");
517 LogInfo("FetureName = [" << featureName << "]");
519 AppType featureType = APP_TYPE_UNKNOWN;
520 std::string featureStr = DPL::ToUTF8String(featureName);
521 const char* feature = featureStr.c_str();
523 // check prefix of feature name
524 if (strstr(feature, PluginsPrefix::TIZENPluginsPrefix) == feature) {
525 // Tizen WebApp feature
526 featureType = APP_TYPE_TIZENWEBAPP;
527 } else if (strstr(feature, PluginsPrefix::WACPluginsPrefix) == feature) {
529 featureType = APP_TYPE_WAC20;
530 } else if (strstr(feature, PluginsPrefix::W3CPluginsPrefix) == feature) {
531 // W3C standard feature
532 // Both WAC and TIZEN WebApp are possible to use W3C plugins
536 // unknown feature will be checked next step
540 if (appType == featureType) {
546 bool TaskWidgetConfig::parseVersionString(const std::string &version,
547 long &majorVersion, long &minorVersion, long µVersion) const
549 std::istringstream inputString(version);
550 inputString >> majorVersion;
551 if (inputString.bad() || inputString.fail()) {
552 LogWarning("Invalid minVersion format.");
555 inputString.get(); // skip period
556 inputString >> minorVersion;
557 if (inputString.bad() || inputString.fail()) {
558 LogWarning("Invalid minVersion format");
561 inputString.get(); // skip period
562 if (inputString.bad() || inputString.fail()) {
563 inputString >> microVersion;
569 bool TaskWidgetConfig::isMinVersionCompatible(WrtDB::AppType appType,
570 const DPL::OptionalString &widgetVersion) const
572 if (widgetVersion.IsNull() || (*widgetVersion).empty())
574 LogWarning("minVersion attribute is empty. WRT assumes platform "
575 "supports this widget.");
579 //Parse widget version
580 long majorWidget = 0, minorWidget = 0, microWidget = 0;
581 if (!parseVersionString(DPL::ToUTF8String(*widgetVersion), majorWidget,
582 minorWidget, microWidget)) {
583 LogWarning("Invalid format of widget version string.");
587 //Parse supported version
588 long majorSupported = 0, minorSupported = 0, microSupported = 0;
590 if (appType == WrtDB::AppType::APP_TYPE_TIZENWEBAPP) {
591 version = WrtDB::GlobalConfig::GetTizenVersion();
592 } else if (appType == WrtDB::AppType::APP_TYPE_WAC20) {
593 version = WrtDB::GlobalConfig::GetWACVersion();
595 LogWarning("Invaild AppType");
599 if (!parseVersionString(version,
600 majorSupported, minorSupported, microSupported)) {
601 LogWarning("Invalid format of platform version string.");
605 if (majorWidget > majorSupported ||
606 (majorWidget == majorSupported && minorWidget > minorSupported) ||
607 (majorWidget == majorSupported && minorWidget == minorSupported
608 && microWidget > microSupported))
610 LogInfo("Platform doesn't support this widget.");
616 bool TaskWidgetConfig::isTizenWebApp() const
619 if (m_installContext.widgetConfig.webAppType.appType
620 == WrtDB::AppType::APP_TYPE_TIZENWEBAPP)
626 bool TaskWidgetConfig::parseConfigurationFileBrowser(WrtDB::ConfigParserData& configInfo,
627 const std::string& _currentPath, int* pErrCode)
632 parser.Parse(_currentPath, ElementParserPtr(new
636 DPL::FromUTF32String(
639 Catch(ElementParser::Exception::Base)
641 LogError("Invalid widget configuration file!");
642 *pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
648 bool TaskWidgetConfig::parseConfigurationFileWidget(WrtDB::ConfigParserData& configInfo,
649 const std::string& _currentPath, int* pErrCode)
653 //TODO: rewrite this madness
654 std::string cfgAbsPath;
656 struct dirent* ptr = NULL;
658 dir = opendir(_currentPath.c_str());
660 *pErrCode = WRT_ERR_UNKNOWN;
663 bool has_config_xml = false;
665 while ((ptr = readdir(dir)) != NULL) { //Find configuration file, based on its name
666 if (ptr->d_type == DT_REG) {
667 if (!strcmp(ptr->d_name, WRT_WIDGET_CONFIG_FILE_NAME)) {
668 std::string dName(ptr->d_name);
669 WrtUtilJoinPaths(cfgAbsPath, _currentPath, dName);
671 //Parse widget configuration file
672 LogDebug("Found config: " << cfgAbsPath);
676 parser.Parse(cfgAbsPath, ElementParserPtr(new
685 Catch(ElementParser::Exception::Base)
687 LogError("Invalid widget configuration file!");
688 // _rethrown_exception.Dump();
689 *pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
690 if (-1 == TEMP_FAILURE_RETRY(closedir(dir))) {
691 LogError("Failed to close dir: " << _currentPath << " with error: "
692 << DPL::GetErrnoString());
697 has_config_xml = true;
702 if (-1 == TEMP_FAILURE_RETRY(closedir(dir))) {
703 LogError("Failed to close dir: " << _currentPath << " with error: "
704 << DPL::GetErrnoString());
707 //We must have config.xml so leaveing if we doesn't
708 if (!has_config_xml) {
709 LogError("Invalid archive");
710 *pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
716 bool TaskWidgetConfig::locateAndParseConfigurationFile(
717 const std::string& _currentPath,
718 WrtDB::WidgetRegisterInfo& pWidgetConfigInfo,
719 const std::string& baseFolder,
722 using namespace WrtDB;
728 ConfigParserData& configInfo = pWidgetConfigInfo.configInfo;
730 // check if this installation from browser, or not.
731 size_t pos = _currentPath.rfind("/");
732 std::ostringstream infoPath;
733 infoPath << _currentPath.substr(pos+1);
735 if (infoPath.str() != WRT_WIDGET_CONFIG_FILE_NAME) {
736 if (_currentPath.empty() || baseFolder.empty()) {
737 *pErrCode = WRT_ERR_INVALID_ARG;
740 // in case of general installation using wgt archive
741 if(!parseConfigurationFileWidget(configInfo, _currentPath, pErrCode))
746 // in case of browser installation
747 if(!parseConfigurationFileBrowser(configInfo, _currentPath, pErrCode))
753 if(!fillWidgetConfig(pWidgetConfigInfo, configInfo))
755 *pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
761 bool TaskWidgetConfig::fillWidgetConfig(WrtDB::WidgetRegisterInfo& pWidgetConfigInfo,
762 WrtDB::ConfigParserData& configInfo)
764 if (!!configInfo.widget_id) {
765 if (!pWidgetConfigInfo.guid) {
766 pWidgetConfigInfo.guid = configInfo.widget_id;
768 if (pWidgetConfigInfo.guid != configInfo.widget_id) {
769 LogError("Invalid archive");
774 if (!!configInfo.tizenId) {
775 if (pWidgetConfigInfo.pkgName != *configInfo.tizenId) {
776 LogError("Invalid archive - Tizen ID not same error");
780 if (!!configInfo.version) {
781 if (!pWidgetConfigInfo.version) {
782 pWidgetConfigInfo.version = configInfo.version;
784 if (pWidgetConfigInfo.version != configInfo.version) {
785 LogError("Invalid archive");
790 if (!!configInfo.minVersionRequired) {
791 pWidgetConfigInfo.minVersion = configInfo.minVersionRequired;
792 } else if (!!configInfo.tizenMinVersionRequired) {
793 pWidgetConfigInfo.minVersion = configInfo.tizenMinVersionRequired;
798 void TaskWidgetConfig::processFile(const std::string& path,
799 WrtDB::WidgetRegisterInfo &widgetConfiguration)
803 if (!locateAndParseConfigurationFile(path, widgetConfiguration,
804 DEFAULT_LANGUAGE, &pErrCode)) {
805 LogWarning("Widget archive: Failed while parsing config file");
806 ThrowMsg(Exception::ConfigParseFailed, path);
810 } //namespace WidgetInstall