upload tizen1.0 source
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Route / RouteDuration.h
similarity index 54%
rename from src/platform/API/Call/EventSendUSSD.h
rename to src/standards/Tizen/Route/RouteDuration.h
index 5e4d68e..b2b8139 100755 (executable)
  * See the License for the specific language governing permissions and
  * limitations under the License. 
  */
-
-
-#ifndef TIZENAPIS_API_CALL_EVENT_SENDUSSD_H_
-#define TIZENAPIS_API_CALL_EVENT_SENDUSSD_H_
+#ifndef _WRTPLUGINS_TIZEN_ROUTEDURATION_H_
+#define _WRTPLUGINS_TIZEN_ROUTEDURATION_H_
 
 #include <string>
-#include <Commons/IEvent.h>
-#include <dpl/shared_ptr.h>
+#include <vector>
+#include <JavaScriptCore/JavaScript.h>
+#include "ConvertibleJSObject.h"
 
 namespace TizenApis {
-namespace Api {
-namespace Call {
-class EventSendUSSD : public WrtDeviceApis::Commons::IEvent<EventSendUSSD>
-{
-  private:
-       std::string m_command;
-       std::string m_result;
-
-  public:
-       void setCommand(const std::string command);
-       void setResult(const std::string result);
-       std::string getCommand() const;
-       std::string getResult() const;
-
-       EventSendUSSD();
+namespace Tizen1_0 {
+namespace LBS{
+
+
+/**
+ * This object is used only data passing platform <-> JS Layer
+ * Not for private object
+ */
+class RouteDuration : public ConvertibleJSObject{
+public:
+    std::string text;
+    double value;
+
+    virtual JSObjectRef toJSObject(JSContextRef context);
 };
+    
+
+} //LBS
+} //Tizen1_0
+} //TizenApis
 
-typedef DPL::SharedPtr<EventSendUSSD> EventSendUSSDPtr;
-}
-}
-}
+#endif //_WRTPLUGINS_TIZEN_ROUTEDURATION_H_
 
-#endif