Limo
A simple mod manager
Loading...
Searching...
No Matches
editmanualtagaction.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string>
9
10
15{
16public:
18 enum class ActionType
19 {
26 };
27
34 EditManualTagAction(const std::string& name, ActionType type, const std::string& new_name = "");
35
36
41 std::string getName() const;
46 std::string getNewName() const;
51 ActionType getType() const;
52
53private:
55 std::string name_;
57 std::string new_name_;
60};
ActionType type_
The type of action to be performed.
Definition editmanualtagaction.h:59
std::string new_name_
The target tags new name, if ActionType == rename.
Definition editmanualtagaction.h:57
ActionType getType() const
Getter for the ActionType to be performed.
Definition editmanualtagaction.cpp:19
EditManualTagAction(const std::string &name, ActionType type, const std::string &new_name="")
Constructor.
Definition editmanualtagaction.cpp:3
std::string getNewName() const
Getter for the new name.
Definition editmanualtagaction.cpp:14
ActionType
Represents the type of action performed.
Definition editmanualtagaction.h:19
@ remove
Remove an existing tag.
Definition editmanualtagaction.h:23
@ add
Add a new tag.
Definition editmanualtagaction.h:21
@ rename
Rename a tag.
Definition editmanualtagaction.h:25
std::string getName() const
Getter for the target tags name.
Definition editmanualtagaction.cpp:9
std::string name_
The target tags name.
Definition editmanualtagaction.h:55