summaryrefslogtreecommitdiff
path: root/modules/memoserv/main/memo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/memoserv/main/memo.cpp')
-rw-r--r--modules/memoserv/main/memo.cpp81
1 files changed, 81 insertions, 0 deletions
diff --git a/modules/memoserv/main/memo.cpp b/modules/memoserv/main/memo.cpp
new file mode 100644
index 000000000..11b4a5107
--- /dev/null
+++ b/modules/memoserv/main/memo.cpp
@@ -0,0 +1,81 @@
+/*
+ * Anope IRC Services
+ *
+ * Copyright (C) 2015-2017 Anope Team <team@anope.org>
+ *
+ * This file is part of Anope. Anope is free software; you can
+ * redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software
+ * Foundation, version 2.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see see <http://www.gnu.org/licenses/>.
+ */
+
+#include "memotype.h"
+
+MemoServ::MemoInfo *MemoImpl::GetMemoInfo()
+{
+ return Get(&MemoType::mi);
+}
+
+void MemoImpl::SetMemoInfo(MemoServ::MemoInfo *mi)
+{
+ Set(&MemoType::mi, mi);
+}
+
+time_t MemoImpl::GetTime()
+{
+ return Get(&MemoType::time);
+}
+
+void MemoImpl::SetTime(const time_t &t)
+{
+ Set(&MemoType::time, t);
+}
+
+Anope::string MemoImpl::GetSender()
+{
+ return Get(&MemoType::sender);
+}
+
+void MemoImpl::SetSender(const Anope::string &s)
+{
+ Set(&MemoType::sender, s);
+}
+
+Anope::string MemoImpl::GetText()
+{
+ return Get(&MemoType::text);
+}
+
+void MemoImpl::SetText(const Anope::string &t)
+{
+ Set(&MemoType::text, t);
+}
+
+bool MemoImpl::GetUnread()
+{
+ return Get(&MemoType::unread);
+}
+
+void MemoImpl::SetUnread(const bool &b)
+{
+ Set(&MemoType::unread, b);
+}
+
+bool MemoImpl::GetReceipt()
+{
+ return Get(&MemoType::receipt);
+}
+
+void MemoImpl::SetReceipt(const bool &b)
+{
+ Set(&MemoType::receipt, b);
+}
+