first commit
This commit is contained in:
20
test/qxClientServer/qxClient/include/export.h
Normal file
20
test/qxClientServer/qxClient/include/export.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _QX_CLIENT_EXPORT_H_
|
||||
#define _QX_CLIENT_EXPORT_H_
|
||||
|
||||
#include "../../qxService/include/export.h"
|
||||
|
||||
#ifdef _BUILDING_QX_CLIENT
|
||||
#define QX_CLIENT_DLL_EXPORT QX_DLL_EXPORT_HELPER
|
||||
#else // _BUILDING_QX_CLIENT
|
||||
#define QX_CLIENT_DLL_EXPORT QX_DLL_IMPORT_HELPER
|
||||
#endif // _BUILDING_QX_CLIENT
|
||||
|
||||
#ifdef _BUILDING_QX_CLIENT
|
||||
#define QX_REGISTER_HPP_QX_CLIENT QX_REGISTER_HPP_EXPORT_DLL
|
||||
#define QX_REGISTER_CPP_QX_CLIENT QX_REGISTER_CPP_EXPORT_DLL
|
||||
#else // _BUILDING_QX_CLIENT
|
||||
#define QX_REGISTER_HPP_QX_CLIENT QX_REGISTER_HPP_IMPORT_DLL
|
||||
#define QX_REGISTER_CPP_QX_CLIENT QX_REGISTER_CPP_IMPORT_DLL
|
||||
#endif // _BUILDING_QX_CLIENT
|
||||
|
||||
#endif // _QX_CLIENT_EXPORT_H_
|
||||
56
test/qxClientServer/qxClient/include/main_dlg.h
Normal file
56
test/qxClientServer/qxClient/include/main_dlg.h
Normal file
@@ -0,0 +1,56 @@
|
||||
#ifndef _QX_CLIENT_MAIN_DLG_H_
|
||||
#define _QX_CLIENT_MAIN_DLG_H_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#ifdef _QX_NO_PRECOMPILED_HEADER
|
||||
#ifndef Q_MOC_RUN
|
||||
#include "../include/precompiled.h" // Need to include precompiled header for the generated moc file
|
||||
#endif // Q_MOC_RUN
|
||||
#endif // _QX_NO_PRECOMPILED_HEADER
|
||||
|
||||
#include "../qt/ui/include/ui_qxClient.h"
|
||||
|
||||
#include "../../qxService/include/business_object/user.h"
|
||||
#include "../../qxService/include/business_object/user_search.h"
|
||||
|
||||
class main_dlg : public QWidget, private Ui::dlgClient
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
|
||||
qx::service::QxClientAsync_ptr m_pDateTimeAsync; // To retrieve current server date-time without blocking GUI (async transaction)
|
||||
|
||||
public:
|
||||
|
||||
main_dlg(QWidget * parent = NULL) : QWidget(parent), Ui::dlgClient() { main_dlg::init(); }
|
||||
virtual ~main_dlg() { ; }
|
||||
|
||||
private:
|
||||
|
||||
void init();
|
||||
void updateLastTransactionLog(qx::service::QxTransaction_ptr transaction);
|
||||
void fillUser(user_ptr user);
|
||||
user_ptr fileUser();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
void onClickBtnDateTime();
|
||||
void onClickBtnDateTimeAsync();
|
||||
void onClickBtnAddUser();
|
||||
void onClickBtnUpdateUser();
|
||||
void onClickBtnRemoveUser();
|
||||
void onClickBtnRemoveAllUsers();
|
||||
void onClickBtnFetchUser();
|
||||
void onClickBtnGetAllUsers();
|
||||
void onClickBtnSearchUsers();
|
||||
void onDateTimeAsyncFinished();
|
||||
void onUpdateServerConnection();
|
||||
|
||||
};
|
||||
|
||||
#endif // _QX_CLIENT_MAIN_DLG_H_
|
||||
9
test/qxClientServer/qxClient/include/precompiled.h
Normal file
9
test/qxClientServer/qxClient/include/precompiled.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef _QX_CLIENT_PRECOMPILED_HEADER_H_
|
||||
#define _QX_CLIENT_PRECOMPILED_HEADER_H_
|
||||
|
||||
#include <QxOrm.h>
|
||||
#include <QxServices.h>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#endif // _QX_CLIENT_PRECOMPILED_HEADER_H_
|
||||
Reference in New Issue
Block a user