Check VCONF value for Maintenance Mode
[platform/core/security/device-policy-client.git] / libs / policy-client.h
index 51115e0..f37cdee 100644 (file)
@@ -36,11 +36,12 @@ public:
                                                const SignalHandler& handler,
                                                void* data) noexcept;
        int unsubscribeSignal(int subscriberId) noexcept;
+       int getMaintenanceMode();
 
        template<typename Type, typename... Args>
        Type methodCall(const std::string& method, Args&&... args)
        {
-               if (!maintenanceMode) {
+               if (!getMaintenanceMode()) {
                        errno = EPROTONOSUPPORT;
                        return Type();
                }
@@ -51,7 +52,6 @@ public:
        }
 
 private:
-       int maintenanceMode;
        std::string clientAddress;
        std::unique_ptr<ScopedGMainLoop> mainloop;
 };