apply FSL(Flora Software License)
[apps/home/libug-worldclock-efl.git] / include / worldclock_add_view.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17 #ifndef __DEF_WORLDCLOCK_ADDVIEW_H_
18 #define __DEF_WORLDCLOCK_ADDVIEW_H_
19
20 #include <Elementary.h>
21 #include "worldclock.h"
22
23 /**
24  * Create add view for append new city into the selection list of worldclock
25  *
26  * @param[in]  parent    Evas_Object which is the parent of add view
27  * @param[in]  data      data which used in this function
28  * @param[in]  func      Callback function which used for invoking when exit from add view
29  *
30  * @return    FAILED if create add view failed.
31  *            SUCCESS if create add view successfully.
32  */
33 int worldclock_addview_add(Evas_Object *parent, void *data, Wcl_Return_Cb func);
34
35 /**
36  * Release all resources which used in add view when exit from add view
37  *
38  * @param[in]  data   data which used in this function
39  *
40  * @return
41  */
42 void worldclock_addview_free(void *data);
43
44 #endif                          /* __DEF_WORLDCLOCK_ADDVIEW_H_ */