2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FBaseRtEvent.cpp
20 * @brief This is the implementation file for the Event class.
24 #include <FBaseRtEvent.h>
25 #include <FBaseRtIEventArg.h>
26 #include <FBaseRtIEventListener.h>
27 #include "FBaseRt_EventImpl.h"
29 using namespace Tizen::Base;
30 using namespace Tizen::Base::Runtime;
32 namespace Tizen { namespace Base { namespace Runtime
38 __pEventImpl = new _EventImpl(*this);
39 //__pEventImpl->Initialize();
48 Event::AddListener(IEventListener& listener, bool calledByCallerThread)
50 return __pEventImpl->AddListener(listener, calledByCallerThread);
54 Event::RemoveListener(IEventListener& listener)
56 return __pEventImpl->RemoveListener(listener);
60 Event::Fire(IEventArg& arg)
62 return __pEventImpl->Fire(arg);
65 } } } // Tizen::Base::Runtime