Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SampleApp / tizen / SSMTesterApp / oic-sample / src / oicapp-test.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11
12 #ifndef __OICAPP_TEST_H__
13 #define __OICAPP_TEST_H__
14
15 #include <Elementary.h>
16
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif
21
22 #include "oicapp-log.h"
23
24 #if !defined(PACKAGE)
25 #  define PACKAGE "oicapp-test"
26 #endif
27
28 #if !defined(LOCALEDIR)
29 #  define LOCALEDIR "/usr/apps/com.samsung.oicapp-test/res/locale"
30 #endif
31
32 #if !defined(EDJDIR)
33 #  define EDJDIR "/usr/apps/com.samsung.oicapp-test/res/edje"
34 #endif
35
36 #define GRP_MAIN "main"
37
38 typedef enum
39 {
40     OICAPP_MODE_NONE = 0,
41     OICAPP_MODE_CLIENT,
42     OICAPP_MODE_SERVER,
43     OICAPP_MODE_MAX
44 } oicapp_mode;
45
46 enum
47 {
48     OICAPP_GENLIST_GRP_NONE = 0,
49     OICAPP_GENLIST_GRP_TOP,
50     OICAPP_GENLIST_GRP_CENTER,
51     OICAPP_GENLIST_GRP_BOTTOM
52 };
53
54
55 typedef struct
56 {
57     Evas_Object *win;
58     Evas_Object *base;
59     Evas_Object *bg;
60     Evas_Object *navi;
61     Evas_Object *genlist;
62     Evas_Object *popup;
63     Evas_Object *conform;
64
65     Elm_Object_Item *item_multiline;
66     Elm_Object_Item *item_client_pwr;
67     Elm_Object_Item *item_client_lev;
68     Elm_Object_Item *item_server;
69     Elm_Object_Item *item_server_pwr;
70     Elm_Object_Item *item_server_lev;
71
72     Elm_Genlist_Item_Class itc_seperator;
73     Elm_Genlist_Item_Class itc_edit;
74     Elm_Genlist_Item_Class itc_btn;
75     Elm_Genlist_Item_Class itc_multiline;
76
77     char *ip_addr;
78     char *input_msg;
79     char *output_msg;
80 } oicapp_data;
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif //__OICAPP_TEST_H__
86
87