LeechCraft
0.6.70-19424-g027e980fd1
Modular cross-platform feature rich live environment.
Toggle main menu visibility
Loading...
Searching...
No Matches
tagschange.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
11
#include <QStringList>
12
#include "
tagsconfig.h
"
13
14
namespace
LC::Util
15
{
21
struct
UTIL_TAGS_API
TagsChange
22
{
23
QStringList
Before_
;
24
QStringList
After_
;
25
30
QStringList
Added
()
const
;
31
36
QStringList
Removed
()
const
;
37
40
bool
IsEmpty
()
const
;
41
51
QStringList
ApplyTo
(QStringList tags)
const
;
52
};
53
}
LC::Util
Definition
icoreproxy.h:34
LC::Util::TagsChange
A change of a tags list, described by its old and new versions.
Definition
tagschange.h:22
LC::Util::TagsChange::IsEmpty
bool IsEmpty() const
Returns whether this change neither adds nor removes tags.
Definition
tagschange.cpp:41
LC::Util::TagsChange::Removed
QStringList Removed() const
Returns the tags of Before_ missing from After_.
Definition
tagschange.cpp:36
LC::Util::TagsChange::Before_
QStringList Before_
Definition
tagschange.h:23
LC::Util::TagsChange::After_
QStringList After_
Definition
tagschange.h:24
LC::Util::TagsChange::ApplyTo
QStringList ApplyTo(QStringList tags) const
Applies this change to another tags list.
Definition
tagschange.cpp:46
LC::Util::TagsChange::Added
QStringList Added() const
Returns the tags of After_ missing from Before_.
Definition
tagschange.cpp:31
tagsconfig.h
UTIL_TAGS_API
#define UTIL_TAGS_API
Definition
tagsconfig.h:16
src
util
tags
tagschange.h
Generated by
1.18.0