2 * Copyright 2018-2019 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _WAKEUP_POLICY_DEFAULT_H_
18 #define _WAKEUP_POLICY_DEFAULT_H_
20 #include "wakeup_policy.h"
27 namespace multiassistant
34 class CWakeupPolicyDefault : public CWakeupPolicy
37 CWakeupPolicyDefault();
38 CWakeupPolicyDefault(IPolicyEventObserver *observer);
39 ~CWakeupPolicyDefault();
41 void set_assistant_priority(string appid, int priority);
42 void set_delay(float seconds);
44 void wakeup_candidate(mas_wakeup_event_info wakeup_info);
52 float mDelaySeconds{0.0f};
53 vector<PRIORITY_INFO> mPriorityInfos;
54 vector<mas_wakeup_event_info> mWakeupInfos;
56 Ecore_Timer *mTimer{nullptr};
62 #endif /* _WAKEUP_POLICY_H_ */