mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: export private classes used in tests when testing is enabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6e344126e1
commit
bf28f42e43
4 changed files with 13 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
|||
#ifndef SOLID_BACKENDS_FAKEHW_FAKEDEVICE_H
|
||||
#define SOLID_BACKENDS_FAKEHW_FAKEDEVICE_H
|
||||
|
||||
#include <solid/solid_export.h>
|
||||
#include <solid/ifaces/device.h>
|
||||
|
||||
#include <QtCore/QMap>
|
||||
|
@ -31,7 +32,7 @@ namespace Backends
|
|||
{
|
||||
namespace Fake
|
||||
{
|
||||
class FakeDevice : public Solid::Ifaces::Device
|
||||
class SOLID_EXPORT FakeDevice : public Solid::Ifaces::Device
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#ifndef SOLID_BACKENDS_FAKEHW_FAKEMANAGER_H
|
||||
#define SOLID_BACKENDS_FAKEHW_FAKEMANAGER_H
|
||||
|
||||
#include <solid/solid_export.h>
|
||||
#include <solid/ifaces/devicemanager.h>
|
||||
|
||||
#include <QDomElement>
|
||||
|
@ -41,7 +42,7 @@ class FakeDevice;
|
|||
*
|
||||
* @author Michaël Larouche <michael.larouche@kdemail.net>
|
||||
*/
|
||||
class FakeManager : public Solid::Ifaces::DeviceManager
|
||||
class SOLID_EXPORT FakeManager : public Solid::Ifaces::DeviceManager
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
|
@ -24,11 +24,18 @@
|
|||
#include <QtCore/QObject>
|
||||
#include <QtCore/QString>
|
||||
|
||||
#include "config-solid.h"
|
||||
#include "solid/solid_export.h"
|
||||
|
||||
#ifdef ENABLE_TESTING
|
||||
# define MANAGERBASE_EXPORT SOLID_EXPORT
|
||||
#else
|
||||
# define MANAGERBASE_EXPORT
|
||||
#endif
|
||||
|
||||
namespace Solid
|
||||
{
|
||||
class ManagerBasePrivate
|
||||
class MANAGERBASE_EXPORT ManagerBasePrivate
|
||||
{
|
||||
public:
|
||||
ManagerBasePrivate();
|
||||
|
|
|
@ -5,6 +5,7 @@ include_directories(
|
|||
${KDE4_KDEUI_INCLUDES}
|
||||
${KDE4_KIO_INCLUDES}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../solid/backends/fakehw
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../solid
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue