2012/08/21: tizen 2.0 beta
[apps/home/call-setting.git] / include / cst-tapi-request.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 _CST_TAPI_REQUEST_H_
18 #define _CST_TAPI_REQUEST_H_
19
20 #include "cst-common.h"
21 #include <Eina.h>
22 #include <Elementary.h>
23
24 typedef void (*SsReqCb)(int call_type, int flavour, Eina_Bool ss_state, char *number, int error, int req_action, void *, int waiting_time);
25
26 typedef struct {
27         int call_type;
28         int flavour;
29         int action;
30         int req_id;
31         Eina_Bool is_requesting;
32         Eina_Bool is_canceled;
33         Eina_Bool original_state;
34         SsReqCb func;
35         void *data;
36         char number[CST_MAX_PHONE_NUMBER_LEN];
37         int waiting_time;
38         CstUgData_t *ugd;
39 } CallSettingSSReq_t;
40
41 void _cst_add_ss_request(Eina_List ** queue, int action_type, int call_type, int flavour, char *number, void *func, void *data, int waiting_time, CstUgData_t *ugd);
42 void _cst_cancel_all_ss_request(void *data);
43 void _cst_ciss_register_tel_event(void *data);
44
45 #endif
46