summaryrefslogtreecommitdiffstats
path: root/lib/Utils/Action.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-15 12:43:01 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-15 12:43:01 +0200
commit0f91e9a06aa0f68a2cbe3c9fc4a858c0a5e6744a (patch)
tree13f92f2fc02d346d8474ef03fd0596e3e0447eda /lib/Utils/Action.h
parent5f4a56f97f36e9cb844fcf3e4399cea67000a6bb (diff)
downloadabrt-0f91e9a06aa0f68a2cbe3c9fc4a858c0a5e6744a.tar.gz
abrt-0f91e9a06aa0f68a2cbe3c9fc4a858c0a5e6744a.tar.xz
abrt-0f91e9a06aa0f68a2cbe3c9fc4a858c0a5e6744a.zip
unify CommLayer, MiddleWare and Utils into Utils
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/Action.h')
-rw-r--r--lib/Utils/Action.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/Utils/Action.h b/lib/Utils/Action.h
new file mode 100644
index 00000000..1286feba
--- /dev/null
+++ b/lib/Utils/Action.h
@@ -0,0 +1,47 @@
+/*
+ Action.h - header file for action plugin
+
+ Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
+ Copyright (C) 2009 RedHat inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef ACTION_H_
+#define ACTION_H_
+
+#include <string>
+#include "Plugin.h"
+
+/**
+ * An abstract class. The class defines an action plugin interface.
+ */
+class CAction : public CPlugin
+{
+ public:
+ /**
+ * A Method which performs particular action. As the first parameter it
+ * takes an action directory. It could be either a directory of actual
+ * crash or it could be a directory contains all crashes. It depends on
+ * who call the plugin. The plugin can takes arguments, but the plugin
+ * has to parse them by itself.
+ * @param pActionDir An actual directory.
+ * @param pArgs Plugin's arguments.
+ */
+ virtual void Run(const std::string& pActionDir,
+ const std::string& pArgs) = 0;
+};
+
+#endif /*ACTION_H_*/