diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/dbus-util_w.h | 34 | ||||
-rw-r--r-- | include/dbus_util.h | 51 | ||||
-rwxr-xr-x | include/direct-access.h | 33 | ||||
-rwxr-xr-x | include/lock-daemon-lite.h | 25 | ||||
-rwxr-xr-x | include/lock-daemon.h | 25 | ||||
-rwxr-xr-x | include/lockd-bt.h | 28 | ||||
-rwxr-xr-x | include/lockd-debug.h | 85 | ||||
-rwxr-xr-x | include/lockd-process-mgr.h | 52 | ||||
-rwxr-xr-x | include/lockd-window-mgr.h | 52 | ||||
-rwxr-xr-x | include/menu_daemon.h | 48 | ||||
-rw-r--r--[-rwxr-xr-x] | include/mobile/home_mgr.h (renamed from include/dbus-util.h) | 24 | ||||
-rw-r--r-- | include/mobile/hw_key.h | 39 | ||||
-rw-r--r-- | include/mobile/lock_mgr.h | 62 | ||||
-rw-r--r-- | include/mobile/popup.h | 25 | ||||
-rw-r--r-- | include/mobile/starter.h (renamed from include/starter.h) | 1 | ||||
-rw-r--r-- | include/package_mgr.h | 22 | ||||
-rw-r--r-- | include/pkg_event.h | 44 | ||||
-rw-r--r-- | include/process_mgr.h | 38 | ||||
-rwxr-xr-x | include/starter-util.h | 34 | ||||
-rwxr-xr-x | include/starter-vconf.h | 23 | ||||
-rwxr-xr-x | include/starter_w.h | 62 | ||||
-rw-r--r-- | include/status.h | 87 | ||||
-rw-r--r--[-rwxr-xr-x] | include/util.h | 29 | ||||
-rw-r--r--[-rwxr-xr-x] | include/wearable/clock_mgr.h (renamed from include/hw_key_w.h) | 9 | ||||
-rw-r--r--[-rwxr-xr-x] | include/wearable/home_mgr.h (renamed from include/clock-mgr.h) | 15 | ||||
-rw-r--r--[-rwxr-xr-x] | include/wearable/hourly_alert.h (renamed from include/hourly_alert.h) | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | include/wearable/hw_key.h (renamed from include/hw_key.h) | 4 | ||||
-rw-r--r-- | include/window_mgr.h | 37 | ||||
-rw-r--r-- | include/x11.h | 24 |
29 files changed, 413 insertions, 603 deletions
diff --git a/include/dbus-util_w.h b/include/dbus-util_w.h deleted file mode 100755 index 5a279c8..0000000 --- a/include/dbus-util_w.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __DBUS_H__ -#define __DBUS_H__ - -#include <E_DBus.h> - -int request_Poweroff(void); -int request_dbus_cpu_booster(void); -int init_dbus_ALPM_signal(void *data); -int init_dbus_COOL_DOWN_MODE_signal(void *data); -int get_dbus_cool_down_mode(void *data); -int init_dbus_NIKE_RUNNING_STATUS_signal(void *data); -int init_dbus_ALPM_clock_state_signal(void *data); -void starter_dbus_alpm_clock_signal_send(void *data); -DBusConnection *starter_dbus_connection_get(void); - - -#endif //__DBUS_H__ - diff --git a/include/dbus_util.h b/include/dbus_util.h new file mode 100644 index 0000000..c958416 --- /dev/null +++ b/include/dbus_util.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __DBUS_UTIL_H__ +#define __DBUS_UTIL_H__ + +#include <E_DBus.h> + +#define OOM_ADJ_VALUE_HOMESCREEN 0 + +#ifdef TIZEN_PROFILE_MOBILE +#define OOM_ADJ_VALUE_DEFAULT 200 +#else +#define OOM_ADJ_VALUE_DEFAULT 0 +#endif + +#define DEVICED_BUS_NAME "org.tizen.system.deviced" +#define DEVICED_OBJECT_PATH "/Org/Tizen/System/DeviceD" +#define DEVICED_INTERFACE_NAME DEVICED_BUS_NAME +#define DEVICED_PATH DEVICED_OBJECT_PATH"/Process" +#define DEVICED_INTERFACE DEVICED_INTERFACE_NAME".Process" +#define DEVICED_SET_METHOD "oomadj_set" + +#define DISPLAY_OBJECT_PATH DEVICED_OBJECT_PATH"/Display" +#define DEVICED_INTERFACE_DISPLAY DEVICED_INTERFACE_NAME".display" +#define MEMBER_LCD_ON "LCDOn" +#define MEMBER_LCD_OFF "LCDOff" + +extern void dbus_util_send_home_raise_signal(void); +extern int dbus_util_send_oomadj(int pid, int oom_adj_value); +extern void dbus_util_send_cpu_booster_signal(void); +extern void dbus_util_send_poweroff_signal(void); +extern void dbus_util_send_lock_PmQos_signal(void); + +extern int dbus_util_receive_lcd_status(void (*changed_cb)(void *data, DBusMessage *msg), void *data); +extern char *dbus_util_msg_arg_get_str(DBusMessage *msg); + +#endif //__DBUS_UTIL_H__ diff --git a/include/direct-access.h b/include/direct-access.h deleted file mode 100755 index a4f4067..0000000 --- a/include/direct-access.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __DIRECT_ACCESS_H__ -#define __DIRECT_ACCESS_H__ - -#include <E_DBus.h> - -DBusMessage *invoke_dbus_method_sync(const char *dest, const char *path, - const char *interface, const char *method, - const char *sig, char *param[]); - -DBusMessage *invoke_dbus_method(const char *dest, const char *path, - const char *interface, const char *method, - const char *sig, char *param[]); - -int launch_direct_access(int access_val); - -#endif //__DIRECT_ACCESS_H__ - diff --git a/include/lock-daemon-lite.h b/include/lock-daemon-lite.h deleted file mode 100755 index d1367a3..0000000 --- a/include/lock-daemon-lite.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCK_DAEMON_LITE_H__ -#define __LOCK_DAEMON_LITE_H__ - -int start_lock_daemon_lite(int launch_lock, int is_first_boot); -int lockd_get_lock_type(void); -int lockd_get_hall_status(void); -int lockd_get_lock_state(void); - -#endif /* __LOCK_DAEMON_LITE_H__ */ diff --git a/include/lock-daemon.h b/include/lock-daemon.h deleted file mode 100755 index d43f3e6..0000000 --- a/include/lock-daemon.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCK_DAEMON_H__ -#define __LOCK_DAEMON_H__ - -int start_lock_daemon(int launch_lock, int is_first_boot); -int lockd_get_lock_type(void); -int lockd_get_hall_status(void); -int lockd_get_lock_state(void); - -#endif /* __LOCK_DAEMON_H__ */ diff --git a/include/lockd-bt.h b/include/lockd-bt.h deleted file mode 100755 index 33a9369..0000000 --- a/include/lockd-bt.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCKD_BT_H__ -#define __LOCKD_BT_H__ - -int lockd_start_bt_monitor(void); - -void lockd_stop_bt_monitor(void); - -void lockd_change_security_auto_lock(int is_connected); - -int lockd_get_auto_lock_security(void); - -#endif /* __LOCKD_BT_H__ */ diff --git a/include/lockd-debug.h b/include/lockd-debug.h deleted file mode 100755 index 4c24a23..0000000 --- a/include/lockd-debug.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCKD_DEBUG_H__ -#define __LOCKD_DEBUG_H__ - -#include <stdio.h> -#include <dlog.h> - -#ifdef LOG_TAG -#undef LOG_TAG -#endif - -#define LOG_TAG "STARTER" - -#define ENABLE_LOG_SYSTEM - -#ifdef ENABLE_LOG_SYSTEM -#define STARTER_ERR(fmt, arg...) LOGE("["LOG_TAG"%s:%d:E] "fmt, __FILE__, __LINE__, ##arg) -#define STARTER_DBG(fmt, arg...) LOGD("["LOG_TAG"%s:%d:D] "fmt, __FILE__, __LINE__, ##arg) -#define STARTER_WARN(fmt, arg...) LOGW("["LOG_TAG"%s:%d:W] "fmt, __FILE__, __LINE__, ##arg) -#define STARTER_SECURE_ERR(fmt, arg...) SECURE_LOGE("["LOG_TAG"%s:%d:E] "fmt, __FILE__, __LINE__, ##arg) -#define STARTER_SECURE_DBG(fmt, arg...) SECURE_LOGD("["LOG_TAG"%s:%d:D] "fmt, __FILE__, __LINE__, ##arg) -#define STARTER_SECURE_WARN(fmt, arg...) SECURE_LOGW("["LOG_TAG"%s:%d:W] "fmt, __FILE__, __LINE__, ##arg) -#else -#define STARTER_ERR(fmt, arg...) -#define STARTER_DBG(fmt, arg...) -#define STARTER_WARN(fmt, arg...) -#define STARTER_SECURE_ERR(fmt, arg...) -#define STARTER_SECURE_DBG(fmt, arg...) -#define STARTER_SECURE_WARN(fmt, arg...) -#endif - -#ifdef ENABLE_LOG_SYSTEM -#define _ERR(fmt, arg...) do { STARTER_ERR(fmt, ##arg); } while (0) -#define _DBG(fmt, arg...) do { STARTER_DBG(fmt, ##arg); } while (0) -#define _WARN(fmt, arg...) do { STARTER_WARN(fmt, ##arg); } while (0) - -#define _SECURE_ERR(fmt, arg...) do { STARTER_SECURE_ERR(fmt, ##arg); } while (0) -#define _SECURE_DBG(fmt, arg...) do { STARTER_SECURE_DBG(fmt, ##arg); } while (0) -#define _SECURE_WARN(fmt, arg...) do { STARTER_SECURE_WARN(fmt, ##arg); } while (0) - -#define LOCKD_ERR(fmt, arg...) _ERR(fmt, ##arg) -#define LOCKD_DBG(fmt, arg...) _DBG(fmt, ##arg) -#define LOCKD_WARN(fmt, arg...) _WARN(fmt, ##arg) -#define LOCKD_SECURE_ERR(fmt, arg...) _SECURE_ERR(fmt, ##arg) -#define LOCKD_SECURE_DBG(fmt, arg...) _SECURE_DBG(fmt, ##arg) -#define LOCKD_SECURE_WARN(fmt, arg...) _SECURE_WARN(fmt, ##arg) -#else -#define _ERR(...) -#define _DBG(...) -#define _WARN(...) -#define _SECURE_ERR(...) -#define _SECURE_DBG(...) -#define _SECURE_WARN(...) - -#define LOCKD_ERR(...) -#define LOCKD_DBG(...) -#define LOCKD_WARN(...) -#define LOCKD_SECURE_ERR(...) -#define LOCKD_SECURE_DBG(...) -#define LOCKD_SECURE_WARN(...) -#endif - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif - -#endif /* __LOCKD_DEBUG_H__ */ diff --git a/include/lockd-process-mgr.h b/include/lockd-process-mgr.h deleted file mode 100755 index f7429da..0000000 --- a/include/lockd-process-mgr.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCKD_PROCESS_MGR_H__ -#define __LOCKD_PROCESS_MGR_H__ - -void lockd_process_mgr_init(void); - -int lockd_process_mgr_start_lock(void *data, int (*dead_cb) (int, void *), - int lock_type); - -int lockd_process_mgr_restart_lock(int lock_type); - -int lockd_process_mgr_start_recovery_lock(void); - -int lockd_process_mgr_start_back_to_app_lock(void); - -int lockd_process_mgr_start_ready_lock(void); - -int lockd_process_mgr_start_phone_lock(void); - -int lockd_process_mgr_start_normal_lock(void *data, int (*dead_cb) (int, void *)); - -void lockd_process_mgr_terminate_lock_app(int lock_app_pid, - int state); - -void lockd_process_mgr_terminate_phone_lock(int phone_lock_pid); - -void lockd_process_mgr_kill_lock_app(int lock_app_pid); - -int lockd_process_mgr_check_lock(int pid); - -int lockd_process_mgr_check_call(int pid); - -int lockd_process_mgr_check_home(int pid); - -int lockd_process_mgr_set_lockscreen_priority(int pid); -int lockd_process_mgr_set_pwlock_priority(int pid); -#endif /* __LOCKD_PROCESS_MGR_H__ */ diff --git a/include/lockd-window-mgr.h b/include/lockd-window-mgr.h deleted file mode 100755 index cbb1a98..0000000 --- a/include/lockd-window-mgr.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __LOCKD_WINDOW_MGR_H__ -#define __LOCKD_WINDOW_MGR_H__ - -typedef struct _lockw_data lockw_data; - -int -lockd_window_mgr_get_focus_win_pid(void); - -Eina_Bool -lockd_window_set_window_property(lockw_data * data, int lock_app_pid, - void *event); - -Eina_Bool -lockd_window_set_window_effect(lockw_data * data, int lock_app_pid, - void *event); - -void -lockd_window_set_scroll_property(lockw_data * data, int lock_type); - -void lockd_window_set_phonelock_pid(lockw_data * data, int phone_lock_pid); - -void -lockd_window_mgr_ready_lock(void *data, lockw_data * lockw, - Eina_Bool(*create_cb) (void *, int, void *), - Eina_Bool(*show_cb) (void *, int, void *)); - -void lockd_window_mgr_finish_lock(lockw_data * lockw); - -lockw_data *lockd_window_init(void); - -void lockd_create_ug_window(void *data); - -void lockd_destroy_ug_window(void *data); - -void lockd_show_phonelock_alpha_ug(void *data); -#endif /* __LOCKD_WINDOW_MGR_H__ */ diff --git a/include/menu_daemon.h b/include/menu_daemon.h deleted file mode 100755 index 5972da5..0000000 --- a/include/menu_daemon.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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. - */ - -#include <bundle.h> -#include <sys/types.h> -#include <stdbool.h> - -extern void menu_daemon_init(void *data); -extern void menu_daemon_fini(void); - -extern int menu_daemon_open_app(const char *pkgname); -extern int menu_daemon_launch_app(const char *pkgname, bundle *b); -extern void menu_daemon_launch_app_tray(void); - -extern bool menu_daemon_is_homescreen(pid_t pid); -extern int menu_daemon_is_safe_mode(void); -extern int menu_daemon_get_cradle_status(void); -extern const char *menu_daemon_get_svoice_pkg_name(void); - -extern int menu_daemon_check_dead_signal(int pid); - -extern char *menu_daemon_get_selected_pkgname(void); -extern int menu_daemon_open_homescreen(const char *pkgname); - -#if 0 -extern int menu_daemon_get_pm_key_ignore(int ignore_key); -extern void menu_daemon_set_pm_key_ignore(int ignore_key, int value); -#endif - -extern int menu_daemon_get_volume_pid(void); - -extern int menu_daemon_launch_search(void); - - -// End of a file diff --git a/include/dbus-util.h b/include/mobile/home_mgr.h index 3b20715..6fd5061 100755..100644 --- a/include/dbus-util.h +++ b/include/mobile/home_mgr.h @@ -14,20 +14,18 @@ * limitations under the License. */ -#ifndef __DBUS_UTIL_H__ -#define __DBUS_UTIL_H__ +#include <bundle.h> +#include <sys/types.h> +#include <stdbool.h> -#include <E_DBus.h> +extern int home_mgr_get_home_pid(void); +extern int home_mgr_get_volume_pid(void); -#define OOM_ADJ_VALUE_HOMESCREEN 0 +extern void home_mgr_init(void *data); +extern void home_mgr_fini(void); -#ifdef FEATURE_LITE -#define OOM_ADJ_VALUE_DEFAULT 200 -#else -#define OOM_ADJ_VALUE_DEFAULT 0 -#endif +void home_mgr_relaunch_homescreen(void); +void home_mgr_relaunch_volume(void); +extern int home_mgr_open_home(const char *pkgname); -void starter_dbus_home_raise_signal_send(void); -int starter_dbus_set_oomadj(int pid, int oom_adj_value); - -#endif //__DBUS_UTIL_H__ +// End of a file diff --git a/include/mobile/hw_key.h b/include/mobile/hw_key.h new file mode 100644 index 0000000..c1e4857 --- /dev/null +++ b/include/mobile/hw_key.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __HW_KEY_H__ +#define __HW_KEY_H__ + +#define KEY_VOLUMEUP "XF86AudioRaiseVolume" +#define KEY_VOLUMEDOWN "XF86AudioLowerVolume" +#define KEY_HOME "XF86Home" +#define KEY_CONFIG "XF86Camera_Full" +#define KEY_SEARCH "XF86Search" +#define KEY_MEDIA "XF86AudioMedia" +#define KEY_TASKSWITCH "XF86TaskPane" +#define KEY_WEBPAGE "XF86WWW" +#define KEY_MAIL "XF86Mail" +#define KEY_VOICE "XF86Voice" +#define KEY_APPS "XF86Apps" +#define KEY_CONNECT "XF86Call" +#define KEY_BACK "XF86Back" + +extern void hw_key_destroy_window(void); +extern void hw_key_create_window(void); + +#endif + +// End of a file diff --git a/include/mobile/lock_mgr.h b/include/mobile/lock_mgr.h new file mode 100644 index 0000000..6db7a69 --- /dev/null +++ b/include/mobile/lock_mgr.h @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __LOCK_DAEMON_H__ +#define __LOCK_DAEMON_H__ + +#include <Elementary.h> +#include <E_DBus.h> +#include <alarm.h> + +#include "window_mgr.h" + +#define _EDJ(x) elm_layout_edje_get(x) + +#ifdef TIZEN_BUILD_EMULATOR +#define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Default.jpg" +#else +#define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Lock_default.png" +#endif + + + +typedef enum { + LOCK_SOUND_LOCK, + LOCK_SOUND_UNLOCK, + LOCK_SOUND_BTN_KEY, + LOCK_SOUND_TAP, + LOCK_SOUND_MAX, +} lock_sound_type_e; + +typedef enum { + LCD_STATE_ON, + LCD_STATE_OFF, + LCD_STATE_MAX, +} lock_lcd_state_e; + +int lock_mgr_lcd_state_get(void); +int lock_mgr_get_lock_pid(void); +void lock_mgr_sound_play(lock_sound_type_e type); + +void lock_mgr_idle_lock_state_set(int lock_state); +Eina_Bool lock_mgr_lockscreen_launch(void); +void lock_mgr_unlock(void); + + +int lock_mgr_daemon_start(void); +void lock_mgr_daemon_end(void); + +#endif /* __LOCK_DAEMON_H__ */ diff --git a/include/mobile/popup.h b/include/mobile/popup.h new file mode 100644 index 0000000..f8602ad --- /dev/null +++ b/include/mobile/popup.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __POPUP_H__ +#define __POPUP_H__ + +#include <Elementary.h> + +extern Evas_Object *popup_create(const char *title, const char *text); + +#endif +// End of a file diff --git a/include/starter.h b/include/mobile/starter.h index 4ce9124..a9700c2 100644 --- a/include/starter.h +++ b/include/mobile/starter.h @@ -21,6 +21,7 @@ struct appdata { struct timeval tv_start; /* start time */ + int lcd_status; }; #endif /* __STARTER_H__ */ diff --git a/include/package_mgr.h b/include/package_mgr.h new file mode 100644 index 0000000..85b7d4c --- /dev/null +++ b/include/package_mgr.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __PACKAGE_MGR_H__ +#define __PACKAGE_MGR_H__ + +extern bool package_mgr_exist_app(char *appid); + +#endif /* __PACKAGE_MGR_H__ */ diff --git a/include/pkg_event.h b/include/pkg_event.h deleted file mode 100644 index c7ee8b6..0000000 --- a/include/pkg_event.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __NOTIFIER_H__ -#define __NOTIFIER_H__ -#include <stdbool.h> - -#if !defined(PUBLIC) -#define PUBLIC __attribute__((visibility("default"))) /**<All other from outside modules can access this typed API */ -#endif - -#if !defined(PROTECTED) -#define PROTECTED __attribute__((visibility("hidden"))) /**<All other from outside modules can not access this directly */ -#endif - -#if !defined(PRIVATE) -#define PRIVATE __attribute__((visibility("internal"))) /**<Does not export APIs to the other. only can be accessed in this module */ -#endif - - -struct desktop_notifier { - int number; - int ifd; - Ecore_Fd_Handler *handler; -}; - - -PRIVATE void pkg_event_init(void); -PRIVATE void pkg_event_fini(void); - -#endif diff --git a/include/process_mgr.h b/include/process_mgr.h new file mode 100644 index 0000000..008dfae --- /dev/null +++ b/include/process_mgr.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __PROCESS_MGR_H__ +#define __PROCESS_MGR_H__ + +typedef struct _process_mgr_s *process_mgr_h; + +typedef void (*after_func)(int pid); +typedef int (*change_func)(const char *, const char *, const char *, void *, void *); + +void process_mgr_must_launch(const char *appid, const char *key, const char *value, change_func cfn, after_func afn); +void process_mgr_must_open(const char *appid, change_func cfn, after_func afn); +void process_mgr_must_syspopup_launch(const char *appid, const char *key, const char *value, change_func cfn, after_func afn); + +extern void process_mgr_terminate_app(int lock_app_pid, int state); +extern void process_mgr_kill_app(int lock_app_pid); + +extern int process_mgr_validate_app(int pid); +extern int process_mgr_validate_call(int pid); + +extern int process_mgr_set_lock_priority(int pid); +extern int process_mgr_set_pwlock_priority(int pid); + +#endif /* __PROCESS_MGR_H__ */ diff --git a/include/starter-util.h b/include/starter-util.h deleted file mode 100755 index 41999f6..0000000 --- a/include/starter-util.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __STARTER_UTIL_H__ -#define __STARTER_UTIL_H__ - -#include <stdio.h> -#include <sys/time.h> - -#if 0 -#define WRITE_FILE_LOG(fmt, arg...) do { \ - FILE *fp;\ - struct timeval tv; \ - gettimeofday(&tv, NULL); \ - fp = fopen("/var/log/boottime", "a+");\ - if (NULL == fp) break;\ - fprintf(fp, "%u%09u : "fmt"\n", (int) tv.tv_sec, (int) tv.tv_usec, ##arg); \ - fclose(fp);\ -} while (0) -#endif -#endif /* __STARTER_UTIL_H__ */ diff --git a/include/starter-vconf.h b/include/starter-vconf.h deleted file mode 100755 index 2d51f0c..0000000 --- a/include/starter-vconf.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __STARTER_VCONF_H__ -#define __STARTER_VCONF_H__ - -#define VCONF_PRIVATE_LOCKSCREEN_PKGNAME "file/private/lockscreen/pkgname" -#define VCONF_PRIVATE_LOCKSCREEN_DEFAULT_PKGNAME "file/private/lockscreen/default_pkgname" - -#endif /* __STARTER_VCONF_H__ */ diff --git a/include/starter_w.h b/include/starter_w.h deleted file mode 100755 index 102a00b..0000000 --- a/include/starter_w.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __STARTER_W_H__ -#define __STARTER_W_H__ - -#include <sys/time.h> -#include <aul.h> -#include <alarm.h> - -struct appdata { - struct timeval tv_start; /* start time */ - int launcher_pid; - alarm_id_t alarm_id; /* -1 : None, others : set alarm */ - int bt_connected; - char *home_pkgname; - int first_boot; - int cool_down_mode; - int wake_up_setting; - int pid_ALPM_clock; - int ambient_mode; - int retry_cnt; - int nike_running_status; - int ALPM_clock_state; - int reserved_apps_local_port_id; - Eina_List *reserved_apps_list; - int lcd_status; - char *reserved_popup_app_id; - - int pid_clock_viewer; -}; - -typedef enum { - STARTER_RESERVED_APPS_SHEALTH = 0, - STARTER_RESERVED_APPS_NIKE = 1, - STARTER_RESERVED_APPS_HERE = 2, - STARTER_RESERVED_APPS_MAX = 3, -} starter_reservd_apps_type; - -#define W_HOME_PKGNAME "org.tizen.w-home" -#define W_LAUNCHER_PKGNAME "com.samsung.w-launcher-app" - -#define W_CLOCK_VIEWER_PKGNAME "org.tizen.w-clock-viewer" - - -int w_open_app(char *pkgname); -int w_launch_app(char *pkgname, bundle *b); - -#endif /* __STARTER_H__ */ diff --git a/include/status.h b/include/status.h new file mode 100644 index 0000000..9f203f3 --- /dev/null +++ b/include/status.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __STATUS_H__ +#define __STATUS_H__ + +#include <Eina.h> + +#ifndef VCONFKEY_STARTER_RESERVED_APPS_STATUS +/* 2 digits for reserved apps & popup */ +/* 0x01 : reserved apps */ +/* 0x10 : reserved popup */ +#define VCONFKEY_STARTER_RESERVED_APPS_STATUS "memory/starter/reserved_apps_status" +#endif + +#define VCONFKEY_SETAPPL_PASSWORD_ATTEMPTS_LEFT_INT VCONFKEY_SETAPPL_PREFIX"/phone_lock_attempts_left" + +#define STATUS_DEFAULT_LOCK_PKG_NAME "org.tizen.lockscreen" + +typedef enum { + STATUS_ACTIVE_KEY_INVALID = -1, + STATUS_ACTIVE_KEY_PM_STATE = 0, + STATUS_ACTIVE_KEY_SETAPPL_SELECTED_PACKAGE_NAME, + STATUS_ACTIVE_KEY_SETAPPL_SCREEN_LOCK_TYPE_INT, + STATUS_ACTIVE_KEY_STARTER_SEQUENCE, + STATUS_ACTIVE_KEY_SYSMAN_POWER_OFF_STATUS, + STATUS_ACTIVE_KEY_LANGSET, + STATUS_ACTIVE_KEY_MAX, +} status_active_key_e; + +struct status_active_s { + Eina_List *list[STATUS_ACTIVE_KEY_MAX]; + char *setappl_selected_package_name; + int setappl_screen_lock_type_int; + char *langset; + int pm_state; + int starter_sequence; + int sysman_power_off_status; +}; + +struct status_passive_s { + int wms_wakeup_by_gesture_setting; + + int pm_key_ignore; + int pm_state; + int call_state; + int idle_lock_state; + int setappl_password_attempts_left_int; + int remote_lock_islocked; + int setappl_psmode; + int starter_reserved_apps_status; + int setappl_sound_lock_bool; + int setappl_motion_activation; + int setappl_use_pick_up; + int setappl_accessibility_lock_time_int; + int boot_animation_finished; + int setappl_ambient_mode_bool; + + char *setappl_3rd_lock_pkg_name_str; +}; +typedef struct status_passive_s *status_passive_h; +typedef struct status_active_s *status_active_h; +typedef int (*status_active_cb)(status_active_key_e key, void *data); + +extern status_active_h status_active_get(void); +extern status_passive_h status_passive_get(void); + +int status_active_register_cb(status_active_key_e key, status_active_cb func, void *data); +int status_active_unregister_cb(status_active_key_e key, status_active_cb func); + +extern int status_register(void); +extern void status_unregister(void); + +#endif //__STATUS_H__ diff --git a/include/util.h b/include/util.h index 5972926..bec5430 100755..100644 --- a/include/util.h +++ b/include/util.h @@ -19,19 +19,27 @@ #include <dlog.h> #include <stdio.h> #include <sys/time.h> +#include <app.h> -#define APP_TRAY_PKG_NAME "com.samsung.app-tray" +#define APP_TRAY_PKG_NAME "org.tizen.app-tray" #define MENU_SCREEN_PKG_NAME "org.tizen.menu-screen" -#define PROVIDER_PKG_NAME "com.samsung.data-provider-master" -#define SVOICE_PKG_NAME "com.samsung.svoice" -#define CLUSTER_HOME_PKG_NAME "com.samsung.cluster-home" -#define EASY_HOME_PKG_NAME "com.samsung.easy-home" -#define EASY_APPS_PKG_NAME "com.samsung.easy-apps" +#define PROVIDER_PKG_NAME "org.tizen.data-provider-master" +#define CLUSTER_HOME_PKG_NAME "org.tizen.cluster-home" +#define EASY_HOME_PKG_NAME "org.tizen.easy-home" +#define EASY_APPS_PKG_NAME "org.tizen.easy-apps" #define HOMESCREEN_PKG_NAME "org.tizen.homescreen" #define TASKMGR_PKG_NAME "org.tizen.task-mgr" -#define DEFAULT_TASKMGR_PKG_NAME "com.samsung.taskmgr" +#define DEFAULT_TASKMGR_PKG_NAME "org.tizen.taskmgr" #define CONF_PATH_NUMBER 1024 +#define BUF_SIZE_16 16 +#define BUF_SIZE_32 32 +#define BUF_SIZE_128 128 +#define BUF_SIZE_256 256 +#define BUF_SIZE_512 512 +#define BUF_SIZE_1024 1024 + + #ifdef LOG_TAG #undef LOG_TAG #define LOG_TAG "STARTER" @@ -111,6 +119,13 @@ fclose(fp);\ } while (0) +#if !defined(_) +#define _(str) dgettext(PACKAGE, str) +#endif + +#if !defined(S_) +#define S_(str) dgettext("sys_string", str) +#endif #endif /* __MENU_DAEMON_UTIL_H__ */ diff --git a/include/hw_key_w.h b/include/wearable/clock_mgr.h index 13f9062..4f3af15 100755..100644 --- a/include/hw_key_w.h +++ b/include/wearable/clock_mgr.h @@ -14,7 +14,10 @@ * limitations under the License. */ -extern void destroy_key_window(void); -extern void create_key_window(char *home_pkgname, void *data); +#ifndef __CLOCK_MGR_H__ +#define __CLOCK_MGR_H__ -// End of a file +void clock_mgr_init(void); +void clock_mgr_fini(void); + +#endif /* __CLOCK_MGR_H__*/ diff --git a/include/clock-mgr.h b/include/wearable/home_mgr.h index 2b32512..d01a8ea 100755..100644 --- a/include/clock-mgr.h +++ b/include/wearable/home_mgr.h @@ -14,13 +14,14 @@ * limitations under the License. */ -#ifndef __CLOCK_MGR_H__ -#define __CLOCK_MGR_H__ +#ifndef __HOME_MGR_H__ +#define __HOME_MGR_H__ -void init_clock_mgr(void *data); -void fini_clock_mgr(void *data); -void clock_mgr_set_reserved_apps_status(void *data); +extern void home_mgr_launch_home(void); +extern void home_mgr_launch_home_first(void); +extern void home_mgr_launch_home_by_power(void); -#endif -/* __CLOCK_MGR_H__*/ +extern void home_mgr_init(void); +extern void home_mgr_fini(void); +#endif /* __HOME_MGR_H__*/ diff --git a/include/hourly_alert.h b/include/wearable/hourly_alert.h index 1e8ee11..a0ecf40 100755..100644 --- a/include/hourly_alert.h +++ b/include/wearable/hourly_alert.h @@ -18,7 +18,7 @@ #define __HOURLY_ALERT_H__ -void init_hourly_alert(void *data); -void fini_hourly_alert(void *data); +void hourly_alert_init(void); +void hourly_alert_fini(void); #endif /* __HOURLY_ALERT_H__ */ diff --git a/include/hw_key.h b/include/wearable/hw_key.h index ec02f61..a937000 100755..100644 --- a/include/hw_key.h +++ b/include/wearable/hw_key.h @@ -14,7 +14,7 @@ * limitations under the License. */ -extern void destroy_key_window(void); -extern void create_key_window(void); +extern void hw_key_destroy_window(void); +extern void hw_key_create_window(void); // End of a file diff --git a/include/window_mgr.h b/include/window_mgr.h new file mode 100644 index 0000000..1205798 --- /dev/null +++ b/include/window_mgr.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2000 - 2015 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. + * 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 __WINDOW_MGR_H__ +#define __WINDOW_MGR_H__ + +typedef struct _lockw_data lockw_data; + +int window_mgr_get_focus_window_pid(void); +Eina_Bool window_mgr_set_prop(lockw_data * data, int lock_app_pid, void *event); +Eina_Bool window_mgr_set_effect(lockw_data * data, int lock_app_pid, void *event); + +void window_mgr_set_scroll_prop(lockw_data * data, int lock_type); +void window_mgr_register_event(void *data, lockw_data * lockw, + Eina_Bool (*create_cb) (void *, int, void *), + Eina_Bool (*show_cb) (void *, int, void *)); +void window_mgr_unregister_event(lockw_data * lockw); + +lockw_data *window_mgr_init(void); +void window_mgr_fini(lockw_data *lockw); + +Evas_Object *window_mgr_pwd_lock_win_create(void); + +#endif /* __WINDOW_MGR_H__ */ diff --git a/include/x11.h b/include/x11.h deleted file mode 100644 index ef0bbc5..0000000 --- a/include/x11.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2000 - 2015 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. - * 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 __STARTER_X11_H__ -#define __STARTER_X11_H__ - -void prop_string_set(const char *name, const char *value); -void prop_int_set(const char *name, unsigned int val); -void set_window_scale(void); - -#endif /* __STARTER_X11_H__ */ |