const DPL::String& languageTag) const
{
DPL::OStringStream filename;
- DPL::Optional<DPL::String> pkgname = m_context.widgetConfig.pkgname;
- if (pkgname.IsNull()) {
- ThrowMsg(Exceptions::InternalError, "No Package name exists.");
- }
+ WidgetPkgName pkgname = m_context.widgetConfig.pkgName;
- filename << DPL::ToUTF8String(*pkgname).c_str();
+ filename << DPL::ToUTF8String(pkgname).c_str();
if (!languageTag.empty()) {
DPL::OptionalString tag = getLangTag(languageTag); // translate en -> en_US etc
{
// Update ail for desktop
std::string cfgPkgname =
- DPL::ToUTF8String(*m_context.widgetConfig.pkgname);
+ DPL::ToUTF8String(m_context.widgetConfig.pkgName);
const char* pkgname = cfgPkgname.c_str();
LogDebug("Update ail desktop : " << pkgname );
std::list<std::string> fileList;
getFileList(GlobalConfig::GetUserWidgetDesktopIconPath(), fileList);
- std::string pkgname = DPL::ToUTF8String(*m_context.widgetConfig.pkgname);
+ std::string pkgname = DPL::ToUTF8String(m_context.widgetConfig.pkgName);
FOREACH(it, fileList)
{
void TaskManifestFile::stepGenerateManifest()
{
- DPL::String pkgname = *m_context.widgetConfig.pkgname;
+ WidgetPkgName pkgname = m_context.widgetConfig.pkgName;
manifest_name = pkgname + L".xml";
manifest_file += L"/tmp/" + manifest_name;
generateWidgetName(manifest, uiApp, DPL::OptionalString::Null, name, defaultNameSaved);
}
//appid
- DPL::String pkgname;
- if(!!m_context.widgetConfig.pkgname)
- {
- pkgname = *m_context.widgetConfig.pkgname;
- uiApp.setAppid(pkgname);
- }
+ WidgetPkgName pkgname = m_context.widgetConfig.pkgName;
+ uiApp.setAppid(pkgname);
+
//extraid
if(!!m_context.widgetConfig.guid) {
void TaskManifestFile::setWidgetIcons(UiApplication & uiApp)
{
- DPL::OptionalString pkgname = m_context.widgetConfig.pkgname;
- if (pkgname.IsNull()) {
- ThrowMsg(Exceptions::InternalError, "No Package name exists.");
- }
-
//TODO this file will need to be updated when user locale preferences
//changes.
bool defaultIconSaved = false;
void TaskManifestFile::setWidgetManifest(Manifest & manifest)
{
- if(!!m_context.widgetConfig.pkgname)
- {
- manifest.setPackage(*m_context.widgetConfig.pkgname);
- }
+ manifest.setPackage(m_context.widgetConfig.pkgName);
+
if(!!m_context.widgetConfig.version)
{
manifest.setVersion(*m_context.widgetConfig.version);