28 #include "descriptorprinterbase.h"
31 #include <google/protobuf/io/printer.h>
33 namespace google {
namespace protobuf {
34 class ServiceDescriptor;
38 namespace QtProtobuf {
46 class ServiceDeclarationPrinterBase :
public DescriptorPrinterBase<::google::protobuf::ServiceDescriptor>
49 ServiceDeclarationPrinterBase(const ::google::protobuf::ServiceDescriptor *service,
50 const std::shared_ptr<::google::protobuf::io::Printer> &printer);
52 void printClassName();
53 void printMethodsDeclaration(
const char *methodTemplate,
const char *methodAsyncTemplate =
"",
const char *methodAsync2Template =
"");