Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: knotify_export.h
- ===================================================================
- --- knotify_export.h (revision 0)
- +++ knotify_export.h (revision 0)
- @@ -0,0 +1,36 @@
- +/* This file is part of the KDE project
- + Copyright (C) 2010 Patrick Spendrin <ps_ml@gmx.de>
- +
- + This library is free software; you can redistribute it and/or
- + modify it under the terms of the GNU Library General Public
- + License as published by the Free Software Foundation; either
- + version 2 of the License, or (at your option) any later version.
- +
- + 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 KNOTIFY_EXPORT_H
- +#define KNOTIFY_EXPORT_H
- +
- +/* needed for KDE_EXPORT and KDE_IMPORT macros */
- +#include <kdemacros.h>
- +
- +#ifndef KNOTIFY_EXPORT
- +# if defined(MAKE_KNOTIFYPLUGIN_LIB)
- + /* We are building this library */
- +# define KNOTIFY_EXPORT KDE_EXPORT
- +# else
- + /* We are using this library */
- +# define KNOTIFY_EXPORT KDE_IMPORT
- +# endif
- +#endif
- +
- +#endif
- Index: knotifyconfig.h
- ===================================================================
- --- knotifyconfig.h (revision 1196675)
- +++ knotifyconfig.h (working copy)
- @@ -27,12 +27,14 @@
- #include <QPixmap>
- #include <QObject> //for Wid
- +#include "knotify_export.h"
- +
- typedef QList< QPair<QString,QString> > ContextList;
- /**
- * An image with lazy loading from the byte array
- */
- -class KDE_EXPORT KNotifyImage
- +class KNOTIFY_EXPORT KNotifyImage
- {
- public:
- KNotifyImage() : dirty(false) {}
- @@ -55,7 +57,7 @@
- * Represent the configuration for an event
- * @author Olivier Goffart <ogoffart@kde.org>
- */
- -class KDE_EXPORT KNotifyConfig
- +class KNOTIFY_EXPORT KNotifyConfig
- {
- public:
- KNotifyConfig(const QString &appname, const ContextList &_contexts , const QString &_eventid);
- Index: knotifyplugin.h
- ===================================================================
- --- knotifyplugin.h (revision 1196675)
- +++ knotifyplugin.h (working copy)
- @@ -26,6 +26,8 @@
- #include <QtCore/QObject>
- #include <KPluginFactory>
- +#include "knotify_export.h"
- +
- class KNotifyPluginPrivate;
- class KNotifyConfig;
- @@ -39,7 +41,7 @@
- *
- * @author Olivier Goffart <ogoffart at kde.org>
- */
- -class KDE_EXPORT KNotifyPlugin : public QObject
- +class KNOTIFY_EXPORT KNotifyPlugin : public QObject
- { Q_OBJECT
- public:
- KNotifyPlugin(QObject *parent=0l, const QVariantList &args=QVariantList());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement