Instantly share code, notes, and snippets.
Created
May 25, 2021 20:53
-
Save martonmiklos/cf8ab586aeba9dffd3162fca1f9d6ece to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is generated by KDAB's kdwsdl2cpp from test_qsharedpointer_include_wsdl.wsdl. | |
// All changes you do to this file will be lost. | |
/* | |
You may use and relicense this generated file without restriction. | |
*/ | |
#pragma once | |
#include <QtCore/QList> | |
#include <QSharedPointer> | |
#include <QtCore/QSharedData> | |
#include <QtCore/QString> | |
#include <KDSoapClient/KDSoapJob.h> | |
#include <QtCore/QObject> | |
#include <KDSoapClient/KDSoapClientInterface.h> | |
#undef daylight | |
#undef timezone | |
class Hello_Service; | |
class KDSoapMessage; | |
class KDSoapPendingCallWatcher; | |
class KDSoapValue; | |
class TEST__RealTrajectoryPoint; | |
class TEST__Trajectory; | |
class TEST__TrajectoryPoint; | |
class TEST__GetTrajectoryResponse | |
{ | |
public: | |
void setTrajectoryInfo( const QList< TEST__Trajectory >& arg_trajectoryInfo ); | |
QList< TEST__Trajectory > trajectoryInfo() const; | |
bool hasValueForTrajectoryInfo() const; | |
KDSoapValue serialize( const QString& valueName ) const; | |
void deserialize( const KDSoapValue& mainValue ); | |
TEST__GetTrajectoryResponse(); | |
~TEST__GetTrajectoryResponse(); | |
public: | |
TEST__GetTrajectoryResponse( const TEST__GetTrajectoryResponse& ); | |
TEST__GetTrajectoryResponse &operator=( const TEST__GetTrajectoryResponse& ); | |
private: | |
class PrivateDPtr; | |
QSharedDataPointer<PrivateDPtr> d_ptr; | |
}; | |
class TEST__Trajectory | |
{ | |
public: | |
void setId( qint64 arg_id ); | |
qint64 id() const; | |
void setCategory( const QString& arg_category ); | |
QString category() const; | |
void setCoordinateSystem( const QString& arg_coordinateSystem ); | |
QString coordinateSystem() const; | |
void setPoints( const QList< QSharedPointer<TEST__TrajectoryPoint> >& arg_points ); | |
QList< QSharedPointer<TEST__TrajectoryPoint> > points() const; | |
bool hasValueForPoints() const; | |
void setRealPoints( const QList< TEST__RealTrajectoryPoint >& arg_realPoints ); | |
QList< TEST__RealTrajectoryPoint > realPoints() const; | |
bool hasValueForRealPoints() const; | |
KDSoapValue serialize( const QString& valueName ) const; | |
void deserialize( const KDSoapValue& mainValue ); | |
TEST__Trajectory(); | |
~TEST__Trajectory(); | |
public: | |
TEST__Trajectory( const TEST__Trajectory& ); | |
TEST__Trajectory &operator=( const TEST__Trajectory& ); | |
private: | |
class PrivateDPtr; | |
QSharedDataPointer<PrivateDPtr> d_ptr; | |
}; | |
class TEST__TrajectoryPoint | |
{ | |
public: | |
void setTime( double arg_time ); | |
double time() const; | |
void setCv( const QList< double >& arg_cv ); | |
QList< double > cv() const; | |
virtual KDSoapValue serialize( const QString& valueName ) const; | |
virtual void deserialize( const KDSoapValue& mainValue ); | |
TEST__TrajectoryPoint(); | |
virtual ~TEST__TrajectoryPoint(); | |
virtual TEST__TrajectoryPoint *_kd_clone() const; | |
public: | |
TEST__TrajectoryPoint( const TEST__TrajectoryPoint& ); | |
TEST__TrajectoryPoint &operator=( const TEST__TrajectoryPoint& ); | |
private: | |
class PrivateDPtr; | |
QSharedDataPointer<PrivateDPtr> d_ptr; | |
}; | |
class SayHelloJob : public KDSoapJob | |
{ | |
Q_OBJECT | |
public: | |
SayHelloJob( Hello_Service* service, QObject* _parent = nullptr ); | |
void setFirstName( const TEST__Trajectory& arg0 ); | |
TEST__Trajectory firstName() const; | |
TEST__GetTrajectoryResponse greeting() const; | |
protected: | |
virtual void doStart() override; | |
private Q_SLOTS: | |
void slotFinished( KDSoapPendingCallWatcher* watcher ); | |
private: | |
Hello_Service *mService; | |
TEST__Trajectory mFirstName; | |
TEST__GetTrajectoryResponse mResultGreeting; | |
}; | |
class TEST__RealTrajectoryPoint : public TEST__TrajectoryPoint | |
{ | |
public: | |
void setCovMatrix( const QList< double >& arg_covMatrix ); | |
QList< double > covMatrix() const; | |
virtual KDSoapValue serialize( const QString& valueName ) const override; | |
virtual void deserialize( const KDSoapValue& mainValue ) override; | |
TEST__RealTrajectoryPoint(); | |
~TEST__RealTrajectoryPoint(); | |
virtual TEST__TrajectoryPoint *_kd_clone() const override; | |
public: | |
TEST__RealTrajectoryPoint( const TEST__RealTrajectoryPoint& ); | |
TEST__RealTrajectoryPoint &operator=( const TEST__RealTrajectoryPoint& ); | |
private: | |
class PrivateDPtr; | |
QSharedDataPointer<PrivateDPtr> d_ptr; | |
}; | |
/** | |
WSDL File for HelloService | |
*/ | |
class Hello_Service : public QObject | |
{ | |
Q_OBJECT | |
public: | |
Hello_Service( QObject* _parent = nullptr ); | |
~Hello_Service(); | |
/** | |
Asks Qt to ignore ssl errors in https requests. Use this for testing | |
only! | |
*/ | |
void ignoreSslErrors(); | |
/** | |
Overwrite the end point defined in the .wsdl file, with another | |
http/https URL. | |
*/ | |
void setEndPoint( const QString& endPoint ); | |
/** | |
Return the end point that will be used. | |
*/ | |
QString endPoint() const; | |
/** | |
Overwrite the soap version defined in the .wsdl file, with another | |
version. | |
version can be KDSoapClientInterface::SOAP1_1 or | |
KDSoapClientInterface::SOAP1_2 | |
*/ | |
void setSoapVersion( KDSoapClientInterface::SoapVersion soapVersion ); | |
/** | |
Return the soap version used.n | |
*/ | |
KDSoapClientInterface::SoapVersion soapVersion() const; | |
/** | |
Return the fault code from the last blocking call. | |
Empty if no error. | |
*/ | |
int lastErrorCode() const; | |
/** | |
Return the fault code from the last blocking call. | |
Empty if no error. | |
*/ | |
QString lastFaultCode() const; | |
/** | |
Return the error from the last blocking call. | |
Empty if no error. | |
*/ | |
QString lastError() const; | |
/** | |
Returns the underlying KDSoapClientInterface instance, which allows to | |
access setCookieJar, lastResponseHeaders, etc. | |
*/ | |
const KDSoapClientInterface *clientInterface() const; | |
KDSoapClientInterface *clientInterface(); | |
/** | |
Blocking call to sayHello. | |
Not recommended in a GUI thread. | |
*/ | |
TEST__GetTrajectoryResponse sayHello( const TEST__Trajectory& firstName ); | |
/** | |
Asynchronous call to sayHello. | |
Remember to connect to sayHelloDone and sayHelloError. | |
Deprecated, use SayHelloJob instead. | |
*/ | |
void asyncSayHello( const TEST__Trajectory& firstName ); | |
Q_SIGNALS: | |
/** | |
This signal is emitted whenever a SOAP call failed, for a central | |
processing of all SOAP errors. | |
method is the name of the method (or operation) that returned the | |
fault, for instance "addContact". | |
*/ | |
void soapError( const QString& method, const KDSoapMessage& fault ); | |
/** | |
This signal is emitted whenever the asynchronous call asyncSayHello() | |
has succeeded. | |
*/ | |
void sayHelloDone( const TEST__GetTrajectoryResponse& greeting ); | |
/** | |
This signal is emitted whenever the asynchronous call asyncSayHello() | |
has failed. | |
*/ | |
void sayHelloError( const KDSoapMessage& fault ); | |
private Q_SLOTS: | |
void _kd_slotSayHelloFinished( KDSoapPendingCallWatcher* watcher ); | |
private: | |
class PrivateDPtr; | |
PrivateDPtr *d_ptr; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment