Remove dbus request for mobileap-agent 33/105033/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Thu, 15 Dec 2016 06:57:59 +0000 (15:57 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Thu, 15 Dec 2016 06:58:28 +0000 (15:58 +0900)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I055f4aeb95439b4e7cca3132a4b7e020868cc494

server/bluetooth.cpp
server/restriction.cpp
server/wifi.cpp

index c721500..bb7746d 100644 (file)
        ((enable) ? BLUETOOTH_DPM_BT_ALLOWED :              \
                                BLUETOOTH_DPM_BT_RESTRICTED)
 
-
-#define MOBILEAP_INTERFACE             \
-       "org.tizen.MobileapAgent",      \
-       "/MobileapAgent",                       \
-       "org.tizen.tethering"
-
 namespace DevicePolicyManager {
 
 namespace {
@@ -233,15 +227,6 @@ int BluetoothPolicy::setTetheringState(bool enable)
                if (!SetPolicyAllowed(context, "bluetooth-tethering", enable)) {
                        return 0;
                }
-
-               dbus::Connection &systemDBus = dbus::Connection::getSystem();
-               systemDBus.methodcall(MOBILEAP_INTERFACE,
-                                                         "change_policy",
-                                                         -1,
-                                                         "",
-                                                         "(sb)",
-                                                         "bluetooth-tethering",
-                                                         enable);
        } catch (runtime::Exception& e) {
                ERROR("Failed to change bluetooth tethering state");
                return -1;
index 3a11f6d..4ffc16e 100644 (file)
        "org.tizen.system.deviced.SysNoti",     \
        "control"
 
-#define MOBILEAP_INTERFACE                  \
-       "org.tizen.MobileapAgent",              \
-       "/MobileapAgent",                       \
-       "org.tizen.tethering"
-
 namespace DevicePolicyManager {
 
 namespace {
@@ -175,15 +170,6 @@ int RestrictionPolicy::setUsbTetheringState(bool enable)
                if (!SetPolicyAllowed(context, "usb-tethering", enable)) {
                        return 0;
                }
-
-               dbus::Connection &systemDBus = dbus::Connection::getSystem();
-               systemDBus.methodcall(MOBILEAP_INTERFACE,
-                                                         "change_policy",
-                                                         -1,
-                                                         "",
-                                                         "(sb)",
-                                                         "usb-tethering",
-                                                         enable);
        } catch (runtime::Exception& e) {
                ERROR("Failed to change USB tethering state");
                return -1;
index ad32357..41b4961 100644 (file)
        "/net/netconfig/network",       \
        "net.netconfig.network"
 
-#define MOBILEAP_INTERFACE             \
-       "org.tizen.MobileapAgent",      \
-       "/MobileapAgent",                       \
-       "org.tizen.tethering"
-
 namespace DevicePolicyManager {
 
 namespace {
@@ -156,15 +151,6 @@ int WifiPolicy::setHotspotState(bool enable)
                if (!SetPolicyAllowed(context, "wifi-hotspot", enable)) {
                        return 0;
                }
-
-               dbus::Connection &systemDBus = dbus::Connection::getSystem();
-               systemDBus.methodcall(MOBILEAP_INTERFACE,
-                                                         "change_policy",
-                                                         -1,
-                                                         "",
-                                                         "(sb)",
-                                                         "wifi-hotspot",
-                                                         enable);
        } catch (runtime::Exception& e) {
                ERROR("Failed to change Wi-Fi hotspot state");
                return -1;