summaryrefslogtreecommitdiff
path: root/include/my-account-main.h
blob: eed5a9588e96bc5842ff95df6485c83180879ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * PROPRIETARY/CONFIDENTIAL
 *
 * This software is the confidential and proprietary information of
 * SAMSUNG ELECTRONICS ("Confidential Information").
 * You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement
 * you entered into with SAMSUNG ELECTRONICS.
 * SAMSUNG make no representations or warranties about the suitability
 * of the software, either express or implied, including but not
 * limited to the implied warranties of merchantability, fitness for
 * a particular purpose, or non-infringement.
 * SAMSUNG shall not be liable for any damages suffered by licensee as
 * a result of using, modifying or distributing this software or its derivatives.

 */


#ifndef __MY_ACCOUNT_MAIN_H__
#define __MY_ACCOUNT_MAIN_H__

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <Elementary.h>
#include <efl_extension.h>
#include <glib.h>
#include <app.h>

#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */

/* Package */
#define APPNAME	PACKAGE
#define GRP_MAIN	"main"
#define ICON_PATH	RESDIR"/icons"
#define IMAGES_PATH	IMGDIR
#define TABLE_PATH	TABLEDIR
#define EDJ_FILE	EDJDIR"/"APPNAME".edj"
#define MA_UG_NAME "my-account"

enum {
	VIEW_MAIN = 0,
	VIEW_ADD_ACCOUNTS
};

typedef enum {
	MYACCOUNT_ACCOUNT_LIST_MODE,
	MYACCOUNT_ADD_ACCOUNT_MODE,
} myaccount_mode_e;

typedef struct {
	Evas_Object *main_win;
	Evas_Object *main_layout;
	Evas_Object *main_bg;
	Evas_Object *conform;
	Eext_Circle_Surface *circle_surface;

	Evas_Object *popup;
	Evas_Object *navi_frame;
	Evas_Object *add_button;
	int current_view;

	myaccount_mode_e mode;

	char *current_language;
	GList *account_list;
	GList *account_app_list;

	GList *item_list_account;
	GList *item_list_account_app;
	Elm_Object_Item *item_no_content;
	Elm_Object_Item *on_off;
	Evas_Object *main_genlist;
	Evas_Object *radio_main;
} appdata;

#ifdef __cplusplus
}
#endif
#endif /*__MY_ACCOUNT_MAIN_H__*/