summaryrefslogtreecommitdiff
path: root/mobile_src/Alarm/AlarmRelative.h
diff options
context:
space:
mode:
Diffstat (limited to 'mobile_src/Alarm/AlarmRelative.h')
-rwxr-xr-xmobile_src/Alarm/AlarmRelative.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/mobile_src/Alarm/AlarmRelative.h b/mobile_src/Alarm/AlarmRelative.h
new file mode 100755
index 0000000..e8a4839
--- /dev/null
+++ b/mobile_src/Alarm/AlarmRelative.h
@@ -0,0 +1,73 @@
+//
+// 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 TIZENAPIS_API_ALARMRELATIVE_H_
+#define TIZENAPIS_API_ALARMRELATIVE_H_
+
+#include <string>
+#include <vector>
+#include <dpl/shared_ptr.h>
+#include <time.h>
+#include <app.h>
+#include "alarm_common.h"
+
+namespace DeviceAPI {
+namespace Alarm {
+
+class AlarmRelative;
+typedef DPL::SharedPtr<AlarmRelative> AlarmRelativePtr;
+typedef std::vector<AlarmRelativePtr> AlarmRelativeArrayPtr;
+
+class AlarmRelative
+{
+ public:
+ typedef enum {
+ ALARM_TYPE_DELAY,
+ ALARM_TYPE_DATE,
+ ALARM_TYPE_INVALID,
+ } alarm_type_e;
+
+ AlarmRelative();
+ AlarmRelative(service_h handle);
+ ~AlarmRelative();
+ void setIsRecurrence(bool value);
+ int getId() const;
+ void setId(const int id);
+ void setDelay(int delay);
+ int getDelay();
+ bool isRecurrence();
+ void setPeriod(int value);
+ int getPeriod();
+ service_h getService();
+
+ public:
+ bool is_registered;
+
+ private:
+ int m_id;
+ int m_delay;
+ bool m_isRecurrence;
+ int m_Period;
+ service_h m_service_handle;
+
+};
+
+}
+}
+
+#endif