tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / API / DEPRACATED / Telephony / LogEntry.cpp
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /**
17  * @file        LogEntry.cpp
18  * @author      Lukasz Marek (l.marek@samsung.com)
19  * @version     0.1
20  */
21
22 #include "LogEntry.h"
23 #include <dpl/log/log.h>
24
25 namespace WrtPlugins {
26 namespace Api {
27 LogEntry::LogEntry() :
28     m_id(UNDEFINED_LOG_ENTRY_ID),
29     m_startTime(0),
30     m_duration(0),
31     m_folder(LogEntry::INVALID_FOLDER)
32 {
33 }
34
35 LogEntry::~LogEntry()
36 {
37 }
38
39 int LogEntry::getId() const
40 {
41     return m_id;
42 }
43
44 void LogEntry::setId(int value)
45 {
46     m_id = value;
47 }
48
49 std::string LogEntry::getPhoneNumber() const
50 {
51     return m_phoneNumber;
52 }
53
54 void LogEntry::setPhoneNumber(const std::string &value)
55 {
56     m_phoneNumber = value;
57 }
58
59 std::time_t LogEntry::getStartTime() const
60 {
61     return m_startTime;
62 }
63
64 void LogEntry::setStartTime(std::time_t value)
65 {
66     m_startTime = value;
67 }
68
69 int LogEntry::getDuration() const
70 {
71     return m_duration;
72 }
73
74 void LogEntry::setDuration(int value)
75 {
76     m_duration = value;
77 }
78
79 LogEntry::LogFolder LogEntry::getFolder() const
80 {
81     return m_folder;
82 }
83
84 void LogEntry::setFolder(LogFolder value)
85 {
86     m_folder = value;
87 }
88
89 std::string LogEntry::getDescription() const
90 {
91     return m_description;
92 }
93
94 void LogEntry::setDescription(const std::string &value)
95 {
96     m_description = value;
97 }
98
99 void LogEntry::display()
100 {
101     LogDebug("m_id " << m_id);
102     LogDebug("m_duration " << m_duration);
103     LogDebug("m_startTime " << m_startTime);
104     LogDebug("m_phoneNumber " << m_phoneNumber);
105     LogDebug("m_folder " << m_folder);
106     LogDebug("m_description " << m_description);
107 }
108 }
109 }