upload tizen1.0 source
[profile/ivi/tel-plugin-dbus_tapi.git] / include / common.h
1 /*
2  * tel-plugin-dbus-tapi
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Ja-young Gu <jygu@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __COMMON_H__
22 #define __COMMON_H__
23
24 #include <glib-2.0/glib.h>
25 #include <dbus/dbus-protocol.h>
26 #include <dbus/dbus-glib.h>
27 #include <dbus/dbus-glib-bindings.h>
28 #include <glib-object.h>
29 #include <dbus/dbus.h>
30 #include <TelSim.h>
31 #include <TelSat.h>
32
33 __BEGIN_DECLS
34
35 struct custom_data {
36         TcorePlugin *plugin;
37         Communicator *comm;
38         Server *server;
39         Storage *strg;
40         DBusConnection *EvtDeliveryHandle;
41         gboolean b_recv_first_status;
42         TelSimPinStatus_t pin_lock;
43         TelSimPinStatus_t sim_lock;
44         gboolean fdn_lock;
45         TelSimLanguageInfo_t language;
46         TelSimIccIdInfo_t iccid;
47         TelSimEccData_t ecc;
48         int ecc_count;
49         void *plmn_list_search_result_cache;
50         TelSatSetupMenuInfo_t *pSatMainMenu;
51         GQueue sat_q;
52         gboolean help_requested;
53         TelSatAlphabetFormatType_t setup_menu_a_format;
54 };
55
56 __END_DECLS
57
58 #endif