summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/settings/backup/backuprestore.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 53a498d..85a26bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,60 +1,61 @@
1 2005-??-??Opie 1.2.2 1 2005-??-??Opie 1.2.2
2 2
3 3
4 New Features 4 New Features
5 ------------ 5 ------------
6 6
7 7
8 Fixed Bugs 8 Fixed Bugs
9 ---------- 9 ----------
10 * #1695 - Date selector use too small fontsize on VGA screen (hrw) 10 * #1695 - Date selector use too small fontsize on VGA screen (hrw)
11 * #1686 - opie-console lack UI setting for switching scrollbar (hrw) 11 * #1686 - opie-console lack UI setting for switching scrollbar (hrw)
12 * #1624 - Button settngs changes are applied only after restart (hrw) 12 * #1624 - Button settngs changes are applied only after restart (hrw)
13 * #1492 - Backup and Restore does not show list of backups to restore on start (hrw)
13 * n.a. - remove hardcoded font size from wellenreiter (hrw) 14 * n.a. - remove hardcoded font size from wellenreiter (hrw)
14 * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw) 15 * n.a. - added patch to build QT/E 2.3.10 with gc 4.x.x (hrw)
15 16
16 2005-09-11Opie 1.2.1 17 2005-09-11Opie 1.2.1
17 18
18 19
19 New Features 20 New Features
20 ------------ 21 ------------
21 * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) 22 * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker)
22 * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) 23 * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly)
23 * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) 24 * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer)
24 * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) 25 * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl)
25 * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) 26 * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl)
26 * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) 27 * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl)
27 * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) 28 * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw)
28 * ZSafe: Made UI conform to Opie standards (drw) 29 * ZSafe: Made UI conform to Opie standards (drw)
29 * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) 30 * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw)
30 * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) 31 * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl)
31 * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) 32 * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl)
32 * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) 33 * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl)
33 * Opie-smb: Added Opie front end for Samba (ljp) 34 * Opie-smb: Added Opie front end for Samba (ljp)
34 * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) 35 * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie)
35 * Opieplayer: rudimentary podcast support (ljp) 36 * Opieplayer: rudimentary podcast support (ljp)
36 37
37 Fixed Bugs 38 Fixed Bugs
38 ---------- 39 ----------
39 * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) 40 * #1377 - Suspend Powermanagement when switched to another VT (mickeyl)
40 - We actually suspend the complete Opie now in that case. 41 - We actually suspend the complete Opie now in that case.
41 * #1384 - Battery status updated improperly when charging (skyhusker) 42 * #1384 - Battery status updated improperly when charging (skyhusker)
42 * #1476 - Wrong order of application entries in the O-menu (skyhusker) 43 * #1476 - Wrong order of application entries in the O-menu (skyhusker)
43 * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) 44 * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl)
44 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) 45 * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller)
45 * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) 46 * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw)
46 * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) 47 * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker)
47 * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) 48 * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker)
48 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) 49 * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller)
49 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) 50 * #1614 - Make Opie-console start in $HOME instead of / (skyhusker)
50 * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) 51 * #1635 - opie-today, datebook-plugin does not show notes (skyhusker)
51 * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) 52 * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker)
52 * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) 53 * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker)
53 * #1667 - Opie-IRC does not show messages from !channel (skyhusker) 54 * #1667 - Opie-IRC does not show messages from !channel (skyhusker)
54 * #1679 - Security PIN plugin is QVGA sized (hrw) 55 * #1679 - Security PIN plugin is QVGA sized (hrw)
55 * #1682 - Properly resize tab control in OTabWidget (drw) 56 * #1682 - Properly resize tab control in OTabWidget (drw)
56 * n.a. - always show volume and wireless applet popups inside visible screen (deller) 57 * n.a. - always show volume and wireless applet popups inside visible screen (deller)
57 * n.a. - scale O-Menu-Applets appropriately (mickeyl) 58 * n.a. - scale O-Menu-Applets appropriately (mickeyl)
58 * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) 59 * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker)
59 * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) 60 * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl)
60 * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) 61 * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl)
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index eadfb63..711dab3 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -57,96 +57,97 @@ using namespace Opie::Ui;
57#include <qcombobox.h> 57#include <qcombobox.h>
58#include <qlist.h> 58#include <qlist.h>
59#include <qregexp.h> 59#include <qregexp.h>
60#include <qtextstream.h> 60#include <qtextstream.h>
61#include <qtextview.h> 61#include <qtextview.h>
62#include <qlineedit.h> 62#include <qlineedit.h>
63#include <qstringlist.h> 63#include <qstringlist.h>
64 64
65/* STD */ 65/* STD */
66#include <errno.h> 66#include <errno.h>
67#include <stdlib.h> 67#include <stdlib.h>
68#include <unistd.h> 68#include <unistd.h>
69#include <sys/stat.h> 69#include <sys/stat.h>
70#include <dirent.h> 70#include <dirent.h>
71 71
72#define HEADER_NAME 0 72#define HEADER_NAME 0
73#define HEADER_BACKUP 1 73#define HEADER_BACKUP 1
74#define BACKUP_LOCATION 2 74#define BACKUP_LOCATION 2
75 75
76#define EXTENSION ".bck" 76#define EXTENSION ".bck"
77 77
78const QString tempFileName = "/tmp/backup.err"; 78const QString tempFileName = "/tmp/backup.err";
79 79
80BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags fl) 80BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags fl)
81 : BackupAndRestoreBase(parent, name, fl) 81 : BackupAndRestoreBase(parent, name, fl)
82{ 82{
83 backupList->header()->hide(); 83 backupList->header()->hide();
84 restoreList->header()->hide(); 84 restoreList->header()->hide();
85 locationList->header()->hide(); 85 locationList->header()->hide();
86 connect( backupButton, SIGNAL( clicked() ), this, SLOT( backup() ) ); 86 connect( backupButton, SIGNAL( clicked() ), this, SLOT( backup() ) );
87 connect( restoreButton, SIGNAL( clicked() ), this, SLOT( restore() ) ); 87 connect( restoreButton, SIGNAL( clicked() ), this, SLOT( restore() ) );
88 connect( backupList, SIGNAL( clicked( QListViewItem* ) ), this, SLOT( selectItem( QListViewItem* ) ) ); 88 connect( backupList, SIGNAL( clicked( QListViewItem* ) ), this, SLOT( selectItem( QListViewItem* ) ) );
89 connect( restoreSource, SIGNAL( activated( int ) ), this, SLOT( sourceDirChanged( int ) ) ); 89 connect( restoreSource, SIGNAL( activated( int ) ), this, SLOT( sourceDirChanged( int ) ) );
90 connect( addLocationButton, SIGNAL( clicked() ), this, SLOT( addLocation() ) ); 90 connect( addLocationButton, SIGNAL( clicked() ), this, SLOT( addLocation() ) );
91 connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) ); 91 connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) );
92 connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) ); 92 connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) );
93 93
94 //add directorys for backing up 94 //add directorys for backing up
95 applicationSettings = new QListViewItem(backupList, "Application Settings", "", "Settings/"); 95 applicationSettings = new QListViewItem(backupList, "Application Settings", "", "Settings/");
96 selectItem(applicationSettings); 96 selectItem(applicationSettings);
97 applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/"); 97 applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/");
98 selectItem(applicationSettings); 98 selectItem(applicationSettings);
99 documents= new QListViewItem(backupList, "Documents", "", "Documents/"); 99 documents= new QListViewItem(backupList, "Documents", "", "Documents/");
100 selectItem(documents); 100 selectItem(documents);
101 101
102 scanForApplicationSettings(); 102 scanForApplicationSettings();
103 refreshLocations(); 103 refreshLocations();
104 refreshBackupLocations(); 104 refreshBackupLocations();
105 sourceDirChanged(restoreSource->currentItem());
105 106
106 // Read the list of items to ignore. 107 // Read the list of items to ignore.
107 QList<QString> dontBackupList; 108 QList<QString> dontBackupList;
108 dontBackupList.setAutoDelete(true); 109 dontBackupList.setAutoDelete(true);
109 Config config("BackupAndRestore"); 110 Config config("BackupAndRestore");
110 config.setGroup("DontBackup"); 111 config.setGroup("DontBackup");
111 int total = config.readNumEntry("Total", 0); 112 int total = config.readNumEntry("Total", 0);
112 for(int i = 0; i < total; i++) 113 for(int i = 0; i < total; i++)
113 { 114 {
114 dontBackupList.append(new QString(config.readEntry(QString("%1").arg(i), ""))); 115 dontBackupList.append(new QString(config.readEntry(QString("%1").arg(i), "")));
115 } 116 }
116 117
117 QList<QListViewItem> list; 118 QList<QListViewItem> list;
118 getAllItems(backupList->firstChild(), list); 119 getAllItems(backupList->firstChild(), list);
119 120
120 for(uint i = 0; i < list.count(); i++) 121 for(uint i = 0; i < list.count(); i++)
121 { 122 {
122 QString text = list.at(i)->text(HEADER_NAME); 123 QString text = list.at(i)->text(HEADER_NAME);
123 for(uint i2 = 0; i2 < dontBackupList.count(); i2++) 124 for(uint i2 = 0; i2 < dontBackupList.count(); i2++)
124 { 125 {
125 if(*dontBackupList.at(i2) == text) 126 if(*dontBackupList.at(i2) == text)
126 { 127 {
127 selectItem(list.at(i)); 128 selectItem(list.at(i));
128 break; 129 break;
129 } 130 }
130 } 131 }
131 } 132 }
132 QPEApplication::showWidget( this ); 133 QPEApplication::showWidget( this );
133} 134}
134 135
135BackupAndRestore::~BackupAndRestore() 136BackupAndRestore::~BackupAndRestore()
136{ 137{
137 QList<QListViewItem> list; 138 QList<QListViewItem> list;
138 getAllItems(backupList->firstChild(), list); 139 getAllItems(backupList->firstChild(), list);
139 140
140 Config config("BackupAndRestore"); 141 Config config("BackupAndRestore");
141 config.setGroup("DontBackup"); 142 config.setGroup("DontBackup");
142 config.clearGroup(); 143 config.clearGroup();
143 144
144 int count = 0; 145 int count = 0;
145 for(uint i = 0; i < list.count(); i++) 146 for(uint i = 0; i < list.count(); i++)
146 { 147 {
147 if(list.at(i)->text(HEADER_BACKUP) == "") 148 if(list.at(i)->text(HEADER_BACKUP) == "")
148 { 149 {
149 config.writeEntry(QString("%1").arg(count), list.at(i)->text(HEADER_NAME)); 150 config.writeEntry(QString("%1").arg(count), list.at(i)->text(HEADER_NAME));
150 count++; 151 count++;
151 } 152 }
152 } 153 }