Skip to content

Commit

Permalink
Interfaces: export classes and their typeinfo.
Browse files Browse the repository at this point in the history
Fixes Mac OS/gcc stupidity, gcc devs are morons.
  • Loading branch information
0xd34df00d committed Feb 13, 2013
1 parent 824f0ad commit 1412950
Show file tree
Hide file tree
Showing 56 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/core/icolorthememanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class QColor;

class IColorThemeManager
class Q_DECL_EXPORT IColorThemeManager
{
public:
virtual ~IColorThemeManager () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/icoreproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class IRootWindowsManager;
* Allows one to talk with LeechCraft, requesting and getting various
* services.
*/
class ICoreProxy
class Q_DECL_EXPORT ICoreProxy
{
public:
virtual ~ICoreProxy () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/icoretabwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class QMenu;
*
* This interface is for communication with the core tab widget.
*/
class ICoreTabWidget
class Q_DECL_EXPORT ICoreTabWidget
{
public:
virtual ~ICoreTabWidget () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/ientitymanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace LeechCraft
struct Entity;
}

class IEntityManager
class Q_DECL_EXPORT IEntityManager
{
public:
struct DelegationResult
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/ihookproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace LeechCraft
*
* @sa Util::DefaultHookProxy
*/
class IHookProxy
class Q_DECL_EXPORT IHookProxy
{
public:
virtual ~IHookProxy () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/ipluginsmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* - pluginInjected(QObject*), which is emitted after a successful
* plugin injection.
*/
class IPluginsManager
class Q_DECL_EXPORT IPluginsManager
{
public:
virtual ~IPluginsManager () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/irootwindowsmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class QMainWindow;
class ICoreTabWidget;
class IMWProxy;

class IRootWindowsManager
class Q_DECL_EXPORT IRootWindowsManager
{
public:
virtual ~IRootWindowsManager () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/core/itagsmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class QAbstractItemModel;
* Object returned by the GetObject() function emits these signals:
* - tagsUpdated(const QStringList& tags) when the tags are updated.
*/
class ITagsManager
class Q_DECL_EXPORT ITagsManager
{
public:
typedef QString tag_id;
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/iactionsexporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class QAction;

namespace LeechCraft
{
enum class ActionsEmbedPlace
enum class Q_DECL_EXPORT ActionsEmbedPlace
{
ToolsMenu,
CommonContextMenu,
Expand All @@ -39,7 +39,7 @@ namespace LeechCraft
/** @brief Interface for embedding actions and menus into various
* places.
*/
class IActionsExporter
class Q_DECL_EXPORT IActionsExporter
{
public:
virtual ~IActionsExporter () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ianemitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace LeechCraft
*
* @sa LeechCraft::ANFieldData
*/
class IANEmitter
class Q_DECL_EXPORT IANEmitter
{
public:
virtual ~IANEmitter () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/idatafilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* GetFilterVariants(). The chosen variant should then be passed in
* the "DataFilter" element of the Entity::Additional_ map.
*/
class IDataFilter
class Q_DECL_EXPORT IDataFilter
{
public:
struct FilterVariant
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/idndtab.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class QDropEvent;
class QDragMoveEvent;
class QMimeData;

class IDNDTab
class Q_DECL_EXPORT IDNDTab
{
public:
virtual ~IDNDTab () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/idownload.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct EntityTestHandleResult;
*
* @sa IJobHolder, IEntityHandler
*/
class IDownload
class Q_DECL_EXPORT IDownload
{
public:
enum Error
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ientityhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct EntityTestHandleResult;
*
* @sa IDownload
*/
class IEntityHandler
class Q_DECL_EXPORT IEntityHandler
{
public:
/** @brief Returns whether plugin can handle given entity.
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ifinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace LeechCraft
* that would be embedded into the LeechCraft main area. Every single
* subrequest should represent its results via this model.
*/
class IFindProxy
class Q_DECL_EXPORT IFindProxy
{
public:
virtual ~IFindProxy () {}
Expand Down Expand Up @@ -130,7 +130,7 @@ typedef std::shared_ptr<IFindProxy> IFindProxy_ptr;
*
* @sa IFindProxy
*/
class IFinder
class Q_DECL_EXPORT IFinder
{
public:
virtual ~IFinder () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ihavediaginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class QString;

class IHaveDiagInfo
class Q_DECL_EXPORT IHaveDiagInfo
{
public:
virtual ~IHaveDiagInfo () {}
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ihaverecoverabletabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class QIcon;
*
* @sa IHaveRecoverableTabs
*/
class IRecoverableTab
class Q_DECL_EXPORT IRecoverableTab
{
public:
virtual ~IRecoverableTab () {}
Expand Down Expand Up @@ -137,7 +137,7 @@ namespace LeechCraft
*
* @sa IRecoverableTab, LeechCraft::TabRecoverInfo, IHaveTabs
*/
class IHaveRecoverableTabs
class Q_DECL_EXPORT IHaveRecoverableTabs
{
public:
virtual ~IHaveRecoverableTabs () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ihavesettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace LeechCraft
* interface if they want to appear in a common settings configuration
* dialog.
*/
class IHaveSettings
class Q_DECL_EXPORT IHaveSettings
{
public:
/** @brief Gets the settings dialog manager object from the plugin.
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ihaveshortcuts.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Q_DECLARE_METATYPE (LeechCraft::ActionInfo);
*
* @sa IHaveShortcuts::SetShortcutProxy().
*/
class IShortcutProxy
class Q_DECL_EXPORT IShortcutProxy
{
public:
/** @brief Returns a QKeySequence for the given action.
Expand All @@ -100,7 +100,7 @@ class IShortcutProxy
virtual ~IShortcutProxy () { }
};

class IHaveShortcuts
class Q_DECL_EXPORT IHaveShortcuts
{
public:
/** @brief Sets shortcut's list of key sequences if it has been changed.
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ihavetabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class QAction;
/** @brief This interface defines methods that should be implemented in
* widgets added to the main tab widget.
*/
class ITabWidget
class Q_DECL_EXPORT ITabWidget
{
public:
virtual ~ITabWidget () {}
Expand Down Expand Up @@ -285,7 +285,7 @@ class ITabWidget
*
* @sa ITabWidget, LeechCraft::TabClassInfo
*/
class IHaveTabs
class Q_DECL_EXPORT IHaveTabs
{
public:
virtual ~IHaveTabs () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/iimportexport.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* other persistent storage and wants LeechCraft to know about it, it
* should implement this interface.
*/
class IImportExport
class Q_DECL_EXPORT IImportExport
{
public:
/** @brief Loads settings.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/iinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef std::shared_ptr<ICoreProxy> ICoreProxy_ptr;
* only basic initialization/allocation stuff like allocation memory for
* the objects.
*/
class IInfo
class Q_DECL_EXPORT IInfo
{
public:
/** @brief Initializes the plugin.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ijobholder.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace LeechCraft
* @sa CustomDataRoles
* @sa ProcessState
*/
class IJobHolder
class Q_DECL_EXPORT IJobHolder
{
public:
/** @brief Returns the item representation model.
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/imediaplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <QUrl>
#include <QtPlugin>

class IVideoWidget
class Q_DECL_EXPORT IVideoWidget
{
public:
virtual ~IVideoWidget () {}
Expand All @@ -38,7 +38,7 @@ class IVideoWidget
virtual QWidget* Widget () = 0;
};

class IMediaPlayer
class Q_DECL_EXPORT IMediaPlayer
{
public:
virtual IVideoWidget* CreateWidget () const = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/imwproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class QMenu;
* All the interaction with LeechCraft main window should be done
* through this interface.
*/
class IMWProxy
class Q_DECL_EXPORT IMWProxy
{
public:
enum WidgetArea
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/iplugin2.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* class, which is returned by IPlugin2::GetPluginClasses() and by
* IPluginReady::GetExpectedPluginClasses().
*/
class IPlugin2
class Q_DECL_EXPORT IPlugin2
{
public:
/** @brief Returns the plugin classes of this second-level plugin.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ipluginadaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*
* Of course, each plugin adaptor should also implement at least IInfo.
*/
class IPluginAdaptor
class Q_DECL_EXPORT IPluginAdaptor
{
public:
virtual ~IPluginAdaptor () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ipluginready.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* classes, which is returned by IPlugin2::GetPluginClasses() and by
* IPluginReady::GetExpectedPluginClasses().
*/
class IPluginReady
class Q_DECL_EXPORT IPluginReady
{
public:
virtual ~IPluginReady () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/iquarkcomponentprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace LeechCraft
typedef QList<QuarkComponent> QuarkComponents_t;
}

class IQuarkComponentProvider
class Q_DECL_EXPORT IQuarkComponentProvider
{
public:
virtual ~IQuarkComponentProvider () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/iremovabledevmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace LeechCraft
};
}

class IRemovableDevManager
class Q_DECL_EXPORT IRemovableDevManager
{
public:
virtual ~IRemovableDevManager () {}
Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/iscriptloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* This interface is to be implemented by the objects that represent
* loaded scripts.
*/
class IScript
class Q_DECL_EXPORT IScript
{
public:
virtual ~IScript () {}
Expand Down Expand Up @@ -82,7 +82,7 @@ typedef std::shared_ptr<IScript> IScript_ptr;
*
* @sa IScriptLoader, IScript
*/
class IScriptLoaderInstance
class Q_DECL_EXPORT IScriptLoaderInstance
{
public:
virtual ~IScriptLoaderInstance () {}
Expand Down Expand Up @@ -152,7 +152,7 @@ class IScriptLoaderInstance
*
* @sa IScriptLoaderInstance
*/
class IScriptLoader
class Q_DECL_EXPORT IScriptLoader
{
public:
virtual ~IScriptLoader () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/istartupwizard.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class QWizardPage;
* insert into the wizard in GetWizardPages(). Of course, it can return
* different pages each time.
*/
class IStartupWizard
class Q_DECL_EXPORT IStartupWizard
{
public:
virtual ~IStartupWizard () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/isummaryrepresentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class QModelIndex;
class QTreeView;

class ISummaryRepresentation
class Q_DECL_EXPORT ISummaryRepresentation
{
public:
virtual ~ISummaryRepresentation () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/isyncable.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Q_DECLARE_METATYPE (LeechCraft::Sync::ChainID_t);
* To notify about new deltas, the following signal is expected:
* newDeltasAvailable(const ChainID_t& chain)
*/
class ISyncable
class Q_DECL_EXPORT ISyncable
{
public:
virtual ~ISyncable () {}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/itaggablejobs.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @sa IDownload
* @sa IJobHolder
*/
class ITaggableJobs
class Q_DECL_EXPORT ITaggableJobs
{
public:
/** @brief Sets the list with tags for a job.
Expand Down
Loading

0 comments on commit 1412950

Please sign in to comment.