#include </home/clem/local/src/opie/noncore/settings/backup/backuprestore.h>
Collaboration diagram for BackupAndRestore:

Public Member Functions | |
| BackupAndRestore (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| ~BackupAndRestore () | |
Static Public Member Functions | |
| static QString | appName () |
Private Slots | |
| void | backup () |
| void | restore () |
| void | selectItem (QListViewItem *currentItem) |
| void | sourceDirChanged (int) |
| void | rescanFolder (QString directory) |
| void | fileListUpdate () |
| void | addLocation () |
| void | removeLocation () |
| void | saveLocations () |
| void | selectLocation () |
Private Member Functions | |
| void | scanForApplicationSettings () |
| int | getBackupFiles (QString &backupFiles, QListViewItem *parent) |
| QString | getExcludeFile () |
| QList< QListViewItem > | getAllItems (QListViewItem *item, QList< QListViewItem > &list) |
| void | refreshBackupLocations () |
| void | refreshLocations () |
| void | backupUserData () |
| void | backupRootFs () |
Private Attributes | |
| QMap< QString, QString > | backupLocations |
| QListViewItem * | systemSettings |
| QListViewItem * | applicationSettings |
| QListViewItem * | documents |
|
||||||||||||||||
|
Definition at line 80 of file backuprestore.cpp. References addLocation(), applicationSettings, backup(), documents, getAllItems(), HEADER_NAME, i, list, Config::readEntry(), Config::readNumEntry(), refreshBackupLocations(), refreshLocations(), removeLocation(), restore(), scanForApplicationSettings(), selectItem(), selectLocation(), Config::setGroup(), QPEApplication::showWidget(), sourceDirChanged(), and text. |
|
|
Definition at line 136 of file backuprestore.cpp. References Config::clearGroup(), QFile::exists(), getAllItems(), HEADER_BACKUP, HEADER_NAME, i, list, QFile::remove(), Config::setGroup(), and Config::writeEntry(). |
|
|
Definition at line 731 of file backuprestore.cpp. References saveLocations(). Referenced by BackupAndRestore(). |
|
|
Definition at line 50 of file backuprestore.h. References QString::fromLatin1(). |
|
|
The "Backup" button has been pressed. Get a list of all of the files that should be backed up. If there are no files, emit and error and exit. Determine the file name to store the backup in. Backup the file(s) using tar and gzip --best. Report failure or success Definition at line 274 of file backuprestore.cpp. References backupUserData(). Referenced by BackupAndRestore(). |
|
|
|
Definition at line 392 of file backuprestore.cpp. References backupLocations, QDateTime::currentDateTime(), QDateTime::date(), QTextStream::eof(), QPEApplication::execDialog(), QFile::exists(), EXTENSION, getBackupFiles(), getExcludeFile(), Opie::Ui::OWait::hide(), QDir::homeDirPath(), IO_ReadOnly, QString::latin1(), NULL, QString::number(), odebug, oendl, QFile::open(), owarn, Opie::Core::perror(), qApp, QTextStream::readLine(), QString::rightJustify(), s, Config::setGroup(), Opie::Ui::OWait::show(), Global::statusMessage(), t, tr, and Config::writeEntry(). Referenced by backup(). |
|
|
Definition at line 537 of file backuprestore.cpp. References backupLocations, oendl, owarn, and rescanFolder(). |
|
||||||||||||
|
Definition at line 215 of file backuprestore.cpp. Referenced by BackupAndRestore(), and ~BackupAndRestore(). |
|
||||||||||||
|
Definition at line 495 of file backuprestore.cpp. References BACKUP_LOCATION, HEADER_BACKUP, HEADER_NAME, and NULL. Referenced by backupUserData(). |
|
|
Check for exclude in Applications/backup If it does not exist, the function will create the file with *.bck as content The exclude_files is read by tar and will provide to exclude special files out from backup. e.g. alle *.bck files (backup-files) will not be backed up by default Definition at line 695 of file backuprestore.cpp. References Global::applicationFileName(), QFile::exists(), IO_WriteOnly, QString::null, QFile::open(), and true. Referenced by backupUserData(). |
|
|
Definition at line 161 of file backuprestore.cpp. References backupLocations, QMap< Key, T >::begin(), Opie::Core::OStorageInfo::cfPath(), QMap< Key, T >::clear(), QMap< Key, T >::end(), StorageInfo::hasCf(), StorageInfo::hasMmc(), StorageInfo::hasSd(), QDir::homeDirPath(), QMap< Key, T >::insert(), Opie::Core::OStorageInfo::mmcPath(), odebug, oendl, Config::readEntry(), Opie::Core::OStorageInfo::sdPath(), and Config::setGroup(). Referenced by BackupAndRestore(), and saveLocations(). |
|
|
Definition at line 716 of file backuprestore.cpp. References QValueList< T >::begin(), QValueList< T >::end(), Config::readListEntry(), and Config::setGroup(). Referenced by BackupAndRestore(). |
|
|
Definition at line 742 of file backuprestore.cpp. References saveLocations(). Referenced by BackupAndRestore(). |
|
|
Scans directory for any backup files. Will recursivly go down, but will not follow symlinks.
Definition at line 549 of file backuprestore.cpp. References QPtrListIterator< type >::current(), d, QDir::Dirs, QDir::entryInfoList(), QDir::exists(), EXTENSION, QFileInfo::fileName(), QDir::Files, QDir::Hidden, QFileInfo::isDir(), list, and QDir::setFilter(). Referenced by fileListUpdate(), and sourceDirChanged(). |
|
|
Restore a backup file. Report errors or success Definition at line 584 of file backuprestore.cpp. References backupLocations, QTextStream::eof(), QPEApplication::execDialog(), Opie::Ui::OWait::hide(), QDir::homeDirPath(), IO_ReadOnly, QString::latin1(), NULL, odebug, oendl, QFile::open(), owarn, qApp, QTextStream::readLine(), s, Config::setGroup(), Opie::Ui::OWait::show(), Global::statusMessage(), t, tr, warning(), and Config::writeEntry(). Referenced by BackupAndRestore(). |
|
|
Definition at line 751 of file backuprestore.cpp. References QValueList< T >::append(), refreshBackupLocations(), Config::setGroup(), and Config::writeEntry(). Referenced by addLocation(), and removeLocation(). |
|
|
Definition at line 249 of file backuprestore.cpp. References applicationSettings, BACKUP_LOCATION, QPtrListIterator< type >::current(), d, QDir::Dirs, QDir::entryInfoList(), QFileInfo::fileName(), QDir::Files, QDir::homeDirPath(), list, QDir::NoSymLinks, selectItem(), and QDir::setFilter(). Referenced by BackupAndRestore(). |
|
|
Selects and unselects the item by setting the HEADER_BACKUP to B or !. and changing the icon to match
Definition at line 232 of file backuprestore.cpp. References HEADER_BACKUP, HEADER_NAME, and Opie::Core::OResource::loadPixmap(). Referenced by BackupAndRestore(), and scanForApplicationSettings(). |
|
|
Definition at line 766 of file backuprestore.cpp. References Opie::Ui::OFileSelector::DIRECTORYSELECTOR, Opie::Ui::OFileDialog::getDirectory(), and QString::isEmpty(). Referenced by BackupAndRestore(). |
|
|
Definition at line 531 of file backuprestore.cpp. References backupLocations, and rescanFolder(). Referenced by BackupAndRestore(). |
|
|
Definition at line 78 of file backuprestore.h. Referenced by BackupAndRestore(), and scanForApplicationSettings(). |
|
|
Definition at line 69 of file backuprestore.h. Referenced by backupRootFs(), backupUserData(), fileListUpdate(), refreshBackupLocations(), restore(), and sourceDirChanged(). |
|
|
Definition at line 79 of file backuprestore.h. Referenced by BackupAndRestore(). |
|
|
Definition at line 77 of file backuprestore.h. |
1.4.2