Divide the API documentation into a user module and a

provider module.

Also associate the metatype support functions with the 
SyncThread page, as requested by Justin.

svn path=/trunk/kdesupport/qca/; revision=694526
This commit is contained in:
Brad Hards 2007-07-30 23:40:24 +00:00
parent 0ee9f2b4f9
commit ec582e26b4
11 changed files with 82 additions and 9 deletions

View File

@ -36,6 +36,13 @@
namespace QCA { namespace QCA {
/**
\defgroup UserAPI QCA user API
This is the main set of QCA classes, intended for use
in standard applications.
*/
/*@{*/
/** /**
\class Random qca_basic.h QtCrypto \class Random qca_basic.h QtCrypto
@ -888,7 +895,7 @@ public:
*/ */
explicit PBKDF2(const QString &algorithm = "sha1", const QString &provider = QString()) : KeyDerivationFunction(withAlgorithm("pbkdf2", algorithm), provider) {} explicit PBKDF2(const QString &algorithm = "sha1", const QString &provider = QString()) : KeyDerivationFunction(withAlgorithm("pbkdf2", algorithm), provider) {}
}; };
/*@}*/
} }
#endif #endif

View File

@ -47,6 +47,10 @@ class CRL;
class CertificateCollection; class CertificateCollection;
class CertificateChain; class CertificateChain;
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Certificate Request Format Certificate Request Format
*/ */
@ -2546,7 +2550,7 @@ private:
friend class Private; friend class Private;
Private *d; Private *d;
}; };
/*@}*/
} }
#endif #endif

View File

@ -73,6 +73,10 @@ class KeyStoreInfo;
class KeyStoreManager; class KeyStoreManager;
class Logger; class Logger;
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Convenience representation for the plugin providers Convenience representation for the plugin providers
@ -1602,6 +1606,7 @@ private:
friend class Private; friend class Private;
Private *d; Private *d;
}; };
/*@}*/
} }

View File

@ -41,6 +41,10 @@ class KeyStoreTracker;
class KeyStoreManagerPrivate; class KeyStoreManagerPrivate;
class KeyStorePrivate; class KeyStorePrivate;
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
\class KeyStoreEntry qca_keystore.h QtCrypto \class KeyStoreEntry qca_keystore.h QtCrypto
@ -765,7 +769,7 @@ private:
static void scan(); static void scan();
static void shutdown(); static void shutdown();
}; };
/*@}*/
} }
#endif #endif

View File

@ -47,6 +47,10 @@ class DSAPrivateKey;
class DHPublicKey; class DHPublicKey;
class DHPrivateKey; class DHPrivateKey;
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Encryption algorithms Encryption algorithms
*/ */
@ -1420,7 +1424,7 @@ public:
*/ */
BigInteger x() const; BigInteger x() const;
}; };
/*@}*/
} }
#endif #endif

View File

@ -38,6 +38,10 @@
namespace QCA { namespace QCA {
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Specify the lower-bound for acceptable TLS/SASL security layers Specify the lower-bound for acceptable TLS/SASL security layers
@ -1172,7 +1176,7 @@ private:
friend class Private; friend class Private;
Private *d; Private *d;
}; };
/*@}*/
} }
#endif #endif

View File

@ -41,6 +41,10 @@ class QDateTime;
namespace QCA { namespace QCA {
/**
\addtogroup UserAPI
*/
/*@{*/
class SecureMessageSystem; class SecureMessageSystem;
/** /**
@ -902,6 +906,7 @@ private:
class Private; class Private;
Private *d; Private *d;
}; };
/*@}*/
} }

View File

