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