┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/libdolphin_export.h
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2007-03-23 15:32:28 +0000
committerLaurent Montel <[email protected]>2007-03-23 15:32:28 +0000
commit84ea1693dace41d500c0a61501d67508b83711da (patch)
tree561d1a55da6952f0ff722d3e11015ede4ac91669 /src/libdolphin_export.h
parent343b54f8e46c3dc5e13fee75b1baddda029b1a83 (diff)
Create shared lib as discussed with David and Peter
It will used to create kparts which will use theses class svn path=/trunk/KDE/kdebase/apps/; revision=645768
Diffstat (limited to 'src/libdolphin_export.h')
-rw-r--r--src/libdolphin_export.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/libdolphin_export.h b/src/libdolphin_export.h
new file mode 100644
index 000000000..6603844f1
--- /dev/null
+++ b/src/libdolphin_export.h
@@ -0,0 +1,40 @@
+/*
+ This file is part of the KDE project
+ Copyright (C) 2007 Montel Laurent <[email protected]>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License version 2 as published by the Free Software Foundation.
+
+ This library 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef LIBDOLPHIN_EXPORT_H
+#define LIBDOLPHIN_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* needed, because e.g. Q_OS_UNIX is so frequently used */
+#include <QtCore/qglobal.h>
+
+#ifdef MAKE_DOLPHIN_LIB
+# define LIBDOLPHIN_EXPORT KDE_EXPORT
+#else
+# ifdef Q_OS_WIN
+# define LIBDOLPHIN_EXPORT KDE_IMPORT
+# else
+# define LIBDOLPHIN_EXPORT KDE_EXPORT
+# endif
+#endif
+
+#endif
+