Mark contacts, headphone, message providers as non-unloadable. 99/67799/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 28 Apr 2016 08:59:52 +0000 (17:59 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 28 Apr 2016 08:59:52 +0000 (17:59 +0900)
These providers cause issues when loaded and unloaded multiple times...

Change-Id: I295eca8bc65a8f4f0b975249091554834b997840
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/contacts/Contacts.cpp
src/contacts/Contacts.h
src/headphone/Headphone.cpp
src/headphone/Headphone.h
src/message/Message.cpp
src/message/Message.h

index 3bfe074213113c8acef88c1ab63e3d467cab320d..fc7d0068d4c5a9f914eb3513ff1f7b4bb42c406f 100644 (file)
@@ -43,6 +43,11 @@ bool ContactsChangeProvider::isSupported()
        return true;
 }
 
+bool ContactsChangeProvider::unloadable()
+{
+       return false;
+}
+
 void ContactsChangeProvider::__updateCb(const char* viewUri, void* userData)
 {
        ContactsChangeProvider *instance = static_cast<ContactsChangeProvider*>(userData);
index 623f8c91d9523982100f9c4d7479795e818ddaee..2a30220ceb01e926955f2e522c79160cd5b7900a 100644 (file)
@@ -34,6 +34,8 @@ namespace ctx {
                bool isSupported();
                void getPrivilege(std::vector<const char*> &privilege);
 
+               bool unloadable();
+
        private:
                time_t __latestMyProfile;
                time_t __latestPerson;
index d87daa438cda10e2895c7c3ad135f50a4ab65a6c..63ec01b12f3559ad8426aa5fe19b0d813968e12b 100644 (file)
@@ -41,6 +41,11 @@ bool HeadphoneStateProvider::isSupported()
        return true;
 }
 
+bool HeadphoneStateProvider::unloadable()
+{
+       return false;
+}
+
 int HeadphoneStateProvider::subscribe()
 {
        __connected = __getCurrentStatus();
index eaaf1b603115f9ceafe47b4288272e7c29fafd54..62e1b88f73993c71e310707cbbc5c3c21aef21b8 100644 (file)
@@ -35,6 +35,8 @@ namespace ctx {
 
                bool isSupported();
 
+               bool unloadable();
+
        private:
                bool __connected;
                int __audioJackState;
index 787c89f467c3d1d7cb4d7644cfaa99a16249cd27..ed14fe84a7b73c970606eceacf504f22237a8c28 100644 (file)
@@ -41,6 +41,11 @@ bool MessageEventProvider::isSupported()
        return util::getSystemInfoBool("tizen.org/feature/network.telephony");
 }
 
+bool MessageEventProvider::unloadable()
+{
+       return false;
+}
+
 void MessageEventProvider::__updateCb(msg_handle_t handle, msg_struct_t msg, void* userData)
 {
        MessageEventProvider *instance = static_cast<MessageEventProvider*>(userData);
index e46eff3a16550f4aaeb01346f41858e95c71857b..0553cdcc2359960b3d6730b43b969bfc0aca89fa 100644 (file)
@@ -34,6 +34,8 @@ namespace ctx {
                bool isSupported();
                void getPrivilege(std::vector<const char*> &privilege);
 
+               bool unloadable();
+
        private:
                msg_handle_t __messageHandle;
                bool __beingSubscribed;