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.
19 // @ Project : Access Control Engine
20 // @ File Name : Request.h
21 // @ Date : 2009-05-06
33 #include <dpl/ace-dao-ro/IRequest.h>
35 #include <dpl/ace/WRT_INTERFACE.h>
37 class Request : public AceDB::IRequest
40 typedef std::string DeviceCapability;
41 typedef std::set<DeviceCapability> DeviceCapabilitySet;
43 Request(WidgetHandle widgetHandle,
44 WidgetExecutionPhase phase,
45 IFunctionParam *functionParam = 0)
46 : m_widgetHandle(widgetHandle)
48 , m_functionParam(functionParam)
51 WidgetHandle getWidgetHandle() const
53 return m_widgetHandle;
56 WidgetExecutionPhase getExecutionPhase() const
61 IFunctionParam *getFunctionParam() const
63 return m_functionParam;
66 void addDeviceCapability(const std::string& device)
68 m_devcapSet.insert(device);
71 DeviceCapabilitySet getDeviceCapabilitySet() const
77 WidgetHandle m_widgetHandle;
78 WidgetExecutionPhase m_phase;
79 //! \brief list of function param (only for intercept)
80 IFunctionParam *m_functionParam;
81 //! \brief Set of defice capabilities
82 DeviceCapabilitySet m_devcapSet;
85 typedef std::vector <Request> Requests;