32#ifdef _QX_ENABLE_QT_NETWORK
47#include <QtCore/qdatastream.h>
50#include <QtCore/qjsonvalue.h>
75template <>
struct QxConvert_ToJson<
qx::service::IxService >;
76template <> struct QxConvert_FromJson< qx::service::IxService >;
139 virtual void registerClass()
const { qDebug(
"[QxOrm] qx::service::IxService : %s",
"need to override 'registerClass()' method");
qAssert(
false); }
Common interface for all parameters transfered by QxService module of QxOrm library.
QX_DLL_EXPORT QDataStream & operator<<(QDataStream &stream, const qx::service::IxService &t) QX_USED
QX_DLL_EXPORT QDataStream & operator>>(QDataStream &stream, qx::service::IxService &t) QX_USED
qx_bool : QxOrm library boolean type with code and description message when an error occured
qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...
#define QX_REGISTER_INTERNAL_HELPER_HPP(dllImportExport, className, version)
qx::service::IxService : common interface for all services defined with QxService module of QxOrm lib...
virtual void onAfterProcess()
QString getServiceMethodName() const
void setServiceMethodName(const QString &s)
virtual void registerClass() const
virtual void onBeforeProcess()
QString m_sServiceName
Service name <=> class name.
IxParameter_ptr getInputParameter_BaseClass() const
void setServiceName(const QString &s)
void setMessageReturn(const qx_bool &b)
bool isValidWithOutput() const
IxParameter_ptr m_pInputParameter
List of input parameters (request)
void setOutputParameter(IxParameter_ptr p)
void setInputParameter(IxParameter_ptr p)
void setMessageReturn(long l, const QString &s)
IxParameter_ptr getOutputParameter_BaseClass() const
qx_bool m_bMessageReturn
Message return to indicate if an error occured.
std::shared_ptr< QxTransaction > getTransaction() const
std::shared_ptr< QxTransaction > m_pTransaction
Current transaction after executing service method.
IxParameter_ptr m_pOutputParameter
List of output parameters (reply)
qx_bool getMessageReturn() const
void setTransaction(const std::shared_ptr< QxTransaction > &p)
QString m_sServiceMethodName
Service method name to call.
QString getServiceName() const
qx::service::QxTransaction : transaction of QxService module (contains request from client and reply ...
QX_DLL_EXPORT QJsonValue QxConvert_ToJson_Helper(const qx::dao::detail::IxSqlElement &t, const QString &format) QX_USED
QX_DLL_EXPORT qx_bool QxConvert_FromJson_Helper(const QJsonValue &j, qx::dao::detail::IxSqlElement &t, const QString &format) QX_USED
QxOrm library services engine to provide easy and powerful way to create C++ application server (to t...
std::shared_ptr< IxParameter > IxParameter_ptr
std::shared_ptr< IxService > IxService_ptr
Root namespace for all QxOrm library features.