2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 #ifndef TIZENAPIS_FILESYSTEM_EVENTRESOLVE_H_
20 #define TIZENAPIS_FILESYSTEM_EVENTRESOLVE_H_
22 #include <dpl/shared_ptr.h>
23 #include <Commons/IEvent.h>
30 namespace Filesystem {
32 public WrtDeviceApis::Commons::IEvent<EventResolve>,
33 public DeviceAPI::Common::SecurityAccessor
37 * Creates new event object.
38 * @param path Path to the node to resolve.
41 explicit EventResolve(const IPathPtr& path);
44 * Gets path of the node to resolve.
45 * @return Path to resolve.
47 IPathPtr getPath() const;
51 * NULL if none found. Check exception code.
52 * @return Resolved node or NULL.
54 INodePtr getResult() const;
58 * @param node Resolved node.
60 void setResult(const INodePtr& node);
62 void setMode(const std::string &mode);
63 std::string getMode();
66 IPathPtr m_path; ///< Path to the requested node.
67 INodePtr m_node; ///< Resolved node.
71 typedef DPL::SharedPtr<EventResolve> EventResolvePtr;
75 #endif // WRTPLUGINS_FILESYSTEM_EVENTRESOLVE_H_