381921340b94685ead8cc01b5d8293d2c9bc9327
[apps/core/preloaded/calendar.git] / include / appcontrol.h
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18
19 #ifndef __CALENDAR_APPCONTROL_H__
20 #define __CALENDAR_APPCONTROL_H__
21
22 #define CAL_APPCONTROL_SOCAIL_VIEW "http://tizen.org/appcontrol/operation/social/view"
23 #define CAL_APPCONTROL_SOCAIL_PICK "http://tizen.org/appcontrol/operation/social/pick"
24 #define CAL_APPCONTROL_SOCAIL_EDIT "http://tizen.org/appcontrol/operation/social/edit"
25 #define CAL_APPCONTROL_VIEW "http://tizen.org/appcontrol/operation/view"
26
27 #define CAL_APPCONTROL_ITEM_TYPE "http://tizen.org/appcontrol/data/social/item_type"
28 #define CAL_APPCONTROL_ITEM_TYPE_EVENT "event"
29 #define CAL_APPCONTROL_ITEM_TYPE_TODO "todo"
30
31 #define CAL_APPCONTROL_ITEM_ID "http://tizen.org/appcontrol/data/social/item_id"
32
33 #define CAL_APPCONTROL_RESULT_TYPE "http://tizen.org/appcontrol/data/social/result_type"
34 #define CAL_APPCONTROL_RESULT_TYPE_VCS "vcs"
35 #define CAL_APPCONTROL_RESULT_TYPE_ITEM_ID "item_id"
36
37 #define CAL_APPCONTROL_PATH "http://tizen.org/appcontrol/data/path"
38
39 /* Optional. Default is single */
40 #define CAL_APPCONTROL_SELECTION_MODE "http://tizen.org/appcontrol/data/selection_mode"
41 #define CAL_APPCONTROL_SELECTION_MODE_SINGLE "single"
42 #define CAL_APPCONTROL_SELECTION_MODE_MULTIPLE "multiple"
43
44 /* Optional. Default is false */
45 #define CAL_APPCONTROL_RETURN_RESULT "http://tizen.org/appcontrol/data/return_result"
46 #define CAL_APPCONTROL_RETURN_RESULT_TRUE "true"
47 #define CAL_APPCONTROL_RETURN_RESULT_FALSE "false"
48
49 typedef enum {
50         SELECTION_MODE_UNKNOWN = 0,
51         SELECTION_MODE_SINGLE,
52         SELECTION_MODE_MULTIPLE,
53         SELECTION_MODE_MAX,
54 } cal_appcontrol_selection_mode;
55
56 typedef enum {
57         ITEM_TYPE_UNKNOWN = 0,
58         ITEM_TYPE_EVENT,
59         ITEM_TYPE_TODO,
60         ITEM_TYPE_EVENT_TODO,
61         ITEM_TYPE_VCS,
62         ITEM_TYPE_MAX,
63 } cal_appcontrol_item_type;
64
65 typedef enum {
66         RESULT_TYPE_UNKNOWN = 0,
67         RESULT_TYPE_VCS,
68         RESULT_TYPE_ITEM_ID,
69         RESULT_TYPE_ITEM_CONTENT,
70
71 #ifndef _TIZEN_PUBLIC_
72         RESULT_TYPE_SET_SNOTE,
73 #endif
74
75         RESULT_TYPE_MAX,
76 } cal_appcontrol_result_type;
77
78 typedef enum {
79         RETURN_RESULT_UNKNOWN = 0,
80         RETURN_RESULT_TRUE,
81         RETURN_RESULT_FALSE,
82         RETURN_RESULT_MAX,
83 } cal_appcontrol_return_result;
84
85 #endif /* __CALENDAR_APPCONTROL_H__ */