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 #ifdef DBUS_CONNECTION
28 #include <dpl/event/event_support.h>
32 #include "AsyncVerdictResultListener.h"
46 USAGE_VERDICT_INAPPLICABLE,
47 USAGE_VERDICT_UNDETERMINED,
48 USAGE_VERDICT_UNKNOWN,
52 class PolicyEvaluator;
54 class PolicyEvaluatorData
58 UsageValidity m_validity;
59 UsageVerdict m_verdict;
60 AsyncVerdictResultListener *m_listener;
63 PolicyEvaluatorData(const Request& request,
64 AsyncVerdictResultListener *listener) :
66 m_validity(USAGE_UNKNOWN),
67 m_verdict(USAGE_VERDICT_ERROR),
72 // KW UsageValidity getValidity() const {
73 // KW return m_validity;
76 // KW UsageVerdict getVerdict() const {
77 // KW return m_verdict;
80 // KW void setValidity(UsageValidity validity) {
81 // KW this->m_validity = validity;
84 // KW void setVerdict(UsageVerdict verdict) {
85 // KW this->m_verdict = verdict;
88 const Request& getRequest() const
93 AsyncVerdictResultListener* getListener() const
99 #endif //_USERDECISION_H