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

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

Add the ability to scan the network for hosts with SSH availability (port 22) to the Configuration UI. If it works, I will add the same thing to the LPWizard.

  • Property mode set to 100644
File size: 1.1 KB
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        //Function to scan the network for available replication targets (SSH open)
27        static QStringList scanNetworkSSH();
28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.