#include "log-util.h"
#include "dbus-call.h"
+#define SETUP_EXTENDED "EXTENDED_STORAGE_SETUP"
+#define SETUP_EXTERNAL "EXTERNAL_STORAGE_SETUP"
+
static void
win_delete_request_cb(void *data, Evas_Object *obj, void *event_info)
{
/* Show window after base gui is set up */
evas_object_show(ad->win);
- create_home_page_base_layout(ad);
-
FUNC_END();
}
int int_id;
int ret;
+ char *type = NULL;
+ int len;
+
app_control_get_extra_data(app_control, POPUP_SDCARD_ID, &id);
if (!id) {
ad->storage_id = -1;
ad->storage_id = atoi(id);
register_signal_handler(ad);
+ len = strlen(SETUP_EXTENDED) + 1;
+ app_control_get_extra_data(app_control, SDCARD_SETUP_TYPE, &type);
+ if (!type) {
+ DMSG("No setup type");
+ create_home_page_base_layout(ad);
+ } else if (!strncmp(type, SETUP_EXTENDED, len)) {
+ DMSG("selected USE_AS_INTERNAL_STORAGE");
+ create_internal_storage_page_base_layout(ad);
+ } else if (!strncmp(type, SETUP_EXTERNAL, len)) {
+ DMSG("selected USE_AS_PORTABLE_STORAGE");
+ create_portable_storage_page_base_layout(ad);
+ } else
+ create_home_page_base_layout(ad);
snprintf(str_id, sizeof(str_id), "%d", ad->storage_id);
arr[0] = str_id;
#define POPUP_METHOD_LAUNCH "PopupLaunch"
#define POPUP_KEY_CONTENT "_SYSPOPUP_CONTENT_"
#define POPUP_SDCARD_ID "_SDCARD_NUM_"
+#define SDCARD_SETUP_TYPE "_SDCARD_SETUP_TYPE_"
#endif /* __STORAGED_DBUS_MACRO_H__ */