2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 #include "AlarmRelative.h"
23 AlarmRelative::AlarmRelative()
25 m_alarmRecurrence = AlarmRecurrencePtr(new AlarmRecurrence());
26 m_isRecurrence = false;
29 AlarmRelative::~AlarmRelative()
33 int AlarmRelative::getId() const
38 void AlarmRelative::setId(const int id)
43 bool AlarmRelative::isRecurrence()
45 return m_isRecurrence;
48 void AlarmRelative::setIsRecurrence(bool value)
50 m_isRecurrence = value;
53 AlarmRecurrencePtr AlarmRelative::getRecurrence()
55 return m_alarmRecurrence;
57 void AlarmRelative::setRecurrence(AlarmRecurrencePtr ptr)
59 m_alarmRecurrence->setData(ptr);
62 void AlarmRelative::setDate(struct tm date)
64 LogError("=== Before Assign ===");
65 LogError("[ILOVEFILM] Date = " << " Sec : " << date.tm_sec << " Min : "<< date.tm_min
66 << " Hour" << date.tm_hour << "Day : " << date.tm_mday << " MON : " << date.tm_mon
67 << " Year : " << date.tm_year);
69 LogError("=== After Assign ===");
70 LogError("[ILOVEFILM] Date = " << " Sec : " << m_date.tm_sec << " Min : "<< m_date.tm_min
71 << " Hour" << m_date.tm_hour << "Day : " << m_date.tm_mday << " MON : " << m_date.tm_mon
72 << " Year : " << m_date.tm_year);
75 struct tm AlarmRelative::getDate()
77 LogError("[ILOVEFILM] Date = " << " Sec : " << m_date.tm_sec << " Min : "<< m_date.tm_min
78 << " Hour" << m_date.tm_hour << "Day : " << m_date.tm_mday << " MON : " << m_date.tm_mon
79 << " Year : " << m_date.tm_year);
83 void AlarmRelative::setDelay(int delay)
88 int AlarmRelative::getDelay()
93 void AlarmRelative::setAlarmType(alarm_type_e type)
97 AlarmRelative::alarm_type_e AlarmRelative::getAlarmType()