2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FBaseRtEvent.cpp
19 * @brief This is the implementation file for the Event class.
23 #include <FBaseRtEvent.h>
24 #include <FBaseRtIEventArg.h>
25 #include <FBaseRtIEventListener.h>
26 #include "FBaseRt_EventImpl.h"
28 using namespace Tizen::Base;
29 using namespace Tizen::Base::Runtime;
31 namespace Tizen { namespace Base { namespace Runtime
37 __pEventImpl = new _EventImpl(*this);
38 //__pEventImpl->Initialize();
47 Event::AddListener(IEventListener& listener, bool calledByCallerThread)
49 return __pEventImpl->AddListener(listener, calledByCallerThread);
53 Event::RemoveListener(IEventListener& listener)
55 return __pEventImpl->RemoveListener(listener);
59 Event::Fire(IEventArg& arg)
61 return __pEventImpl->Fire(arg);
64 } } } // Tizen::Base::Runtime