GList **splashscreens)
{
static const char query_raw[] =
- "SELECT src, type, orientation, indicatordisplay "
+ "SELECT src, type, orientation, indicatordisplay, operation "
"FROM package_app_splash_screen WHERE app_id=%Q";
int ret;
char *query;
_save_column_str(stmt, idx++, &info->type);
_save_column_str(stmt, idx++, &info->orientation);
_save_column_str(stmt, idx++, &info->indicatordisplay);
+ _save_column_str(stmt, idx++, &info->operation);
*splashscreens = g_list_append(*splashscreens, info);
}
splashscreen->orientation = strdup(tmp->orientation);
if (tmp->indicatordisplay)
splashscreen->indicatordisplay = strdup(tmp->indicatordisplay);
+ if (tmp->operation)
+ splashscreen->operation = strdup(tmp->operation);
return splashscreen;
}
static pkgmgrinfo_app_component __appcomponent_convert(const char *comp)
{
- if ( strcasecmp(comp, "uiapp") == 0)
+ if (strcasecmp(comp, "uiapp") == 0)
return PMINFO_UI_APP;
- else if ( strcasecmp(comp, "svcapp") == 0)
+ else if (strcasecmp(comp, "svcapp") == 0)
return PMINFO_SVC_APP;
+ else if (strcasecmp(comp, "widgetapp") == 0)
+ return PMINFO_WIDGET_APP;
+ else if (strcasecmp(comp, "watchapp") == 0)
+ return PMINFO_WATCH_APP;
else
return -1;
}
splashscreen->type,
splashscreen->orientation,
splashscreen->indicatordisplay,
+ splashscreen->operation,
user_data);
if (ret < 0)
break;