upload tizen1.0 source
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / NFC / EventNFC.h
index 48d8763..5f78f81 100755 (executable)
@@ -28,13 +28,29 @@ class EventNFCTemplate : public WrtDeviceApis::Commons::IEvent<templateClass>
 {
 protected:
        bool result;
+       std::string errorName;
+       std::string errorMessage;
 public:
        void setResult(const bool value) {result = value;}
        bool getResult() const {return result;}
-
-       EventNFCTemplate() { }
+       void setError(const std::string &error) { errorName= error;}
+       void setErrorMessage(const std::string &message) { errorMessage= message;}
+       std::string getError() {return errorName;}
+       std::string getErrorMessage() {return errorMessage;}
+       EventNFCTemplate() :result(true), errorName(""), errorMessage("") { }
 };
 
+template <class templateEventClass>
+class EventNFCPtrs
+{
+private:
+       DPL::SharedPtr<templateEventClass> eventPtr;
+       void * thisPtr;
+public:
+       DPL::SharedPtr<templateEventClass> getEventPtrs() const {return eventPtr;}
+       void *getThisPtr() {return thisPtr;}
+       EventNFCPtrs(const DPL::SharedPtr<templateEventClass> &event, void *myPtr) : eventPtr(event), thisPtr(myPtr) {}
+};
 
 } // NFC
 } // Api