void RingCreate(void);
void RingDestroy(utils::Event &e);
- bool isInitialized;
RingController();
};
seconds GetRemainingTime(void);
private:
- seconds time_;
unsigned hour_;
unsigned minute_;
unsigned second_;
}
DBG("Operation: %s", opData);
- char *alarmID = NULL;
-
if (!strcmp(opData, APP_CONTROL_OPERATION_DEFAULT))
MainController::GetInstance().Init();
else if (!strcmp(opData, APP_CONTROL_OPERATION_ALARM)) {
}
MainController::MainController() :
- edit_page_(main_view_), delete_page_(main_view_), world_clock_delete_page_(main_view_),
- world_clock_reorder_page_(main_view_), delete_presenter_(nullptr),
- edit_presenter_(nullptr), world_clock_delete_presenter_(nullptr),
- world_clock_reorder_presenter_(nullptr), initialized_(false)
+ world_clock_model_(nullptr), stop_watch_model_(nullptr), timer_model_(nullptr),
+
+ alarm_presenter_(nullptr), world_clock_presenter_(nullptr), stop_watch_presenter_(nullptr),
+ timer_presenter_(nullptr), edit_presenter_(nullptr), delete_presenter_(nullptr),
+ world_clock_delete_presenter_(nullptr), world_clock_reorder_presenter_(nullptr),
+
+ edit_page_(main_view_), delete_page_(main_view_),
+ world_clock_delete_page_(main_view_), world_clock_reorder_page_(main_view_),
+
+ initialized_(false)
{
}
}
RingController::RingController()
- : isInitialized(false)
{
listener_ = utils::EventBus::AddListener<model::RingDismissEvent>(std::bind(&RingController::RingDestroy,
this, std::placeholders::_1));
namespace model {
- Ring::Ring() : ring_type_(RingType::RING_TYPE_NONE), alarm_(NULL)
+ Ring::Ring() : alarm_(NULL), ring_type_(RingType::RING_TYPE_NONE)
{
}
using namespace std::chrono;
TimerPresenter::TimerPresenter(view::TimerView *view, model::Timer *model)
- : model_(model), view_(view)
+ : view_(view), model_(model)
{
view_->RegisterSignal(std::bind(&TimerPresenter::StartButtonClicked, this),
WorldClockDeletePresenter::WorldClockDeletePresenter(
WorldClockDeleteItemsView *view, WorldClock *model) :
- delete_view_(view), model_(model)
+ model_(model), delete_view_(view)
{
DBG("");
delete_view_->RegisterSignal(view::WorldClockDeleteItemsView::SignalType::BUTTON_CANCEL_CLICKED,
WorldClockReorderPresenter::WorldClockReorderPresenter(
WorldClockReorderView *view, model::WorldClock *model) :
- reorder_view_(view), model_(model)
+ model_(model), reorder_view_(view)
{
reorder_view_->RegisterSignalHandler(WorldClockReorderView::Signals::LIST_REORDERED,
std::bind(&WorldClockReorderPresenter::OnListReordered, this));
std::string Translate::Sprintf(int count, const char *singularForm, const char *pluralForm, ...)
{
char *result = NULL;
- va_list args, copy;
+ va_list args;
va_start(args, pluralForm);
int ret = vasprintf(&result, ngettext(singularForm, pluralForm, count), args);
// local_timezone_offset and timezone_offset should be relative to GMT
std::string GetTimezoneDiffDescription(int local_timezone_offset, int timezone_offset)
{
- char *pattern;
std::string relative;
int offset_integer = (abs(timezone_offset - local_timezone_offset)) / 60;
}
PageView::PageView(ui::IView &main)
- : naviframe_(main.GetEvasObject()), navi_item_(nullptr)
+ : navi_item_(nullptr), naviframe_(main.GetEvasObject())
{
}
void TimerView::EntryFocusedCb(void *data, Evas_Object *obj, void *event_info)
{
- TimerView *object = static_cast<TimerView *>(data);
-
elm_entry_select_all(obj);
}