[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Knipptasch] 8ccb997: move export/exportplugin.h and
From: Stefan "Böhmann" <kde () hilefoks ! org>
Date: 2010-12-01 4:03:02
Message-ID: 20101201040302.87C71A60AE () git ! kde ! org
[Download RAW message or body]
A src/interface/importplugin.h [License: GPL(v2)]
A src/interface/exportplugin.h [License: GPL(v2)]
commit 8ccb9979542a16d4301772efe4d1ce76ffc6081b
Author: Stefan Böhmann <kde@hilefoks.org>
Date: Wed Dec 1 04:47:31 2010 +0100
move export/exportplugin.h and import/importplugin.h to interface/
diff --git a/src/export/csv/csvexportplugin.h b/src/export/csv/csvexportplugin.h
index 781b340..40c36c3 100644
--- a/src/export/csv/csvexportplugin.h
+++ b/src/export/csv/csvexportplugin.h
@@ -17,7 +17,7 @@
#ifndef CSVEXPORTPLUGIN_H
#define CSVEXPORTPLUGIN_H
-#include "../exportplugin.h"
+#include "interface/exportplugin.h"
class CsvExportPlugin : public ExportPlugin
diff --git a/src/export/exportplugin.h b/src/export/exportplugin.h
deleted file mode 100644
index 54ecd22..0000000
--- a/src/export/exportplugin.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2010 by Stefan Böhmann <kde@hilefoks.org>
- *
- * 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, see <http://www.gnu.org/licenses/>.
- */
-#ifndef EXPORTPLUGIN_H
-#define EXPORTPLUGIN_H
-
-#include <QList>
-
-class Posting;
-class QString;
-class QWidget;
-class QPixmap;
-class Account;
-
-
-class ExportPlugin
-{
- public:
- virtual ~ExportPlugin() {}
-
- virtual QString exportActionName() const = 0;
- virtual QPixmap exportActionIcon() const = 0;
-
- virtual void exportAccount(const Account *account, const QList<const Posting*> &selected, \
QWidget *parent = 0) const = 0;
-};
-
-
-#endif
-
-// kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; \
remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on;
-// vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1:
diff --git a/src/import/csv/csvimportplugin.h b/src/import/csv/csvimportplugin.h
index 9a7e4e6..1209c82 100644
--- a/src/import/csv/csvimportplugin.h
+++ b/src/import/csv/csvimportplugin.h
@@ -17,7 +17,7 @@
#ifndef CSVIMPORTPLUGIN_H
#define CSVIMPORTPLUGIN_H
-#include "../importplugin.h"
+#include "interface/importplugin.h"
class CsvImportPlugin : public ImportPlugin
diff --git a/src/import/demo/demoimportplugin.h b/src/import/demo/demoimportplugin.h
index 492ae9f..01925a4 100644
--- a/src/import/demo/demoimportplugin.h
+++ b/src/import/demo/demoimportplugin.h
@@ -17,7 +17,7 @@
#ifndef DEMOIMPORTPLUGIN_H
#define DEMOIMPORTPLUGIN_H
-#include "../importplugin.h"
+#include "interface/importplugin.h"
class DemoImportPlugin : public ImportPlugin
diff --git a/src/import/importplugin.h b/src/import/importplugin.h
deleted file mode 100644
index dd16530..0000000
--- a/src/import/importplugin.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2010 by Stefan Böhmann <kde@hilefoks.org>
- *
- * 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, see <http://www.gnu.org/licenses/>.
- */
-#ifndef IMPORTPLUGIN_H
-#define IMPORTPLUGIN_H
-
-class QWidget;
-class Account;
-class QString;
-class QPixmap;
-
-
-class ImportPlugin
-{
- public:
- virtual ~ImportPlugin() {}
-
- virtual QString importActionName() const = 0;
- virtual QPixmap importActionIcon() const = 0;
-
- virtual Account* importAccount(QWidget *parent = 0) const = 0;
-};
-
-
-#endif
-
-// kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; \
remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on;
-// vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1:
diff --git a/src/interface/exportplugin.h b/src/interface/exportplugin.h
new file mode 100644
index 0000000..54ecd22
--- /dev/null
+++ b/src/interface/exportplugin.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2010 by Stefan Böhmann <kde@hilefoks.org>
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef EXPORTPLUGIN_H
+#define EXPORTPLUGIN_H
+
+#include <QList>
+
+class Posting;
+class QString;
+class QWidget;
+class QPixmap;
+class Account;
+
+
+class ExportPlugin
+{
+ public:
+ virtual ~ExportPlugin() {}
+
+ virtual QString exportActionName() const = 0;
+ virtual QPixmap exportActionIcon() const = 0;
+
+ virtual void exportAccount(const Account *account, const QList<const Posting*> &selected, \
QWidget *parent = 0) const = 0; +};
+
+
+#endif
+
+// kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; \
remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on; +// vim:set spell \
et sw=4 ts=4 nowrap cino=l1,cs,U1:
diff --git a/src/interface/importplugin.h b/src/interface/importplugin.h
new file mode 100644
index 0000000..dd16530
--- /dev/null
+++ b/src/interface/importplugin.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2010 by Stefan Böhmann <kde@hilefoks.org>
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef IMPORTPLUGIN_H
+#define IMPORTPLUGIN_H
+
+class QWidget;
+class Account;
+class QString;
+class QPixmap;
+
+
+class ImportPlugin
+{
+ public:
+ virtual ~ImportPlugin() {}
+
+ virtual QString importActionName() const = 0;
+ virtual QPixmap importActionIcon() const = 0;
+
+ virtual Account* importAccount(QWidget *parent = 0) const = 0;
+};
+
+
+#endif
+
+// kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; \
remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on; +// vim:set spell \
et sw=4 ts=4 nowrap cino=l1,cs,U1:
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b42da7c..82dd1da 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -27,7 +27,9 @@
#include "backend/account.h"
#include "backend/storage.h"
-#include "export/exportplugin.h"
+#include "interface/exportplugin.h"
+#include "interface/importplugin.h"
+
#include "export/csv/csvexportplugin.h"
#include "import/csv/csvimportplugin.h"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic