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

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 6a2483b was 6a2483b, checked in by Ken Moore <ken@…>, 6 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: 979 bytes
Line 
1#ifndef _LP_GUTILS_H
2#define _LP_GUTILS_H
3
4#include <QMessageBox>
5#include <QDialog>
6#include <QStringList>
7#include <QString>
8#include <QFile>
9#include <QDir>
10
11#include "LPBackend.h"
12#include "LPContainers.h"
13
14class LPGUtils{
15public:
16        static LPDataset loadPoolData(QString zpool); //Load backend data into container
17        static QString generateReversionFileName(QString filename, QString destDir);
18        static bool revertFile(QString oldPath, QString newPath); //copy a file out of a snapshot
19        static QStringList revertDir(QString oldPath, QString newPath); //copy a dir out of a snapshot
20        //Functions for packaging up a user's home directory and extracting it later
21        static QString packageHomeDir(QString username, QString packageName);
22        static bool checkPackageUserPath(QString packagePath, QString *user);
23        static bool extractHomeDirPackage(QString packagePath);
24        //Function to scan the system for available harddisks/devices
25        static QStringList listAvailableHardDisks();
26};
27
28#endif
Note: See TracBrowser for help on using the repository browser.