/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
static const struct popup_ops charge_error_high_ops;
static const struct popup_ops battery_disconnected_ops;
-static void lowbattery_launch(bundle *b, const struct popup_ops *ops);
+static int lowbattery_launch(bundle *b, const struct popup_ops *ops);
-static void remove_other_lowbattery_popups(const struct popup_ops *ops)
+static int remove_other_lowbattery_popups(const struct popup_ops *ops)
{
if (ops != &lowbattery_warning_ops)
unload_simple_popup(&lowbattery_warning_ops);
if (ops != &lowbattery_poweroff_ops)
unload_simple_popup(&lowbattery_poweroff_ops);
+
+ return 0;
}
-static void remove_other_charge_popups(bundle *b, const struct popup_ops *ops)
+static int remove_other_charge_popups(bundle *b, const struct popup_ops *ops)
{
if (ops != &charge_error_low_ops)
unload_simple_popup(&charge_error_low_ops);
if (ops != &battery_disconnected_ops)
unload_simple_popup(&battery_disconnected_ops);
+
+ return 0;
}
static void charger_status_changed(keynode_t *key, void *data)
_E("Failed to register vconf key handler");
}
-static void lowbattery_launch(bundle *b, const struct popup_ops *ops)
+static int lowbattery_launch(bundle *b, const struct popup_ops *ops)
{
unregister_charger_status_handler();
remove_other_lowbattery_popups(ops);
register_charger_status_handler(ops);
+
+ return 0;
}
static void lowbattery_terminate(const struct popup_ops *ops)
/*
* system-popup
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return ECORE_CALLBACK_CANCEL;
}
-static void cooldown_warning_timer(const struct popup_ops *ops)
+static int cooldown_warning_timer(bundle *b, const struct popup_ops *ops)
{
int ret;
if (ret < 0)
_E("Failed to add dbus handler(%d)", ret);
+ return 0;
}
static Eina_Bool poweroff_time_expired(void *data)
return ECORE_CALLBACK_CANCEL;
}
-static void cooldown_poweroff_timer(const struct popup_ops *ops)
+static int cooldown_poweroff_timer(bundle *b, const struct popup_ops *ops)
{
remove_other_popups(ops);
timer = ecore_timer_add(TIMEOUT_POWEROFF, poweroff_time_expired, ops);
if (!timer)
_E("Failed to add timer");
+
+ return 0;
}
static int cooldown_poweroff_content(const struct popup_ops *ops, char *content, unsigned int len)
.get_content = cooldown_poweroff_content,
.left_text = "IDS_COM_SK_OK",
.left = cooldown_poweroff,
- .launch = cooldown_poweroff_timer,
+ .show = cooldown_poweroff_timer,
.terminate = cooldown_poweroff,
};
.get_content = cooldown_warning_content,
.left_text = "IDS_COM_SK_OK",
.left = cooldown_warning,
- .launch = cooldown_warning_timer,
+ .show = cooldown_warning_timer,
.terminate = cooldown_warning,
};
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* popup-launcher
*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* popup-launcher
*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* popup-launcher
*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
switch (index) {
case 0:
- if (!strncmp("elm.text", part, sizeof("elm.text"))) return strdup(_(items[index]));
+ if (!strncmp("elm.text", part, sizeof("elm.text")))
+ return strdup(_(items[index]));
else
return NULL;
case 1:
- if (!strncmp("elm.text", part, sizeof("elm.text"))) return strdup(_(items[index]));
+ if (!strncmp("elm.text", part, sizeof("elm.text")))
+ return strdup(_(items[index]));
else
return NULL;
}
+
+ return NULL;
}
static void gl_sel_cb(void *data, Evas_Object *obj, void *event_info)
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
static const struct popup_ops lowstorage_critical_ops;
static const struct popup_ops lowstorage_full_ops;
-static int remove_other_lowstorage_popups(const struct popup_ops *ops)
+static int remove_other_lowstorage_popups(bundle *b, const struct popup_ops *ops)
{
if (ops != &lowstorage_warning_ops)
unload_simple_popup(&lowstorage_warning_ops);
/*
* system-popup
*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* system-popup
*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.