source: src-qt4/pc-zmanager/dialognewpool.h @ 125dbc9

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 125dbc9 was 125dbc9, checked in by Kris Moore <kris@…>, 7 months ago

Welcome the new 'pc-zmanager' for ZFS & Disk Management

A HUGE Thank You to: Claudio L <claudio@…>

Update pkg-plist and add it to the control panel

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef DIALOGNEWPOOL_H
2#define DIALOGNEWPOOL_H
3
4#include <QDialog>
5#include <QTreeWidgetItem>
6#include "zmanagerwindow.h"
7
8namespace Ui {
9class DialogNewPool;
10}
11
12
13
14
15
16
17class DialogNewPool : public QDialog
18{
19    Q_OBJECT
20   
21public:
22
23    enum DiskType {
24        DISK_STRIPE=1,
25        DISK_MIRROR,
26        DISK_RAIDZ,
27        DISK_RAIDZ2,
28        DISK_RAIDZ3,
29        DISK_CACHE,
30        DISK_LOG,
31        DISK_SPARE
32    };
33
34
35    int Fixednumdisks;
36    bool Fixedtype;
37    int Vdevcount;
38
39    QStringList getVdevList();
40    QString getRaidType();
41    QString getName();
42
43    void setDevices(QList<vdev_t> *disks);
44    void setTitle(QString name);
45    void setName(QString name);
46    void setType(int disktype);
47    void setNumDisks(int ndisks);
48
49
50
51    explicit DialogNewPool(QWidget *parent = 0);
52    ~DialogNewPool();
53
54
55private slots:
56    void on_vdevList_itemClicked(QTreeWidgetItem *item, int column);
57
58    void on_vdevList_itemChanged(QTreeWidgetItem *item, int column);
59
60
61private:
62
63    virtual void done(int r);
64
65    Ui::DialogNewPool *ui;
66
67
68
69};
70
71#endif // DIALOGNEWPOOL_H
Note: See TracBrowser for help on using the repository browser.