Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / things-manager / sampleapp / tizen / TMSampleApp / inc / tmsampleapp.h
1 /******************************************************************
2  *
3  * Copyright 2015 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ******************************************************************/
20
21 #ifndef TMSAMPLEAPP_H__
22 #define TMSAMPLEAPP_H__
23
24 #include <app.h>
25 #include <Elementary.h>
26 #include <system_settings.h>
27 #include <efl_extension.h>
28 #include <dlog.h>
29
30 #include "OCPlatform.h"
31 #include "OCApi.h"
32 #include "GroupManager.h"
33 #include "ThingsConfiguration.h"
34 #include "ThingsMaintenance.h"
35
36
37 #ifdef  LOG_TAG
38 #undef  LOG_TAG
39 #endif
40 #define LOG_TAG "tmsampleapp"
41
42 #if !defined(PACKAGE)
43 #define PACKAGE "org.tizen.tmsampleapp"
44 #endif
45
46 #define ELM_DEMO_EDJ "opt/usr/apps/org.tizen.tmsampleapp/res/ui_controls.edj"
47
48 #define FINDGROUP_TIMEOUT 5
49 #define FINDRESOURCE_TIMEOUT 6
50
51 #define DEFAULT_DEVICENAME "n"
52 #define DEFAULT_LOCATION "loc"
53 #define DEFAULT_LOCATIONNAME "locn"
54 #define DEFAULT_CURRENCY "c"
55 #define DEFAULT_REGION "r"
56
57 void group_cb(void *data, Evas_Object *obj, void *event_info);
58 void configuration_cb(void *data, Evas_Object *obj, void *event_info);
59
60 #endif // TMSAMPLEAPP_H__