@ -49,6 +49,10 @@
namespace QCA { namespace QCA {
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Convenience method to determine the return type of a method Convenience method to determine the return type of a method
@ -93,6 +97,8 @@ myTypeName = QCA::methodReturnType( testClass.metaObject(), QByteArray( "boolMet
argument types. argument types.
\sa QMetaType for more information on the Qt meta type system. \sa QMetaType for more information on the Qt meta type system.
\relates SyncThread
*/ */
QCA_EXPORT QByteArray methodReturnType(const QMetaObject *obj, const QByteArray &method, const QList<QByteArray> argTypes); QCA_EXPORT QByteArray methodReturnType(const QMetaObject *obj, const QByteArray &method, const QList<QByteArray> argTypes);
@ -135,9 +141,14 @@ ret = QCA::invokeMethodWithVariants( testClass1, QByteArray( "boolMethod" ), arg
\param type the type of connection to use \param type the type of connection to use
\return true if the call succeeded, otherwise false \return true if the call succeeded, otherwise false
\relates SyncThread
*/ */
QCA_EXPORT bool invokeMethodWithVariants(QObject *obj, const QByteArray &method, const QVariantList &args, QVariant *ret, Qt::ConnectionType type = Qt::AutoConnection); QCA_EXPORT bool invokeMethodWithVariants(QObject *obj, const QByteArray &method, const QVariantList &args, QVariant *ret, Qt::ConnectionType type = Qt::AutoConnection);
/**
Convenience class to synchronize a thread
*/
class QCA_EXPORT SyncThread : public QThread class QCA_EXPORT SyncThread : public QThread
{ {
Q_OBJECT Q_OBJECT
@ -582,7 +593,7 @@ private:
QString m_name; QString m_name;
}; };
/*@}*/
} }
#endif #endif

View File

@ -35,7 +35,10 @@
#include "qca_core.h" #include "qca_core.h"
namespace QCA { namespace QCA {
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
\class TextFilter qca_textfilter.h QtCrypto \class TextFilter qca_textfilter.h QtCrypto
@ -310,7 +313,7 @@ private:
class Private; class Private;
Private *d; Private *d;
}; };
/*@}*/
} }
#endif #endif

View File

@ -44,6 +44,10 @@ class QString;
class QByteArray; class QByteArray;
class QTextStream; class QTextStream;
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
Allocate a block of memory from the secure memory pool. Allocate a block of memory from the secure memory pool.
@ -71,9 +75,13 @@ QCA_EXPORT void qca_secure_free(void *p);
\param bytes the new size that is required. \param bytes the new size that is required.
*/ */
QCA_EXPORT void *qca_secure_realloc(void *p, int bytes); QCA_EXPORT void *qca_secure_realloc(void *p, int bytes);
/*@}*/
namespace QCA { namespace QCA {
/**
\addtogroup UserAPI
*/
/*@{*/
/** /**
\class MemoryRegion qca_tools.h QtCrypto \class MemoryRegion qca_tools.h QtCrypto
@ -776,6 +784,7 @@ private:
*/ */
QCA_EXPORT QTextStream &operator<<(QTextStream &stream, const BigInteger &b); QCA_EXPORT QTextStream &operator<<(QTextStream &stream, const BigInteger &b);
/*@}*/
} }
#endif #endif

View File

@ -42,6 +42,14 @@
#include <limits> #include <limits>
/**
\defgroup ProviderAPI QCA provider API
This group of classes and functions is not normally needed
by application writers, but can be used to extend QCA if
required
*/
/*@{*/
/** /**
Provider plugin base class Provider plugin base class
@ -77,11 +85,17 @@ public:
*/ */
virtual QCA::Provider *createProvider() = 0; virtual QCA::Provider *createProvider() = 0;
}; };
/*@}*/
Q_DECLARE_INTERFACE(QCAPlugin, "com.affinix.qca.Plugin/1.0") Q_DECLARE_INTERFACE(QCAPlugin, "com.affinix.qca.Plugin/1.0")
namespace QCA { namespace QCA {
/**
\addtogroup ProviderAPI
*/
/*@{*/
/** /**
Random provider Random provider
@ -1998,6 +2012,9 @@ public:
virtual MessageContext *createMessage() = 0; virtual MessageContext *createMessage() = 0;
}; };
/*@}*/
} }
#endif #endif