00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #define CONFIG_FILE "/root/.ds4clonerestore"
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <qwidget.h>
00023 #include <qdesktopwidget.h>
00024 #include <qrect.h>
00025 #include <qstring.h>
00026 #include <qprocess.h>
00027 #include <qsettings.h>
00028 #include <sys/mount.h>
00029 #include <errno.h>
00030 #include <stdio.h>
00031 #include <stdlib.h>
00032 #include <mntent.h>
00033
00034
00036
00039 void CenterWindow(QWidget *sourceWindow);
00040
00041
00043
00047 void CenterWindow(QWidget *sourceWindow, QWidget *newWindow);
00048
00050
00053 bool MountRev();
00054
00056
00060 void delmntent(FILE *stream, const char *mount_point);
00061
00063
00066 bool UmountRev();
00067
00069
00072 void EjectRev();
00073
00075
00078 QString RevPathMount();
00079
00081
00084 QString RevDevice();
00085
00087
00090 QString HDDevice();
00091
00093
00097 QString SystemSwapPartition();
00098
00100
00103 bool MountServer();
00104
00106
00109 bool UmountServer();
00110
00112
00115 QString ServerPathMount();
00116
00118
00121 QString ServerAddress();
00122
00124
00127 QString ServerUsername();
00128
00130
00133 QString ServerPassword();