#include <dirent.h>
#include <fstream>
#include <ail.h>
-#include <shortcut/shortcut.h>
//WRT INCLUDES
#include <widget_install/task_manifest_file.h>
AddStep(&TaskManifestFile::stepCreateExecFile);
AddStep(&TaskManifestFile::stepGenerateManifest);
AddStep(&TaskManifestFile::stepParseManifest);
- if (m_context.browserRequest) {
- AddStep(&TaskManifestFile::stepCreateShortcut);
- }
AddStep(&TaskManifestFile::stepFinalize);
} else {
// for widget update.
"Widget iconfile copy Finished");
}
-void TaskManifestFile::stepCreateShortcut()
-{
- LogInfo("create shortcut");
-
- WidgetDAOReadOnly dao(*m_context.widgetHandle);
- LanguageTagsList languageTags(dao.getLanguageTags());
- DPL::OptionalString name;
- DPL::OptionalString pkgname = m_context.widgetConfig.pkgname;
-
- FOREACH(i, languageTags)
- {
- name = dao.getLocalizedInfo(*i).name;
- if (!name.IsNull()) {
- LogInfo("found name: " << DPL::ToUTF8String(*name).c_str());
- break;
- }
- }
-
- add_to_home_shortcut(DPL::ToUTF8String(*pkgname).c_str(),
- DPL::ToUTF8String(*name).c_str(),
- LAUNCH_BY_PACKAGE,
- DPL::ToUTF8String(*name).c_str(),
- m_context.installedIconPath.c_str(),
- NULL, NULL);
-
- m_context.job->UpdateProgress(
- InstallerContext::INSTALL_CREATE_SHORTCUT,
- "shortcut creation Finished");
-}
-
void TaskManifestFile::stepBackupIconFiles()
{
LogDebug("Backup Icon Files");