source: src-qt4/life-preserver/lp-gui/LPContainers.h @ 6a2483b

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 6a2483b was 6a2483b, checked in by Ken Moore <ken@…>, 14 months ago

Remove the old life-preserver from the src-qt4/life-preserver dir, and replace it with src-qt4/life-preserver/lp-tray and src-qt4/life-preserver/lp-gui.

  • Property mode set to 100644
File size: 763 bytes
Line 
1#ifndef _LP_CONTAINERS_H
2#define _LP_CONTAINERS_H
3
4#include <QHash>
5#include <QStringList>
6#include <QString>
7
8
9class LPDataset{
10public:
11        LPDataset(){}
12        ~LPDataset(){}
13
14        //Information needed on each dataset
15        QString finishedStatus, runningStatus, errorStatus;
16        QString latestSnapshot;
17        QStringList harddisks;
18        QStringList harddiskStatus;
19        QString poolStatus;
20        QHash<QString,QStringList> subsetHash; //<subset, snapshot list> (complete dataset name should be <ds><subset>)
21       
22        //Simplification functions for getting info from the hash
23        QStringList subsets(){ return QStringList(subsetHash.keys()); }
24        QStringList snapshots(QString subset){ 
25          if(subsetHash.contains(subset)){
26            return subsetHash[subset];
27          }else{
28            return QStringList();
29          }
30        }
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.