Support OnrequestNumber for reporter 89/233889/1
authormk5004.lee <mk5004.lee@samsung.com>
Wed, 20 May 2020 05:46:26 +0000 (14:46 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Wed, 20 May 2020 05:46:26 +0000 (14:46 +0900)
Change-Id: I8a4acd68fde49356e0145cdb33b0a96473e10aad
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/notification_ex_service.cc

index 243a975..e9acbc1 100644 (file)
@@ -611,6 +611,13 @@ class DPMManager : public Manager {
     }
   }
 
+  int OnRequestNumber(const IEventInfo& info) override {
+    int count = 0;
+    DBG("Get count !!! %s, %s", info.GetOwner().c_str(), info.GetChannel().c_str());
+    DBManager::GetCount(info.GetOwner(), info.GetChannel(), facade_->GetUid(info), &count);
+    return count;
+  }
+
   void UpdateHideApp(list<shared_ptr<item::AbstractItem>> updatedList) {
     for (auto& i : updatedList) {
       string hide_list;