/* * 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __main_H__ #define __main_H__ #include #include #include #include #include #include #include #include #include #include #include "language.h" #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "D2D-CONV-SETTING" #ifdef PACKAGE #undef PACKAGE #endif #define PACKAGE "org.tizen.d2d-conv-setting" typedef enum state { POWER_OFF = 0, POWER_ON, DISCOVERY_START, DISCOVERY_STOP, CHANGE_LANGUAGE, APP_PAUSE, APP_RESUME, APP_TERMINATE } state_e; /* state event lisetner */ typedef void (*event_listener)(state_e state); extern void add_state_change_event_listener(event_listener listener); extern void state_change_event(state_e state); /* setting ui */ extern void create_setting_menu(Evas_Object *parent); extern void create_setting_item_power(Evas_Object *parent); extern void create_setting_item_sign(Evas_Object *parent); extern void create_setting_item_discovery_button(Evas_Object *parent); extern void create_setting_item_device_list(Evas_Object *parent); extern void create_setting_item_popup(Evas_Object *parent); /* util */ extern void do_haptic(int count); #endif /* __main_H__ */