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 FSys_AlarmImpl.h
19 * @brief This is the header file for _AlarmImpl class.
22 #ifndef _FSYSTEM_INTERNAL_ALARM_IMPL_H_
23 #define _FSYSTEM_INTERNAL_ALARM_IMPL_H_
25 #include <FBaseColHashMap.h>
26 #include <FBaseDateTime.h>
27 #include <FBaseInteger.h>
28 #include <FBaseRtEvent.h>
29 #include <FBaseResult.h>
31 #include <FBaseRt_Event.h>
33 #include <FSysAlarm.h>
35 namespace Tizen { namespace System
38 class _OSP_EXPORT_ _AlarmImpl
39 : public Tizen::Base::Object
42 _AlarmImpl(Alarm* pAlarm);
44 virtual ~_AlarmImpl();
47 result Construct(void);
49 result Set(const Tizen::Base::DateTime& startTime, int period, const Tizen::Base::DateTime* pEndTime);
53 const Tizen::Base::DateTime GetStartTime(void) const;
55 int GetPeriod(void) const;
57 const Tizen::Base::DateTime* GetEndTime(void) const;
59 result SetAlarmEventListener(IAlarmEventListener* pListener);
61 void OnAlarmExpired(int alarmId);
63 static _AlarmImpl* GetInstance(Alarm* pAlarm);
65 static const _AlarmImpl* GetInstance(const Alarm* pAlarm);
69 Tizen::Base::Integer __alarmId;
72 _AlarmImpl(const _AlarmImpl& alarmImpl);
74 _AlarmImpl& operator =(const _AlarmImpl& alarmImpl);
77 Tizen::Base::Integer __period;
79 Tizen::Base::DateTime __startTime;
81 Tizen::Base::DateTime* __pEndTime;
85 Tizen::Base::Runtime::_Event* __pEvent;
92 #endif //_FSYSTEM_INTERNAL_ALARM_IMPL_H_