Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c068dba8 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Port export symbol

parent 86e10e9f
......@@ -151,7 +151,7 @@ public Q_SLOTS:
* @deprecated
* does nothing
*/
KDE_DEPRECATED void slotToggleGraphicOverride(bool enable);
KOPETECHATWINDOW_SHARED_DEPRECATED_EXPORT void slotToggleGraphicOverride(bool enable);
Q_SIGNALS:
/**
......
......@@ -154,6 +154,7 @@ ecm_qt_declare_logging_category(kopete_LIB_SRCS HEADER libkopete_debug.h IDENTIF
find_package(KF5Contacts ${KCONTACTS_LIB_VERSION} CONFIG REQUIRED)
add_library(kopete SHARED ${kopete_LIB_SRCS})
generate_export_header(kopete BASE_NAME libkopete)
target_link_libraries(kopete
KF5::Contacts
......@@ -242,7 +243,7 @@ install( FILES
kopetecontactlistelement.h
kopetecontactlist.h
kopeteproperty.h
kopete_export.h
libkopete_export.h
kopeteglobal.h
kopetegroup.h
kopeteidentity.h
......
......@@ -26,7 +26,7 @@
#include <qimage.h>
#include <kcombobox.h>
#include "videodevice.h"
#include "kopete_export.h"
#include "libkopete_export.h"
#include <kconfig.h>
#include <kglobal.h>
#include <solid/device.h>
......@@ -39,7 +39,7 @@ This class allows kopete to check for the existence, open, configure, test, set
@author Cláudio da Silveira Pinheiro
*/
class KOPETE_EXPORT VideoDevicePool : public QObject
class LIBKOPETE_EXPORT VideoDevicePool : public QObject
{
Q_OBJECT
......
......@@ -29,14 +29,14 @@
#endif // __u64*/
#include <qstring.h>
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
namespace AV {
/**
@author Kopete Developers
*/
class KOPETE_EXPORT VideoInput
class LIBKOPETE_EXPORT VideoInput
{
public:
VideoInput();
......
......@@ -21,14 +21,14 @@
#include <QAbstractListModel>
#include "kopetechatsession.h"
#include "kopete_export.h"
#include "libkopete_export.h"
class Private;
namespace Kopete {
class Contact;
class KOPETE_EXPORT ChatSessionMembersListModel : public QAbstractListModel
class LIBKOPETE_EXPORT ChatSessionMembersListModel : public QAbstractListModel
{
Q_OBJECT
public:
......
......@@ -20,12 +20,12 @@
#include <dcopobject.h>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "networkstatuscommon.h"
class ConnectionManagerPrivate;
class KOPETE_EXPORT ConnectionManager : public QObject, virtual public DCOPObject
class LIBKOPETE_EXPORT ConnectionManager : public QObject, virtual public DCOPObject
{
Q_OBJECT
K_DCOP
......
......@@ -21,7 +21,7 @@
#include "kopetegroup.h"
#include "kopetemetacontact.h"
#include <kopete_export.h>
#include <libkopete_export.h>
namespace Kopete {
/**
* @brief Provide a storage for Kopete Contact List.
......@@ -29,7 +29,7 @@ namespace Kopete {
* @author Matt Rogers <mattr@kde.org>
* @author Michaël Larouche <larouche@kde.org>
*/
class KOPETE_EXPORT ContactListStorage
class LIBKOPETE_EXPORT ContactListStorage
{
public:
ContactListStorage();
......
......@@ -21,7 +21,7 @@
#define KOPETEXMLCONTACTSTORAGE_H
#include <kopetecontactliststorage.h>
#include <kopete_export.h>
#include <libkopete_export.h>
class QDomElement;
namespace Kopete {
......@@ -34,7 +34,7 @@ namespace Kopete {
* @author Matt Rogers <mattr@kde.org>
* @author Michaël Larouche <larouche@kde.org>
*/
class KOPETE_EXPORT XmlContactStorage : public ContactListStorage
class LIBKOPETE_EXPORT XmlContactStorage : public ContactListStorage
{
public:
XmlContactStorage();
......
......@@ -20,7 +20,7 @@
#include <QObject>
#include "kopete_export.h"
#include "libkopete_export.h"
// Goal is to have all the address book modifying code in one place
// Currently in
......@@ -40,7 +40,7 @@ class Resource;
namespace Kopete {
class MetaContact;
class KOPETE_EXPORT KABCPersistence : public QObject
class LIBKOPETE_EXPORT KABCPersistence : public QObject
{
Q_OBJECT
public:
......
......@@ -20,14 +20,6 @@
#include <kdemacros.h>
#ifndef KOPETE_EXPORT
# ifdef MAKE_KOPETE_LIB
# define KOPETE_EXPORT KDE_EXPORT
# else
# define KOPETE_EXPORT KDE_IMPORT
# endif
#endif
#ifndef KOPETEPRIVACY_EXPORT
# ifdef MAKE_KOPETEPRIVACY_LIB
# define KOPETEPRIVACY_EXPORT KDE_EXPORT
......
......@@ -23,7 +23,7 @@
#include "kopeteonlinestatus.h"
#include "kopetestatusmessage.h"
#include "kopete_export.h"
#include "libkopete_export.h"
#include <QtCore/QObject>
#include <QPixmap>
......@@ -68,7 +68,7 @@ class PropertyContainer;
*
* @author Olivier Goffart <ogoffart\@kde.org>
*/
class KOPETE_EXPORT Account : public QObject
class LIBKOPETE_EXPORT Account : public QObject
{
Q_OBJECT
......
......@@ -23,7 +23,7 @@
#include <QColor>
#include <QDebug>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
#include "kopetestatusmessage.h"
......@@ -44,7 +44,7 @@ class StatusMessage;
* @author Martijn Klingens <klingens@kde.org>
* @author Olivier Goffart <ogoffart\@kde.org>
*/
class KOPETE_EXPORT AccountManager : public QObject
class LIBKOPETE_EXPORT AccountManager : public QObject
{
Q_OBJECT
......
......@@ -63,7 +63,7 @@ class Account;
*
* @author Roman Jarosz <kedgedev@centrum.cz>
*/
class KOPETE_EXPORT AddedInfoEvent : public InfoEvent
class LIBKOPETE_EXPORT AddedInfoEvent : public InfoEvent
{
Q_OBJECT
public:
......
......@@ -8,5 +8,5 @@ Mutators=true
NameSpace=Kopete
SetUserTexts=false
Singleton=true
Visibility=KOPETE_EXPORT
IncludeFiles=kopete_export.h
Visibility=LIBKOPETE_EXPORT
IncludeFiles=libkopete_export.h
......@@ -24,7 +24,7 @@
#include <kjob.h>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
class QImage;
......@@ -105,7 +105,7 @@ Kopete::AvatarManager::self()->remove(entryToRemove);
*
* @author Michaël Larouche <larouche@kde.org>
*/
class KOPETE_EXPORT AvatarManager : public QObject
class LIBKOPETE_EXPORT AvatarManager : public QObject
{
Q_OBJECT
public:
......@@ -247,7 +247,7 @@ void SwallowAndCoconut::queryResult(KJob* job)
* @sa Kopete::AvatarManager
*/
// TODO: Use new Kopete::Task or KCompositeJob
class KOPETE_EXPORT AvatarQueryJob : public KJob
class LIBKOPETE_EXPORT AvatarQueryJob : public KJob
{
Q_OBJECT
public:
......
......@@ -8,5 +8,5 @@ Mutators=true
NameSpace=Kopete
SetUserTexts=false
Singleton=true
Visibility=KOPETE_EXPORT
IncludeFiles=kopete_export.h,klocale.h
Visibility=LIBKOPETE_EXPORT
IncludeFiles=libkopete_export.h,klocale.h
......@@ -28,7 +28,7 @@
#include <QDebug>
#include <kxmlguiclient.h>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
// FIXME: get rid of these includes
#include "kopetemessage.h"
......@@ -68,7 +68,7 @@ typedef QList<Message> MessageList;
* so plugins can add childClients of this client to add their own actions in the
* chatwindow.
*/
class KOPETE_EXPORT ChatSession : public QObject, public KXMLGUIClient
class LIBKOPETE_EXPORT ChatSession : public QObject, public KXMLGUIClient
{
// friend class so the object factory can access the protected constructor
friend class ChatSessionManager;
......
......@@ -25,7 +25,7 @@
#include "kopetechatsession.h"
#include "kopetemessage.h"
#include "libkopete_debug.h"
#include "kopete_export.h"
#include "libkopete_export.h"
class KopeteView;
......@@ -43,7 +43,7 @@ typedef QList<Message> MessageList;
* Kopete::ChatSessionManager is responsible for creating and tracking Kopete::ChatSession
* instances for each chat.
*/
class KOPETE_EXPORT ChatSessionManager : public QObject
class LIBKOPETE_EXPORT ChatSessionManager : public QObject
{
Q_OBJECT
......
......@@ -24,7 +24,7 @@
#include <kprocess.h>
#include "kopetemessage.h"
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
struct CommandHandlerPrivate;
......@@ -45,7 +45,7 @@ typedef QMultiHash<QString, Command *> CommandList;
*
* The Kopete::CommandHandler can handle /action like messages
*/
class KOPETE_EXPORT CommandHandler : public QObject
class LIBKOPETE_EXPORT CommandHandler : public QObject
{
friend class ::KopeteCommandGUIClient;
......
......@@ -29,7 +29,7 @@
#include <ktoggleaction.h>
#include "kopeteglobal.h"
#include "kopete_export.h"
#include "libkopete_export.h"
class QMenu;
class QAction;
......@@ -54,7 +54,7 @@ typedef QList<Group *> GroupList;
* This class abstracts a generic contact
* Use it for inserting contacts in the contact list for example.
*/
class KOPETE_EXPORT Contact : public ContactListElement
class LIBKOPETE_EXPORT Contact : public ContactListElement
{
Q_OBJECT
......@@ -245,7 +245,7 @@ public:
/**
* @deprecated
*/
virtual KDE_DEPRECATED QList<QAction *> *customContextMenuActions(ChatSession *manager);
virtual LIBKOPETE_DEPRECATED QList<QAction *> *customContextMenuActions(ChatSession *manager);
/**
* @brief Get the Context Menu for this contact
......@@ -258,7 +258,7 @@ public:
/**
* @deprecated
*/
KDE_DEPRECATED QMenu *popupMenu(ChatSession *manager);
LIBKOPETE_DEPRECATED QMenu *popupMenu(ChatSession *manager);
/**
* \brief Get whether or not this contact is capable of file transfers
......@@ -475,7 +475,7 @@ public Q_SLOTS:
* (ie. messages to the server, etc)
* the default implementation simply call deleteLater()
*/
virtual KDE_DEPRECATED void deleteContact();
virtual LIBKOPETE_DEPRECATED void deleteContact();
/**
* This is the Contact level slot for sending files. It should be
......
......@@ -25,7 +25,7 @@
#include <QUrl>
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
class MetaContact;
......@@ -43,7 +43,7 @@ class Contact;
* @author Martijn Klingens <klingens@kde.org>
* @author Olivier Goffart <ogoffart@tiscalinet.be>
*/
class KOPETE_EXPORT ContactList : public QObject
class LIBKOPETE_EXPORT ContactList : public QObject
{
Q_OBJECT
......
......@@ -23,7 +23,7 @@
#include <QtCore/QMap>
#include <QStandardItem>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "kopetepropertycontainer.h"
namespace Kopete {
......@@ -41,7 +41,7 @@ class Plugin;
*
* It also allow to store an icon for this element.
*/
class KOPETE_EXPORT ContactListElement : public PropertyContainer
class LIBKOPETE_EXPORT ContactListElement : public PropertyContainer
{
Q_OBJECT
......
......@@ -24,16 +24,16 @@
#include <QString>
#include <QBuffer>
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
class KOPETE_EXPORT FileEngineHandler : public QAbstractFileEngineHandler
class LIBKOPETE_EXPORT FileEngineHandler : public QAbstractFileEngineHandler
{
public:
QAbstractFileEngine *create(const QString &fileName) const;
};
class KOPETE_EXPORT FileEngine : public QAbstractFileEngine
class LIBKOPETE_EXPORT FileEngine : public QAbstractFileEngine
{
public:
FileEngine();
......
......@@ -20,7 +20,7 @@
#include "kopeteproperty.h"
#include "kopete_export.h"
#include "libkopete_export.h"
/**
* This namespace contains all of Kopete's core classes and functions.
......@@ -39,7 +39,7 @@ class PropertiesPrivate;
* objects for all the properties he wants to set for a Kopete::Contact,
* everything else is handled behind the scenes.
**/
class KOPETE_EXPORT Properties
class LIBKOPETE_EXPORT Properties
{
friend class Kopete::PropertyTmpl;
public:
......
......@@ -23,7 +23,7 @@
#include "kopetecontactlistelement.h"
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
class MetaContact;
......@@ -38,7 +38,7 @@ class Message;
*
* @author Olivier Goffart <ogoffart@kde.org>
*/
class KOPETE_EXPORT Group : public ContactListElement
class LIBKOPETE_EXPORT Group : public ContactListElement
{
Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName)
Q_PROPERTY(uint groupId READ groupId)
......
......@@ -23,7 +23,7 @@
#include "kopeteglobal.h"
#include "kopetepropertycontainer.h"
#include "kopeteonlinestatus.h"
#include "kopete_export.h"
#include "libkopete_export.h"
class KConfigGroup;
......@@ -36,7 +36,7 @@ class StatusMessage;
*
* An identity that might contain one or more accounts associated to it
*/
class KOPETE_EXPORT Identity : public PropertyContainer
class LIBKOPETE_EXPORT Identity : public PropertyContainer
{
Q_OBJECT
public:
......
......@@ -22,7 +22,7 @@
#include <QDebug>
#include "libkopete_debug.h"
#include "kopete_export.h"
#include "libkopete_export.h"
#include "kopeteonlinestatus.h"
#include "kopeteidentity.h"
#include "kopetestatusmessage.h"
......@@ -36,7 +36,7 @@ namespace Kopete {
*
* @author Gustavo Pichorim Boiko <gustavo.boiko\@kdemail.net>
*/
class KOPETE_EXPORT IdentityManager : public QObject
class LIBKOPETE_EXPORT IdentityManager : public QObject
{
Q_OBJECT
......
......@@ -20,7 +20,7 @@
#include <QtCore/QObject>
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
/**
......@@ -28,7 +28,7 @@ namespace Kopete {
*
* IdleTimer is a singleton, you may uses it with @ref IdleTimer::self()
*/
class KOPETE_EXPORT IdleTimer : public QObject
class LIBKOPETE_EXPORT IdleTimer : public QObject
{
Q_OBJECT
......
......@@ -21,7 +21,7 @@
#include <QString>
#include <QDebug>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
namespace Kopete {
......@@ -37,7 +37,7 @@ namespace Kopete {
*
* @author Roman Jarosz <kedgedev@centrum.cz>
*/
class KOPETE_EXPORT InfoEvent : public QObject
class LIBKOPETE_EXPORT InfoEvent : public QObject
{
Q_OBJECT
public:
......
......@@ -17,7 +17,7 @@
#define KOPETEINFOEVENTMANAGER_H
#include <QObject>
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
class InfoEvent;
......@@ -30,7 +30,7 @@ class InfoEvent;
*
* @author Roman Jarosz <kedgedev@centrum.cz>
*/
class KOPETE_EXPORT InfoEventManager : public QObject
class LIBKOPETE_EXPORT InfoEventManager : public QObject
{
Q_OBJECT
public:
......
......@@ -26,7 +26,7 @@
#include <QtCore/QList>
#include <QtCore/Qt>
#include "kopete_export.h"
#include "libkopete_export.h"
class QByteArray;
class QColor;
......@@ -76,7 +76,7 @@ richTextMessage.setSubject( QString("Kopete API documentation thread") );
richTextMessage.setHtmlBody( QString("<b>A bold text</b>") );
* @endcode
*/
class KOPETE_EXPORT Message
class LIBKOPETE_EXPORT Message
{
public:
/**
......@@ -423,17 +423,17 @@ public:
/**
* @brief Does nothing
*/
void KDE_DEPRECATED setBackgroundOverride(bool enable);
void LIBKOPETE_DEPRECATED setBackgroundOverride(bool enable);
/**
* @brief Does nothing
*/
void KDE_DEPRECATED setForegroundOverride(bool enable);
void LIBKOPETE_DEPRECATED setForegroundOverride(bool enable);
/**
* @brief Does nothing
*/
void KDE_DEPRECATED setRichTextOverride(bool enable);
void LIBKOPETE_DEPRECATED setRichTextOverride(bool enable);
/**
* @brief Ignores peer's formatting
......
......@@ -24,7 +24,7 @@
#include <QtCore/QObject>
#include "kopetemessage.h"
#include "kopete_export.h"
#include "libkopete_export.h"
namespace Kopete {
/**
......@@ -36,7 +36,7 @@ namespace Kopete {
* the message, and a signal when it is terminated (i.e.
* the message is read
**/
class KOPETE_EXPORT MessageEvent : public QObject
class LIBKOPETE_EXPORT MessageEvent : public QObject
{
Q_OBJECT
......
......@@ -20,7 +20,7 @@
#include <QtCore/QObject>
#include <QtCore/QLinkedList>
#include "kopete_export.h"
#include "libkopete_export.h"
//FIXME: Message::MessageDirection could be moved into namespace Kopete
// to avoid this being included everywhere
......@@ -39,7 +39,7 @@ class ChatSession;
* This class implements Handler role in the Chain of Responsibility pattern.
* The Client role will be filled by the Kopete::MessageHandlerChain class.
*/
class KOPETE_EXPORT MessageHandler : public QObject
class LIBKOPETE_EXPORT MessageHandler : public QObject
{
Q_OBJECT
public:
......@@ -104,7 +104,7 @@ private:
* chain to the protocol, then (when it has been delivered) it passes back through the Inbound
* chain to the chat window to be displayed.
*/
class KOPETE_EXPORT MessageHandlerFactory
class LIBKOPETE_EXPORT MessageHandlerFactory
{
public:
/**
......
......@@ -28,7 +28,7 @@
#include <QtCore/QUuid>
#include <kdemacros.h>
#include "kopete_export.h"
#include "libkopete_export.h"
#include "kopeteonlinestatus.h"
#include "kopetestatusmessage.h"
......@@ -49,7 +49,7 @@ class Picture;
* the metacontact. Plugins can store data in it with all
* @ref ContactListElement methods
*/
class KOPETE_EXPORT MetaContact : public ContactListElement
class LIBKOPETE_EXPORT MetaContact : public ContactListElement
{
Q_OBJECT
......@@ -198,7 +198,7 @@ public:
* This photo is obtained from the source set with @ref setPhotoSource
* @deprecated Use picture().image() instead.
*/
KDE_DEPRECATED QImage photo() const;
LIBKOPETE_DEPRECATED QImage photo() const;
/**
* Return the correct Kopete::Picture object depending of the metacontact photo source.
......@@ -616,10 +616,10 @@ private:
};
// util functions shared with metacontact property dialog
KOPETE_EXPORT QImage photoFromContact(Kopete::Contact *c) /*const*/;
KOPETE_EXPORT QImage photoFromKABC(const QString &id) /*const*/;
KOPETE_EXPORT QString nameFromContact(Kopete::Contact *c) /*const*/;
KOPETE_EXPORT QString nameFromKABC(const QString &id) /*const*/;
LIBKOPETE_EXPORT QImage photoFromContact(Kopete::Contact *c) /*const*/;
LIBKOPETE_EXPORT QImage photoFromKABC(const QString &id) /*const*/;
LIBKOPETE_EXPORT QString nameFromContact(Kopete::Contact *c) /*const*/;
LIBKOPETE_EXPORT QString nameFromKABC(const QString &id) /*const*/;
} //END namespace Kopete
#endif
......
......@@ -24,7 +24,7 @@
class QString;
class QStringList;
#include "kopete_export.h"
#include "libkopete_export.h"
#include "libkopete_debug.h"
namespace Kopete {
......@@ -33,7 +33,7 @@ namespace Kopete {
* A mime type handler is responsible for handling requests to open files of
* certain mime types presented to the main application.
*/
class KOPETE_EXPORT MimeTypeHandler
class LIBKOPETE_EXPORT MimeTypeHandler
{
protected:
MimeTypeHandler(bool canAcceptRemoteFiles = false);
......@@ -69,7 +69,7 @@ public:
/**
* @deprecated
*/
virtual KDE_DEPRECATED void handleURL(const QUrl &url) const;
virtual LIBKOPETE_DEPRECATED void handleURL(const QUrl &url) const;
/**
* Handles the URL @p url, which has the mime type @p mimeType