remove add_to_home_shortcut
authorSoyoung Kim <sy037.kim@samsung.com>
Thu, 30 Aug 2012 06:51:39 +0000 (15:51 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Thu, 30 Aug 2012 07:01:12 +0000 (16:01 +0900)
src/jobs/widget_install/task_manifest_file.cpp
src/jobs/widget_install/task_manifest_file.h

index 1d925c9..e6a8dce 100644 (file)
@@ -26,7 +26,6 @@
 #include <dirent.h>
 #include <fstream>
 #include <ail.h>
-#include <shortcut/shortcut.h>
 
 //WRT INCLUDES
 #include <widget_install/task_manifest_file.h>
@@ -105,9 +104,6 @@ TaskManifestFile::TaskManifestFile(InstallerContext &inCont) :
         AddStep(&TaskManifestFile::stepCreateExecFile);
         AddStep(&TaskManifestFile::stepGenerateManifest);
         AddStep(&TaskManifestFile::stepParseManifest);
-        if (m_context.browserRequest) {
-            AddStep(&TaskManifestFile::stepCreateShortcut);
-        }
         AddStep(&TaskManifestFile::stepFinalize);
     } else {
     // for widget update.
@@ -256,36 +252,6 @@ void TaskManifestFile::stepCopyIconFiles()
         "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");
index c93cf54..d06b3d2 100644 (file)
@@ -64,7 +64,6 @@ class TaskManifestFile :
     void stepCreateExecFile();
     void stepFinalize();
     void stepCopyIconFiles();
-    void stepCreateShortcut();
     void stepGenerateManifest();
     void stepParseManifest();
     void stepParseUpgradedManifest();