2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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 // @ Project : Access Control Engine
18 // @ File Name : UserDecision.h
19 // @ Date : 2009-05-22
24 #ifndef _WIDGET_USAGE_H
25 #define _WIDGET_USAGE_H
27 #include <dpl/event/event_support.h>
30 #include "AsyncVerdictResultListener.h"
44 USAGE_VERDICT_INAPPLICABLE,
45 USAGE_VERDICT_UNDETERMINED,
46 USAGE_VERDICT_UNKNOWN,
50 class PolicyEvaluator;
52 class PolicyEvaluatorData
56 UsageValidity m_validity;
57 UsageVerdict m_verdict;
58 AsyncVerdictResultListener *m_listener;
61 PolicyEvaluatorData(const Request& request,
62 AsyncVerdictResultListener *listener) :
64 m_validity(USAGE_UNKNOWN),
65 m_verdict(USAGE_VERDICT_ERROR),
70 // KW UsageValidity getValidity() const {
71 // KW return m_validity;
74 // KW UsageVerdict getVerdict() const {
75 // KW return m_verdict;
78 // KW void setValidity(UsageValidity validity) {
79 // KW this->m_validity = validity;
82 // KW void setVerdict(UsageVerdict verdict) {
83 // KW this->m_verdict = verdict;
86 const Request& getRequest() const
91 AsyncVerdictResultListener* getListener() const
97 #endif //_USERDECISION_H