Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
FrmListConnects.h
1#ifndef FRMOPENCONNECT_H
2#define FRMOPENCONNECT_H
3
4#include <QWidget>
5#include <QStandardItemModel>
6#include <QToolBar>
7#include <QTableView>
8#include <QToolButton>
9#include "Client.h"
10#include "TitleBar.h"
11
17class CFrmListConnects : public QWidget, CClient::Handle
18{
19 Q_OBJECT
20
21public:
22 explicit CFrmListConnects(CClient* pClient,
23 bool bDock = false,
24 QWidget *parent = nullptr);
25 virtual ~CFrmListConnects();
26
27public:
28 virtual int onProcess(const QString &id, CPluginClient *pPlug) override;
29
30 RabbitCommon::CTitleBar* m_pDockTitleBar;
31
32Q_SIGNALS:
33 void sigConnect(const QString &szFile, bool bOpenSettings = false);
34
35private slots:
36 void slotEditConnect();
37 void slotNew();
38 void slotEdit();
39 void slotCopy();
40 void slotDelete();
41 void slotDetail();
42 void slotConnect();
43 void slotCustomContextMenu(const QPoint &pos);
44 void slotDoubleClicked(const QModelIndex& index);
45 void slotLoadFiles();
46
47private:
48 int InsertItem(CConnecter* c, QString &szFile);
49
50private:
51 QToolBar* m_pToolBar;
52 QToolButton* m_ptbConnect;
53 QMenu* m_pMenuNew;
54 QAction* m_pConnect;
55 QAction* m_pEditConnect;
56 QAction* m_pEdit;
57 QAction* m_pCopy;
58 QAction* m_pDelete;
59 QAction* m_pDetail;
60 QAction* m_pRefresh;
61
62 QTableView* m_pTableView;
63 QStandardItemModel* m_pModel;
64 CClient* m_pClient;
65 int m_nFileRow;
66
67 bool m_bDock;
68};
69
70#endif // FRMOPENCONNECT_H
The Handle CConnecter class.
Definition Client.h:151
manage plugins and connecter
Definition Client.h:49
Connecter interface.
Definition Connecter.h:62
List the connect of be existed.
virtual int onProcess(const QString &id, CPluginClient *pPlug) override
Process plugins.
The plugin interface.