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 "job.h"
#include "qgpgme_export.h"
namespace GpgME namespace GpgME
{ {
class Error; class Error;
@ -45,7 +47,7 @@ class ImportResult;
namespace QGpgME namespace QGpgME
{ {
class AbstractImportJob : public Job class QGPGME_EXPORT AbstractImportJob : public Job
{ {
Q_OBJECT Q_OBJECT
protected: protected:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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