modues/connection: remove nosim 30/59330/4
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 12 Feb 2016 14:19:11 +0000 (15:19 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Wed, 17 Feb 2016 15:13:55 +0000 (07:13 -0800)
no sim is not initialized in indicator. Additionally rssi
submodule can handle functionality of deleted nosim in future.

Change-Id: I3894842bd8f0392dd959bc32b62ba0138df4ea52
Signed-off-by: Lukasz Stanislawski <l.stanislaws@samsung.com>
src/modules/connection/nosim.c [deleted file]

diff --git a/src/modules/connection/nosim.c b/src/modules/connection/nosim.c
deleted file mode 100644 (file)
index 349c683..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- *  Indicator
- *
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <vconf.h>
-#include "common.h"
-#include "indicator.h"
-#include "icon.h"
-#include "modules.h"
-#include "main.h"
-
-#define ICON_PRIORITY  INDICATOR_PRIORITY_NOTI_2
-#define MODULE_NAME            "nosim"
-#define TIMER_INTERVAL 0.3
-
-static int register_nosim_module(void *data);
-static int unregister_nosim_module(void);
-
-icon_s nosim = {
-       .type = INDICATOR_IMG_ICON,
-       .name = MODULE_NAME,
-       .priority = ICON_PRIORITY,
-       .always_top = EINA_FALSE,
-       .exist_in_view = EINA_FALSE,
-       .area = INDICATOR_ICON_AREA_NOTI,
-       .img_obj = {0,},
-       .obj_exist = EINA_FALSE,
-       .init = register_nosim_module,
-       .fini = unregister_nosim_module
-};
-
-static const char *icon_path[] = {
-       "RSSI/B03_RSSI_NoSim.png",
-       NULL
-};
-
-static int bShown = 0;
-
-
-
-static void set_app_state(void* data)
-{
-       nosim.ad = data;
-}
-
-
-
-static void show_image_icon(void)
-{
-       if(bShown == 1)
-       {
-               return;
-       }
-
-       nosim.img_obj.data = icon_path[0];
-       icon_show(&nosim);
-
-       bShown = 1;
-}
-
-
-
-static void hide_image_icon(void)
-{
-       icon_hide(&nosim);
-
-       bShown = 0;
-}
-
-
-
-static void indicator_nosim_change_cb(keynode_t *node, void *data)
-{
-       int status;
-       int ret;
-       retif(data == NULL, , "Invalid parameter!");
-
-       ret = vconf_get_int(VCONFKEY_TELEPHONY_SIM_SLOT, &status);
-       if (ret == OK && status != VCONFKEY_TELEPHONY_SIM_INSERTED)
-       {
-               show_image_icon();
-       }
-       else
-       {
-               hide_image_icon();
-       }
-
-       return;
-}
-
-
-
-static int register_nosim_module(void *data)
-{
-       int ret = -1;
-
-       retif(data == NULL, FAIL, "Invalid parameter!");
-
-       set_app_state(data);
-
-       ret = vconf_notify_key_changed(VCONFKEY_TELEPHONY_SIM_SLOT,
-                                      indicator_nosim_change_cb, data);
-
-       indicator_nosim_change_cb(NULL, data);
-
-       return ret;
-}
-
-
-
-static int unregister_nosim_module(void)
-{
-       int ret;
-
-       ret = vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SIM_SLOT,
-                                      indicator_nosim_change_cb);
-
-       return ret;
-}