};
Elm_Genlist_Item_Class AlarmView::alarm_itc = {
- .item_style = "alarm",
- .func.content_get = AlarmView::ContentGet,
- .func.text_get = AlarmView::TextGet,
- .func.del = AlarmView::Del,
+ 0, 0, EINA_FALSE, EINA_TRUE,
+ "alarm", nullptr, nullptr,
+ { AlarmView::TextGet,
+ AlarmView::ContentGet,
+ nullptr,
+ AlarmView::Del,
+ nullptr,
+ nullptr,
+ }
};
void AlarmView::ItemClicked(void *data, Evas_Object *obj, void *info)
delete id;
}
-AlarmView::AlarmView(ui::IView &main)
+AlarmView::AlarmView(ui::IView &main) : label_(nullptr)
{
/* Base Layout */
content_ = elm_layout_add(main.GetEvasObject());
id->instance->all_selected_ = false;
elm_check_state_set(id->instance->all_selected_check_, id->instance->all_selected_);
} else {
- int items_count = elm_genlist_items_count(id->instance->content_) - 1;
+ unsigned int items_count = elm_genlist_items_count(id->instance->content_) - 1;
std::vector<int> ids = id->instance->GetSelectedItems();
if (items_count == ids.size()) {
id->instance->all_selected_ = true;
{
std::string acc;
- for (int i = 0; i < array.size(); i++) {
+ for (unsigned int i = 0; i < array.size(); i++) {
if (i != 0)
acc.append(delimiter);
acc.append(array[i]);
const char *StopWatchView::GROUP = "StopWatch";
const Elm_Genlist_Item_Class StopWatchView::list_itc = {
- .item_style = "lap",
- .func.text_get = GetListText,
+ 0, 0, EINA_FALSE, EINA_TRUE,
+ "lap", nullptr, nullptr,
+ { GetListText,
+ nullptr, nullptr, nullptr, nullptr, nullptr,
+ }
};
StopWatchView::StopWatchView(ui::IView &main)
/* Delete list View */
Elm_Genlist_Item_Class WorldClockDeleteItemsView::world_clock_delete_view_itc_= {
- .item_style = "worldclock.delete/reorder.list",
- .func.content_get = WorldClockDeleteItemsView::ContentGet,
- .func.text_get = WorldClockDeleteItemsView::TextGet,
- .func.del = WorldClockDeleteItemsView::Del
+ 0, 0, EINA_FALSE, EINA_TRUE,
+ "worldclock.delete/reorder.list", nullptr, nullptr,
+ { WorldClockDeleteItemsView::TextGet,
+ WorldClockDeleteItemsView::ContentGet,
+ nullptr,
+ WorldClockDeleteItemsView::Del,
+ nullptr,
+ nullptr,
+ }
};
void WorldClockDeleteItemsView::AppendItems(std::vector<const model::Location *> locations)
/* Reorder list View */
Elm_Genlist_Item_Class WorldClockReorderView::world_clock_reorder_items_view_itc_ = {
- .item_style = "worldclock.delete/reorder.list",
- .func.content_get = WorldClockReorderView::ContentGet,
- .func.text_get = WorldClockReorderView::TextGet,
- .func.del = WorldClockReorderView::Del
+ 0, 0, EINA_FALSE, EINA_TRUE,
+ "worldclock.delete/reorder.list", nullptr, nullptr,
+ { WorldClockReorderView::TextGet,
+ WorldClockReorderView::ContentGet,
+ nullptr,
+ WorldClockReorderView::Del,
+ nullptr,
+ nullptr,
+ }
};
/* Custom list View */
Elm_Genlist_Item_Class WorldClockView::world_clock_itc_= {
- .item_style = "worldclock.custom.list",
- .func.content_get = WorldClockView::ContentGet,
- .func.text_get = WorldClockView::TextGet,
- .func.del = WorldClockView::Del,
+ 0, 0, EINA_FALSE, EINA_TRUE,
+ "worldclock.custom.list", nullptr, nullptr,
+ { WorldClockView::TextGet,
+ WorldClockView::ContentGet,
+ nullptr,
+ WorldClockView::Del,
+ nullptr,
+ nullptr,
+ }
};
void WorldClockView::UpdateTimezoneLocationsDots(const model::Timezone *timezone)
{
- for (int i = 0; i < 8; i++) {
+ for (unsigned int i = 0; i < 8; i++) {
Edje_Message_Int_Set *msg;
msg = (Edje_Message_Int_Set *) malloc(
sizeof(Edje_Message_Int_Set) + 3 * sizeof(int));
char cities[MAX_CITIES_LEN];
snprintf(cities, sizeof(cities), "%s", cities_list->at(0).name.c_str());
- for (int i = 1; i < cities_list->size(); i++) {
+ for (unsigned int i = 1; i < cities_list->size(); i++) {
char *tmp = strdup(cities);
snprintf(cities, sizeof(cities), "%s, %s", tmp, cities_list->at(i).name.c_str());
free(tmp);