3445340fea762d4341f8ed2786e599f9c876b207
[apps/core/preloaded/calendar.git] / include / acct-svc.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://www.tizenopensource.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
20
21
22 #ifndef __CALENDAR_ACCOUNT_SVC_H__
23 #define __CALENDAR_ACCOUNT_SVC_H__
24
25 #include <account.h>
26 #include <account-types.h>
27
28 #include "cld.h"
29
30 struct _acct {
31         int id;
32         char *name;
33         char *icon;
34         void *data;
35         Evas_Object* check;
36 };
37
38 #define CAL_ACCOUNT_SVC_STRUCT_GET_INT(acct, field, r) account_svc_get_value_int(acct, field, r);
39 #define CAL_ACCOUNT_SVC_STRUCT_GET_STR(acct, field, r) account_svc_get_value_str(acct, field, r);
40
41 Eina_List* cal_account_svc_get_account_list(void);
42 void cal_account_svc_free_account_list(Eina_List **); // don't care about "data"
43 char* cal_account_svc_get_account_icon_path(int account_id);
44
45 #endif /* __CALENDAR_ACCOUNT_SVC_H__ */
46