diff options
Diffstat (limited to 'mobile_src/SecureElement/SEService.h')
-rwxr-xr-x | mobile_src/SecureElement/SEService.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mobile_src/SecureElement/SEService.h b/mobile_src/SecureElement/SEService.h new file mode 100755 index 0000000..b63586f --- /dev/null +++ b/mobile_src/SecureElement/SEService.h @@ -0,0 +1,63 @@ +// +// 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 _SESERVICE_H_ +#define _SESERVICE_H_ + +#include "ISEService.h" +#include "EventSEService.h" +#include <SEService.h> +#include <queue> + + + +namespace DeviceAPI { +namespace SecureElement { + +class SEService : public ISEService +{ + friend class SEFactory; + public: + SEService(); + virtual ~SEService(); + + virtual void getReaders(const EventListSEsPtr& event); + virtual void registerSEListener(const EventSEStateChangedEmitterPtr& emitter); + virtual void unregisterSEListener(unsigned long id); + virtual void shutdown(); + void getSEServiceCompleted(); + void eventChanged(char *seName, int event); + private: + bool bInitialized; + bool bReqShutDown; + std::vector <EventSEStateChangedEmitterPtr> m_EventSEStateChangedEmitterPtrs; + smartcard_service_api::SEService *m_seService; + std::vector<smartcard_service_api::ReaderHelper*> m_readers; + EventListSEsPtr m_EventListSEsPtr; + std::queue<EventListSEsPtr> eventListSEsPtrs; + protected: + virtual void OnRequestReceived(const EventListSEsPtr& event); + +}; + + +} +} + +#endif /* _SESERVICE_H_ */ |