#ifndef PERMISSONWINDOW_H
|
#define PERMISSONWINDOW_H
|
|
#include <QMainWindow>
|
#include <QMenu>
|
#include <qstandarditemmodel.h>
|
#include <QDebug>
|
#include <map>
|
#include "permissondialog.h"
|
#include "syncdatatodb.h"
|
#include "PmsClientSocket.h"
|
|
|
|
using namespace std;
|
|
namespace Ui {
|
class PermissonWindow;
|
}
|
|
class PermissonWindow : public QMainWindow
|
{
|
Q_OBJECT
|
public:
|
explicit PermissonWindow(QWidget *parent = 0);
|
~PermissonWindow();
|
|
bool eventFilter(QObject *watch, QEvent *event);
|
|
signals:
|
void sendUserNo(PmsQueryResult);
|
private slots:
|
void on_pushButton_clicked();
|
|
void listenItemChange(QStandardItem * item);
|
|
void renderItemData(vector<PmsQueryResult> res);
|
|
|
|
private:
|
Ui::PermissonWindow *ui;
|
QStandardItemModel * m_model;
|
QMenu * m;
|
PermissonDialog *dia;
|
SyncDataToDB * dbInfo;
|
map<string,int> roleMap;
|
|
vector<PmsQueryResult> globalPms;
|
PmsClientSocket * clientSocket;
|
|
|
};
|
|
#endif // PERMISSONWINDOW_H
|