summaryrefslogtreecommitdiff
path: root/mobile_src/DataControl/EventGetValue.h
diff options
context:
space:
mode:
authorSehong Na <sehong.na@samsung.com>2014-05-31 13:20:25 +0900
committerSehong Na <sehong.na@samsung.com>2014-05-31 13:20:25 +0900
commit59c401dcb6127a3ca74995bd3b3a7864a95fc418 (patch)
tree1d621db3eb1506f2fa42f1c38e143b90e1c3984f /mobile_src/DataControl/EventGetValue.h
downloadwrt-plugins-tizen-tizen_2.3.tar.gz
wrt-plugins-tizen-tizen_2.3.tar.bz2
wrt-plugins-tizen-tizen_2.3.zip
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
+