LeechCraft Azoth 0.6.70-16373-g319c272718
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
messagebase.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11namespace LC
12{
13namespace Azoth
14{
16 {
17 protected:
18 bool IsOTR_ = false;
19
20 bool IsForwarded_ = false;
21 public:
22 void ToggleOTRMessage (bool otr)
23 {
24 IsOTR_ = otr;
25 }
26
27 bool IsOTRMessage () const
28 {
29 return IsOTR_;
30 }
31
32 void ToggleForwarded (bool forwarded)
33 {
34 IsForwarded_ = forwarded;
35 }
36
37 bool IsForwarded () const
38 {
39 return IsForwarded_;
40 }
41 };
42}
43}
void ToggleForwarded(bool forwarded)
Definition messagebase.h:32
void ToggleOTRMessage(bool otr)
Definition messagebase.h:22
bool IsForwarded() const
Definition messagebase.h:37
bool IsOTRMessage() const
Definition messagebase.h:27