Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.88 KB | None | 0 0
  1. Index: knotify_export.h
  2. ===================================================================
  3. --- knotify_export.h    (revision 0)
  4. +++ knotify_export.h    (revision 0)
  5. @@ -0,0 +1,36 @@
  6. +/*  This file is part of the KDE project
  7. +    Copyright (C) 2010 Patrick Spendrin <ps_ml@gmx.de>
  8. +
  9. +    This library is free software; you can redistribute it and/or
  10. +    modify it under the terms of the GNU Library General Public
  11. +    License as published by the Free Software Foundation; either
  12. +    version 2 of the License, or (at your option) any later version.
  13. +
  14. +    This library is distributed in the hope that it will be useful,
  15. +    but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  17. +    Library General Public License for more details.
  18. +
  19. +    You should have received a copy of the GNU Library General Public License
  20. +    along with this library; see the file COPYING.LIB.  If not, write to
  21. +    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  22. +    Boston, MA 02110-1301, USA.
  23. +*/
  24. +
  25. +#ifndef KNOTIFY_EXPORT_H
  26. +#define KNOTIFY_EXPORT_H
  27. +
  28. +/* needed for KDE_EXPORT and KDE_IMPORT macros */
  29. +#include <kdemacros.h>
  30. +
  31. +#ifndef KNOTIFY_EXPORT
  32. +# if defined(MAKE_KNOTIFYPLUGIN_LIB)
  33. +   /* We are building this library */
  34. +#  define KNOTIFY_EXPORT KDE_EXPORT
  35. +# else
  36. +   /* We are using this library */
  37. +#  define KNOTIFY_EXPORT KDE_IMPORT
  38. +# endif
  39. +#endif
  40. +
  41. +#endif
  42. Index: knotifyconfig.h
  43. ===================================================================
  44. --- knotifyconfig.h (revision 1196675)
  45. +++ knotifyconfig.h (working copy)
  46. @@ -27,12 +27,14 @@
  47.  #include <QPixmap>
  48.  #include <QObject> //for Wid
  49.  
  50. +#include "knotify_export.h"
  51. +
  52.  typedef QList< QPair<QString,QString> > ContextList;
  53.  
  54.  /**
  55.   * An image with lazy loading from the byte array
  56.   */
  57. -class KDE_EXPORT KNotifyImage
  58. +class KNOTIFY_EXPORT KNotifyImage
  59.  {
  60.     public:
  61.         KNotifyImage() : dirty(false) {}
  62. @@ -55,7 +57,7 @@
  63.   * Represent the configuration for an event
  64.   * @author Olivier Goffart <ogoffart@kde.org>
  65.  */
  66. -class KDE_EXPORT KNotifyConfig
  67. +class KNOTIFY_EXPORT KNotifyConfig
  68.  {
  69.     public:
  70.         KNotifyConfig(const QString &appname, const ContextList &_contexts , const QString &_eventid);
  71. Index: knotifyplugin.h
  72. ===================================================================
  73. --- knotifyplugin.h (revision 1196675)
  74. +++ knotifyplugin.h (working copy)
  75. @@ -26,6 +26,8 @@
  76.  #include <QtCore/QObject>
  77.  #include <KPluginFactory>
  78.  
  79. +#include "knotify_export.h"
  80. +
  81.  class KNotifyPluginPrivate;
  82.  class KNotifyConfig;
  83.  
  84. @@ -39,7 +41,7 @@
  85.   *
  86.   * @author Olivier Goffart <ogoffart at kde.org>
  87.  */
  88. -class KDE_EXPORT KNotifyPlugin : public QObject
  89. +class KNOTIFY_EXPORT KNotifyPlugin : public QObject
  90.  { Q_OBJECT
  91.     public:
  92.             KNotifyPlugin(QObject *parent=0l, const QVariantList &args=QVariantList());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement