Skip to content

Commit 8950e07

Browse files
Update class decriptions for Doxygen
1 parent b94e670 commit 8950e07

40 files changed

+264
-80
lines changed

src/generator/classgeneratorbase.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ namespace generator {
4545

4646
using PropertyMap = std::map<std::string, std::string>;
4747

48+
/*!
49+
* \ingroup generator
50+
* \private
51+
* \brief The ClassGeneratorBase class is base of source code generation
52+
*/
4853
class ClassGeneratorBase
4954
{
5055
public:

src/generator/classsourcegeneratorbase.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
namespace QtProtobuf {
3434
namespace generator {
3535

36+
/*!
37+
* \ingroup generator
38+
* \private
39+
* \brief The ClassSourceGeneratorBase class implements source generation
40+
*/
3641
class ClassSourceGeneratorBase : public ClassGeneratorBase
3742
{
3843
public:

src/generator/clientgenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class Message;
3838
namespace QtProtobuf {
3939
namespace generator {
4040

41+
/*!
42+
* \ingroup generator
43+
* \private
44+
* \brief The ClientGenerator class
45+
*/
4146
class ClientGenerator : public ServiceGeneratorBase
4247
{
4348
public:

src/generator/clientsourcegenerator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929

3030
namespace QtProtobuf {
3131
namespace generator {
32-
32+
/*!
33+
* \ingroup generator
34+
* \private
35+
* \brief The ClientSourceGenerator class
36+
*/
3337
class ClientSourceGenerator : public ClassSourceGeneratorBase
3438
{
3539
public:

src/generator/enumsgenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class EnumDescriptor;
3535
namespace QtProtobuf {
3636
namespace generator {
3737

38+
/*!
39+
* \ingroup generator
40+
* \private
41+
* \brief The EnumsGenerator class
42+
*/
3843
class EnumsGenerator : public ClassGeneratorBase
3944
{
4045
const google::protobuf::EnumDescriptor *mEnumDescriptor;

src/generator/enumssourcegenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
namespace QtProtobuf {
3232
namespace generator {
3333

34+
/*!
35+
* \ingroup generator
36+
* \private
37+
* \brief The EnumsSourceGenerator class
38+
*/
3439
class EnumsSourceGenerator : public ClassGeneratorBase
3540
{
3641
const google::protobuf::EnumDescriptor *mEnumDescriptor;

src/generator/generator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ class GeneratorContext;
4040

4141
namespace QtProtobuf {
4242
namespace generator {
43-
43+
/*!
44+
* \ingroup generator
45+
* \private
46+
* \brief The QtGenerator class
47+
*/
4448
class QtGenerator : public GeneratorBase
4549
{
4650
public:

src/generator/generatorbase.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class GeneratorContext;
4141
namespace QtProtobuf {
4242
namespace generator {
4343

44+
/*!
45+
* \ingroup generator
46+
* \private
47+
* \brief The GeneratorBase class
48+
*/
4449
class GeneratorBase: public ::google::protobuf::compiler::CodeGenerator
4550
{
4651
public:

src/generator/generatoroptions.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
namespace QtProtobuf {
3131
namespace generator {
3232

33+
/*!
34+
* \ingroup generator
35+
* \private
36+
* \brief The GeneratorOptions class
37+
*/
3338
class GeneratorOptions
3439
{
3540
GeneratorOptions();

src/generator/globalenumsgenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
namespace QtProtobuf {
3232
namespace generator {
3333

34+
/*!
35+
* \ingroup generator
36+
* \private
37+
* \brief The GlobalEnumsGenerator class
38+
*/
3439
class GlobalEnumsGenerator : public ClassGeneratorBase
3540
{
3641
PackagesList mPackageList;

src/generator/globalenumssourcegenerator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030

3131
namespace QtProtobuf {
3232
namespace generator {
33-
33+
/*!
34+
* \ingroup generator
35+
* \private
36+
* \brief The GlobalEnumsSourceGenerator class
37+
*/
3438
class GlobalEnumsSourceGenerator : public ClassGeneratorBase
3539
{
3640
PackagesList mPackageList;

src/generator/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
#include "generatoroptions.h"
3131
#include "utils.h"
3232

33+
/*! \mainpage
34+
* QtProtobuf is project that provides gRPC and Protobuf generator and bindings for Qt framework
35+
*
36+
* Look at project <a href="https://github.com/semlanik/qtprotobuf/blob/master/README.md">README</a> for installation and usage details.
37+
*
38+
* QtProtobuf distributed in terms of MIT license and is free for modification and use under MIT
39+
* license <a href="https://github.com/semlanik/qtprotobuf/blob/master/LICENSE">terms</a>.
40+
*/
3341
using namespace ::QtProtobuf::generator;
3442
int main(int argc, char *argv[])
3543
{

src/generator/protobufclassgenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ namespace generator {
4343

4444
using PropertyMap = std::map<std::string, std::string>;
4545

46+
/*!
47+
* \ingroup generator
48+
* \private
49+
* \brief The ProtobufClassGenerator class
50+
*/
4651
class ProtobufClassGenerator : public ClassGeneratorBase
4752
{
4853
const ::google::protobuf::Descriptor *mMessage;

src/generator/protobufsourcegenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
namespace QtProtobuf {
3131
namespace generator {
3232

33+
/*!
34+
* \ingroup generator
35+
* \private
36+
* \brief The ProtobufSourceGenerator class
37+
*/
3338
class ProtobufSourceGenerator : public ClassSourceGeneratorBase
3439
{
3540
const google::protobuf::Descriptor *mMessage;

src/generator/servergenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class Message;
3838
namespace QtProtobuf {
3939
namespace generator {
4040

41+
/*!
42+
* \ingroup generator
43+
* \private
44+
* \brief The ServerGenerator class
45+
*/
4146
class ServerGenerator : public ServiceGeneratorBase
4247
{
4348
const google::protobuf::ServiceDescriptor *mService;

src/generator/servicegeneratorbase.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class Message;
3838
namespace QtProtobuf {
3939
namespace generator {
4040

41+
/*!
42+
* \ingroup generator
43+
* \private
44+
* \brief The ServiceGeneratorBase class
45+
*/
4146
class ServiceGeneratorBase : public ClassGeneratorBase
4247
{
4348
protected:

src/generator/singlefilegenerator.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ class GeneratorContext;
4242
namespace QtProtobuf {
4343
namespace generator {
4444

45+
/*!
46+
* \ingroup generator
47+
* \private
48+
* \brief The SingleFileGenerator class
49+
*/
4550
class SingleFileGenerator : public GeneratorBase
4651
{
4752
public:

src/generator/templates.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
namespace QtProtobuf {
3333
namespace generator {
3434

35+
/*!
36+
* \ingroup generator
37+
* \private
38+
* \brief The Templates class
39+
*/
3540
class Templates {
3641
public:
3742
static const std::vector<std::string> ListOfQmlExeptions;

src/generator/utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class FileDescriptor;
4444

4545
namespace QtProtobuf {
4646
namespace generator {
47+
48+
/*!
49+
* \ingroup generator
50+
* \private
51+
* \brief The utils class
52+
*/
4753
class utils {
4854
public:
4955
static void split(const std::string &str, std::vector<std::string> &container, char delim)

src/grpc/qabstractgrpcchannel.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ class Q_GRPC_EXPORT QAbstractGrpcChannel
4949
{
5050
public:
5151
/*!
52-
* \brief Calls \p method synchronously with given serialized messge \p args and write result of call to \p ret.
53-
* \note This method is synchronous, that means it doesn't returns until call complete or aborted by timeout if it's
52+
* \brief Calls \p method synchronously with given serialized message \p args and write result of call to \p ret.
53+
* \note This method is synchronous, that means it doesn't return until call is completed or aborted by timeout if it's
5454
* implemented in inherited channel.
55+
* \note This method should not be called directly.
5556
* \param[in] method remote method is called
5657
* \param[in] service service identified in URL path format
5758
* \param[in] args serialized argument message
@@ -63,6 +64,7 @@ class Q_GRPC_EXPORT QAbstractGrpcChannel
6364
/*!
6465
* \brief Calls \p method asynchronously with given serialized messge \p args. Result of method call is written to QGrpcAsyncReply.
6566
* \note This method is asynchronous, that means it returns control imediately after it is called.
67+
* \note This method should not be called directly.
6668
* \param[in] method remote method is called
6769
* \param[in] service service identified in URL path format
6870
* \param[in] args serialized argument message
@@ -74,6 +76,7 @@ class Q_GRPC_EXPORT QAbstractGrpcChannel
7476

7577
/*!
7678
* \brief Subscribes to server-side stream to receive updates for given \p method.
79+
* \note This method should not be called directly.
7780
* \param[in] method remote method is called
7881
* \param[in] service service identified in URL path format
7982
* \param[in] args serialized argument message
@@ -83,16 +86,20 @@ class Q_GRPC_EXPORT QAbstractGrpcChannel
8386

8487
virtual std::shared_ptr<QAbstractProtobufSerializer> serializer() const = 0;
8588
protected:
89+
//! \private
8690
QAbstractGrpcChannel() = default;
91+
//! \private
8792
virtual ~QAbstractGrpcChannel() = default;
8893

8994
/*!
95+
* \private
9096
* \brief Aborts async call for given \p reply
9197
* \param[in] reply returned by asynchronous QAbstractGrpcChannel::call() method
9298
*/
9399
virtual void abort(QGrpcAsyncReply *reply);
94100

95101
/*!
102+
* \private
96103
* \brief Cancels \p subscription
97104
* \param[in] subscription returned by QAbstractGrpcChannel::subscribe() method
98105
*/

src/grpc/qabstractgrpcclient.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#include <QTimer>
3333

3434
namespace QtProtobuf {
35+
36+
//! \private
3537
class QAbstractGrpcClientPrivate final {
3638
public:
3739
QAbstractGrpcClientPrivate(const QString &service) : service(service) {

src/grpc/qabstractgrpcclient.h

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040

4141
#include "qtgrpcglobal.h"
4242

43+
/*!
44+
* \defgroup QtGrpc
45+
* \brief Qt framework based gRPC clients and services
46+
*/
4347
namespace QtProtobuf {
4448

4549
class QGrpcAsyncReply;
@@ -139,7 +143,7 @@ class Q_GRPC_EXPORT QAbstractGrpcClient : public QObject
139143
* \param[in] arg Protobuf message argument for \p method
140144
* \param[out] ret Pointer to preallocated return-message structure. \p ret Structure fields will be update each
141145
* time message update recevied from server-stream.
142-
* \note If \p ret is used as property-fiels in other object, property NOTIFY signal won't be called in case of
146+
* \note If \p ret is used as property-fields in other object, property NOTIFY signal won't be called in case of
143147
* updated message recevied from server-stream
144148
*/
145149
template<typename A, typename R>
@@ -163,28 +167,26 @@ class Q_GRPC_EXPORT QAbstractGrpcClient : public QObject
163167
}
164168

165169
/*!
166-
* \brief Canceles all subscription for specified \p method
170+
* \brief Canceles all subscriptions for specified \p method
167171
* \param[in] method Name of method subscription for to be canceled
168172
*/
169173
void cancel(const QString &method);
170174

175+
/*!
176+
* \brief serializer provides assigned to client serializer
177+
* \return pointer to serializer. Serializer is owned by QtProtobuf::QProtobufSerializerRegistry.
178+
*/
171179
QAbstractProtobufSerializer *serializer() const;
172180

173181
friend class QGrpcAsyncOperationBase;
174182
private:
175-
/*!
176-
* \private
177-
*/
183+
//!\private
178184
QGrpcStatus call(const QString &method, const QByteArray &arg, QByteArray &ret);
179185

180-
/*!
181-
* \private
182-
*/
186+
//!\private
183187
QGrpcAsyncReply *call(const QString &method, const QByteArray &arg);
184188

185-
/*!
186-
* \private
187-
*/
189+
//!\private
188190
QGrpcSubscription *subscribe(const QString &method, const QByteArray &arg, const QtProtobuf::SubscriptionHandler &handler = {});
189191

190192
/*!

src/grpc/qgrpcasyncoperationbase_p.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838

3939
namespace QtProtobuf {
4040

41+
/*!
42+
* \ingroup QtGrpc
43+
* \private
44+
* \brief The QGrpcAsyncOperationBase class implements subscription logic
45+
*/
4146
class Q_GRPC_EXPORT QGrpcAsyncOperationBase : public QObject
4247
{
4348
Q_OBJECT
@@ -84,8 +89,7 @@ class Q_GRPC_EXPORT QGrpcAsyncOperationBase : public QObject
8489

8590
/*!
8691
* \brief The signal is emitted when error happend in channel or during serialization
87-
* \param code gRPC channel QGrpcStatus::StatusCode
88-
* \param errorMessage Description of error occured
92+
* \param[out] status received from gRPC channel
8993
*/
9094
void error(const QGrpcStatus &status);
9195

src/grpc/qgrpcasyncreply.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace QtProtobuf {
4040
/*!
4141
* \ingroup QtGrpc
4242
* \brief The QGrpcAsyncReply class contains data for asynchronous call of gRPC client API. It's owned by client class, that
43-
* created it. QGrpcAsyncReply coul be used by QAbstractGrpcChannel implementations to control call work flow and
43+
* created it. QGrpcAsyncReply could be used by QAbstractGrpcChannel implementations to control call work flow and
4444
* abort calls if possible in case if QGrpcAsyncReply::abort method called by library user.
4545
*/
4646
class Q_GRPC_EXPORT QGrpcAsyncReply final : public QGrpcAsyncOperationBase
@@ -84,6 +84,7 @@ class Q_GRPC_EXPORT QGrpcAsyncReply final : public QGrpcAsyncOperationBase
8484
~QGrpcAsyncReply() = default;
8585

8686
private:
87+
//! \private
8788
QGrpcAsyncReply();
8889
Q_DISABLE_COPY_MOVE(QGrpcAsyncReply)
8990

0 commit comments

Comments
 (0)