Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / notification-manager / SampleApp / tizen / sampleConsumer / src / oicapp-sampleConsumer.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 enum
39 {
40     OICAPP_GENLIST_GRP_NONE = 0,
41     OICAPP_GENLIST_GRP_TOP,
42     OICAPP_GENLIST_GRP_CENTER,
43     OICAPP_GENLIST_GRP_BOTTOM
44 };
45
46 typedef struct
47 {
48     Evas_Object *win;
49     Evas_Object *base;
50     Evas_Object *bg;
51     Evas_Object *navi;
52     Evas_Object *genlist;
53     Evas_Object *popup;
54     Evas_Object *conform;
55
56     Elm_Object_Item *itemConsumer;
57     Elm_Object_Item *itemConsumerUri;
58     Elm_Object_Item *itemConsumerHost;
59     Elm_Object_Item *itemConsumerTemp;
60     Elm_Object_Item *itemConsumerHumid;
61     Elm_Object_Item *itemFindResource;
62     Elm_Object_Item *itemObserve;
63     Elm_Object_Item *itemServer;
64     Elm_Object_Item *itemServerTemp;
65     Elm_Object_Item *itemServerHumid;
66
67     Elm_Genlist_Item_Class itcSeperator;
68     Elm_Genlist_Item_Class itcTitle;
69     Elm_Genlist_Item_Class itcText;
70     Elm_Genlist_Item_Class itcBtnFindResoruce;
71     Elm_Genlist_Item_Class itcBtnObserve;
72
73     char *ipAddr;
74     //oicapp_mode mode;
75     int clientOn;
76     int serverOn;
77     int power;
78     int level;
79
80     int temp;
81     int humid;
82
83     char *uri;
84     char *host;
85
86 } oicappData;
87
88 extern void _gl_update_item(oicappData *ad , const char *title , Elm_Object_Item *item);
89
90 typedef struct
91 {
92     oicappData *ad;
93     const char *title;
94     int group_style;
95
96 } oicappItemData;
97
98 #ifdef __cplusplus
99 }
100 #endif
101
102 #endif //__OICAPP_TEST_H__