Qt: Ensure all public classes are exported

* src/abstractimportjob.h,
src/cryptoconfig.h,
src/deletejob.h,
src/exportjob.h,
src/importfromkeyserverjob.h,
src/importjob.h,
src/keygenerationjob.h,
src/keylistjob.h,
src/listallkeysjob.h,
src/refreshkeysjob.h,
src/signencryptjob.h,
src/specialjob.h,
src/verifydetachedjob.h: Export classes.

--
This is an adoption of kde's libkleo commit: d6a71a4e
Thanks dvratil@kde.org
This commit is contained in:
Andre Heinecke 2016-08-11 17:38:36 +02:00
parent 8c5abc8d93
commit 59e2251a08
13 changed files with 29 additions and 15 deletions

View File

@ -36,6 +36,8 @@
#include "job.h"
#include "qgpgme_export.h"
namespace GpgME
{
class Error;
@ -45,7 +47,7 @@ class ImportResult;
namespace QGpgME
{
class AbstractImportJob : public Job
class QGPGME_EXPORT AbstractImportJob : public Job
{
Q_OBJECT
protected:

View File

@ -34,6 +34,7 @@
#ifndef CRYPTOCONFIG_H
#define CRYPTOCONFIG_H
#include "qgpgme_export.h"
#ifdef __cplusplus
/* we read this file from a C compiler, and are only interested in the
* enums... */
@ -50,7 +51,7 @@ namespace QGpgME
/**
* Description of a single option
*/
class CryptoConfigEntry
class QGPGME_EXPORT CryptoConfigEntry
{
public:
@ -252,7 +253,7 @@ public:
/**
* Group containing a set of config options
*/
class CryptoConfigGroup
class QGPGME_EXPORT CryptoConfigGroup
{
public:
@ -301,7 +302,7 @@ public:
/**
* Crypto config for one component (e.g. gpg-agent, dirmngr etc.)
*/
class CryptoConfigComponent
class QGPGME_EXPORT CryptoConfigComponent
{
public:
@ -341,7 +342,7 @@ public:
/**
* Main interface to crypto configuration.
*/
class CryptoConfig
class QGPGME_EXPORT CryptoConfig
{
public:

View File

@ -34,6 +34,7 @@
#ifndef __KLEO_DELETEJOB_H__
#define __KLEO_DELETEJOB_H__
#include "qgpgme_export.h"
#include "job.h"
namespace GpgME
@ -58,7 +59,7 @@ namespace QGpgME
After result() is emitted, the DeleteJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class DeleteJob : public Job
class QGPGME_EXPORT DeleteJob : public Job
{
Q_OBJECT
protected:

View File

@ -34,6 +34,7 @@
#ifndef __QGPGME_EXPORTJOB_H__
#define __QGPGME_EXPORTJOB_H__
#include "qgpgme_export.h"
#include "job.h"
#include <QtCore/QByteArray>
@ -61,7 +62,7 @@ namespace QGpgME
After result() is emitted, the ExportJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class ExportJob : public Job
class QGPGME_EXPORT ExportJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_IMPORTFROMKEYSERVERJOB_H__
#include "abstractimportjob.h"
#include "qgpgme_export.h"
namespace GpgME
{
@ -61,7 +62,7 @@ namespace QGpgME
After result() is emitted, the ImportJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class ImportFromKeyserverJob : public AbstractImportJob
class QGPGME_EXPORT ImportFromKeyserverJob : public AbstractImportJob
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_IMPORTJOB_H__
#include "abstractimportjob.h"
#include "qgpgme_export.h"
#include <QtCore/QByteArray>
@ -60,7 +61,7 @@ namespace QGpgME
After result() is emitted, the ImportJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class ImportJob : public AbstractImportJob
class QGPGME_EXPORT ImportJob : public AbstractImportJob
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_KEYGENERATIONJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#include <QtCore/QByteArray>
@ -60,7 +61,7 @@ namespace QGpgME
After result() is emitted, the KeyGenerationJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class KeyGenerationJob : public Job
class QGPGME_EXPORT KeyGenerationJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_KEYLISTJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#ifdef BUILDING_QGPGME
# include "key.h"
@ -70,7 +71,7 @@ namespace QGpgME
KeyListJob will schedule it's own destruction by calling
QObject::deleteLater().
*/
class KeyListJob : public Job
class QGPGME_EXPORT KeyListJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_LISTALLKEYSJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#ifdef BUILDING_QGPGME
# include "key.h"
@ -69,7 +70,7 @@ namespace QGpgME
This is potentially much faster than a KeyListJob with empty
pattern.
*/
class ListAllKeysJob : public Job
class QGPGME_EXPORT ListAllKeysJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_REFRESHKEYSJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#include <vector>
@ -62,7 +63,7 @@ namespace QGpgME
After result() is emitted, the KeyListJob will schedule it's own
destruction by calling QObject::deleteLater().
*/
class RefreshKeysJob : public Job
class QGPGME_EXPORT RefreshKeysJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_SIGNENCRYPTJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#ifdef BUILDING_QGPGME
# include "global.h"
@ -75,7 +76,7 @@ namespace QGpgME
After result() is emitted, the SignEncryptJob will schedule it's
own destruction by calling QObject::deleteLater().
*/
class SignEncryptJob : public Job
class QGPGME_EXPORT SignEncryptJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_SPECIALJOB_H__
#include "job.h"
#include "qgpgme_export.h"
namespace GpgME
{
@ -65,7 +66,7 @@ namespace QGpgME
through the read-only result property, the latter of which needs
to be defined in each SpecialJob subclass.
*/
class SpecialJob : public Job
class QGPGME_EXPORT SpecialJob : public Job
{
Q_OBJECT
protected:

View File

@ -35,6 +35,7 @@
#define __KLEO_VERIFYDETACHEDJOB_H__
#include "job.h"
#include "qgpgme_export.h"
#include <memory>