midday-commander
Loading...
Searching...
No Matches
ForEachAction.h
Go to the documentation of this file.
1//
2// Created by Vojtěch Pašek on 11.05.2023.
3//
4
5#ifndef MIDDAY_COMMANDER_FOREACHACTION_H
6#define MIDDAY_COMMANDER_FOREACHACTION_H
7
8#include "Action.h"
9
13class ForEachAction : public Action {
14public:
15 void execute(FileView&, State&) override;
16private:
17 virtual void executeAction(FileView&, std::shared_ptr<Entry>) = 0;
18};
19
20#endif //MIDDAY_COMMANDER_FOREACHACTION_H
An abstract class representing a general operation in the program.
Definition: Action.h:17
Represents a file view of the Application.
Definition: FileView.h:16
A base class for Actions that are supposed to iterate over State.selected.
Definition: ForEachAction.h:13
virtual void executeAction(FileView &, std::shared_ptr< Entry >)=0
void execute(FileView &, State &) override
Definition: ForEachAction.cpp:7
Holds the global state of the Application.
Definition: State.h:16