LeechCraft 0.6.70-19424-g027e980fd1
Modular cross-platform feature rich live environment.
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
14namespace LC::Util
15{
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}
A change of a tags list, described by its old and new versions.
Definition tagschange.h:22
bool IsEmpty() const
Returns whether this change neither adds nor removes tags.
QStringList Removed() const
Returns the tags of Before_ missing from After_.
QStringList Before_
Definition tagschange.h:23
QStringList After_
Definition tagschange.h:24
QStringList ApplyTo(QStringList tags) const
Applies this change to another tags list.
QStringList Added() const
Returns the tags of After_ missing from Before_.
#define UTIL_TAGS_API
Definition tagsconfig.h:16