File indexing completed on 2024-12-01 04:48:04
0001 /* 0002 This file is part of oxaccess. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #include "object.h" 0010 0011 using namespace OXA; 0012 0013 Object::Object() = default; 0014 0015 void Object::setObjectStatus(ObjectStatus status) 0016 { 0017 mObjectStatus = status; 0018 } 0019 0020 Object::ObjectStatus Object::objectStatus() const 0021 { 0022 return mObjectStatus; 0023 } 0024 0025 void Object::setObjectId(qlonglong id) 0026 { 0027 mObjectId = id; 0028 } 0029 0030 qlonglong Object::objectId() const 0031 { 0032 return mObjectId; 0033 } 0034 0035 void Object::setFolderId(qlonglong id) 0036 { 0037 mFolderId = id; 0038 } 0039 0040 qlonglong Object::folderId() const 0041 { 0042 return mFolderId; 0043 } 0044 0045 void Object::setLastModified(const QString &timeStamp) 0046 { 0047 mLastModified = timeStamp; 0048 } 0049 0050 QString Object::lastModified() const 0051 { 0052 return mLastModified; 0053 } 0054 0055 void Object::setModule(Folder::Module module) 0056 { 0057 mModule = module; 0058 } 0059 0060 Folder::Module Object::module() const 0061 { 0062 return mModule; 0063 } 0064 0065 void Object::setContact(const KContacts::Addressee &contact) 0066 { 0067 mModule = Folder::Contacts; 0068 mContact = contact; 0069 } 0070 0071 KContacts::Addressee Object::contact() const 0072 { 0073 return mContact; 0074 } 0075 0076 void Object::setContactGroup(const KContacts::ContactGroup &group) 0077 { 0078 mModule = Folder::Contacts; 0079 mContactGroup = group; 0080 } 0081 0082 KContacts::ContactGroup Object::contactGroup() const 0083 { 0084 return mContactGroup; 0085 } 0086 0087 void Object::setEvent(const KCalendarCore::Incidence::Ptr &event) 0088 { 0089 mModule = Folder::Calendar; 0090 mEvent = event; 0091 } 0092 0093 KCalendarCore::Incidence::Ptr Object::event() const 0094 { 0095 return mEvent; 0096 } 0097 0098 void Object::setTask(const KCalendarCore::Incidence::Ptr &task) 0099 { 0100 mModule = Folder::Tasks; 0101 mTask = task; 0102 } 0103 0104 KCalendarCore::Incidence::Ptr Object::task() const 0105 { 0106 return mTask; 0107 }