cc6ecdd4b3d5968e51e66210b07dd85b96471938
[platform/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 LogEntry::~LogEntry()
35 {}
36
37 int LogEntry::getId() const
38 {
39     return m_id;
40 }
41
42 void LogEntry::setId(int value)
43 {
44     m_id = value;
45 }
46
47 std::string LogEntry::getPhoneNumber() const
48 {
49     return m_phoneNumber;
50 }
51
52 void LogEntry::setPhoneNumber(const std::string &value)
53 {
54     m_phoneNumber = value;
55 }
56
57 std::time_t LogEntry::getStartTime() const
58 {
59     return m_startTime;
60 }
61
62 void LogEntry::setStartTime(std::time_t value)
63 {
64     m_startTime = value;
65 }
66
67 int LogEntry::getDuration() const
68 {
69     return m_duration;
70 }
71
72 void LogEntry::setDuration(int value)
73 {
74     m_duration = value;
75 }
76
77 LogEntry::LogFolder LogEntry::getFolder() const
78 {
79     return m_folder;
80 }
81
82 void LogEntry::setFolder(LogFolder value)
83 {
84     m_folder = value;
85 }
86
87 std::string LogEntry::getDescription() const
88 {
89     return m_description;
90 }
91
92 void LogEntry::setDescription(const std::string &value)
93 {
94     m_description = value;
95 }
96
97 void LogEntry::display()
98 {
99     LogDebug("m_id " << m_id);
100     LogDebug("m_duration " << m_duration);
101     LogDebug("m_startTime " << m_startTime);
102     LogDebug("m_phoneNumber " << m_phoneNumber);
103     LogDebug("m_folder " << m_folder);
104     LogDebug("m_description " << m_description);
105 }
106 }
107 }