summaryrefslogtreecommitdiff
path: root/mobile_src/Filesystem/EventCreate.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Filesystem/EventCreate.h')
-rwxr-xr-xmobile_src/Filesystem/EventCreate.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/mobile_src/Filesystem/EventCreate.h b/mobile_src/Filesystem/EventCreate.h
new file mode 100755
index 0000000..9509dba
--- /dev/null
+++ b/mobile_src/Filesystem/EventCreate.h
@@ -0,0 +1,75 @@
+//
+// Tizen Web Device API
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+#ifndef TIZENAPIS_FILESYSTEM_EVENTCREATE_H_
+#define TIZENAPIS_FILESYSTEM_EVENTCREATE_H_
+
+#include <dpl/shared_ptr.h>
+#include <Commons/IEvent.h>
+#include "IPath.h"
+#include "Enums.h"
+
+namespace DeviceAPI {
+namespace Filesystem {
+class EventCreate : public WrtDeviceApis::Commons::IEvent<EventCreate>
+{
+ public:
+ /**
+ * Creates new event object.
+ * @param path Path to node to create.
+ * @param type Type of node to create.
+ * @return New object.
+ */
+ EventCreate(const IPathPtr& path,
+ NodeType type);
+
+ /**
+ * Gets path to the node.
+ * @return Path to node.
+ */
+ IPathPtr getPath() const;
+
+ /**
+ * Gets type of the node.
+ * @return Type of node.
+ */
+ NodeType getType() const;
+
+ /**
+ * Gets options.
+ * @return Options.
+ */
+ int getOptions() const;
+
+ /**
+ * Sets options.
+ * @param options Options.
+ */
+ void setOptions(int options);
+
+ private:
+ IPathPtr m_path; ///< Path to node to create.
+ NodeType m_type; ///< Type of the node.
+ int m_options; ///< Options for create action @see WrtPlugins::Api::Filesystem::Options.
+};
+
+typedef DPL::SharedPtr<EventCreate> EventCreatePtr;
+} // Filesystem
+} // TizenApis
+
+#endif // TIZENAPIS_FILESYSTEM_EVENTCREATE_H_ \ No newline at end of file