summaryrefslogtreecommitdiff
path: root/mobile_src/DataControl/EventGetValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/DataControl/EventGetValue.h')
-rw-r--r--mobile_src/DataControl/EventGetValue.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/mobile_src/DataControl/EventGetValue.h b/mobile_src/DataControl/EventGetValue.h
new file mode 100644
index 0000000..bf51f0e
--- /dev/null
+++ b/mobile_src/DataControl/EventGetValue.h
@@ -0,0 +1,59 @@
+//
+// 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_API_EVENT_GET_VALUE_H_
+#define TIZENAPIS_API_EVENT_GET_VALUE_H_
+
+#include <Commons/IEvent.h>
+#include <dpl/shared_ptr.h>
+#include <vector>
+#include <Logger.h>
+
+namespace DeviceAPI {
+namespace DataControl {
+
+class EventGetValue : public WrtDeviceApis::Commons::IEvent<EventGetValue>
+{
+private :
+ unsigned int m_reqId;
+ std::string m_errorMsg;
+ std::string m_key;
+ std::vector<std::string> m_result;
+public:
+ unsigned int getReqId() { return m_reqId; }
+ std::string getErrorMsg() { return m_errorMsg; }
+ std::string getKey() { return m_key;}
+ std::vector<std::string> getResultValues() { return m_result;}
+
+ void setReqId(const unsigned int & reqId) { m_reqId = reqId;}
+ void setKey(const std::string &key) { m_key = key;}
+ void setErrorMsg(const std::string &msg) { m_errorMsg = msg; }
+ void addResultValue(const std::string &value) { m_result.push_back(value);}
+
+
+ EventGetValue() { LoggerD("entered"); }
+ ~EventGetValue() { }
+};
+
+typedef DPL::SharedPtr<EventGetValue> EventGetValuePtr;
+
+}
+}
+
+#endif
+