-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 8264410..fd29b51 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,52 +1,55 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.1.18 ************ | 3 | ********** VERSION 2.1.18 ************ |
4 | 4 | ||
5 | Pi-Sync mode: | ||
6 | The "Write back file" status dialog was updated too often such that writing back the file on the Z was very slow. Fixed. | ||
7 | |||
5 | KO/Pi: | 8 | KO/Pi: |
6 | 9 | ||
7 | 10 | ||
8 | ********** VERSION 2.1.17 ************ | 11 | ********** VERSION 2.1.17 ************ |
9 | 12 | ||
10 | KO/Pi: | 13 | KO/Pi: |
11 | Added option to display times in What's Next View on two lines. | 14 | Added option to display times in What's Next View on two lines. |
12 | (Useful for display on the Zaurus with 240x320 screen) | 15 | (Useful for display on the Zaurus with 240x320 screen) |
13 | Removed "Allday" for allday events of one day duration in What's Next View. | 16 | Removed "Allday" for allday events of one day duration in What's Next View. |
14 | Added date range for allday events of more than one day duration in What's Next View. | 17 | Added date range for allday events of more than one day duration in What's Next View. |
15 | Fixed two problems in the data importing from Outlook: | 18 | Fixed two problems in the data importing from Outlook: |
16 | Fixed the duplicated import if the summary, location or description had whitespaces at the end. | 19 | Fixed the duplicated import if the summary, location or description had whitespaces at the end. |
17 | Fixed a problem importing certain recurrence rules. | 20 | Fixed a problem importing certain recurrence rules. |
18 | 21 | ||
19 | A journal in an ics file may have no dtStart value (as files from KNotes, which stores its notes in an ics journal file). | 22 | A journal in an ics file may have no dtStart value (as files from KNotes, which stores its notes in an ics journal file). |
20 | If now a journal has no dtStart value the dtStart value is set to the created value of the journal when loading the file. That makes it possible to view and edit "notes" from KNotes. Simply add another Resource in KO/Pi which is a copy of the ics file from KNotes. You will find the "notes" in KO/Pi as a journal entry on the date you created it. | 23 | If now a journal has no dtStart value the dtStart value is set to the created value of the journal when loading the file. That makes it possible to view and edit "notes" from KNotes. Simply add another Resource in KO/Pi which is a copy of the ics file from KNotes. You will find the "notes" in KO/Pi as a journal entry on the date you created it. |
21 | 24 | ||
22 | And some minor fixes in KO/Pi. | 25 | And some minor fixes in KO/Pi. |
23 | 26 | ||
24 | Fixed a crash on the desktop when closing KO/Pi after accessing adressbook data (Linux + Windows ). | 27 | Fixed a crash on the desktop when closing KO/Pi after accessing adressbook data (Linux + Windows ). |
25 | 28 | ||
26 | 29 | ||
27 | ********** VERSION 2.1.16 ************ | 30 | ********** VERSION 2.1.16 ************ |
28 | 31 | ||
29 | Fixed a problem with the menu bar in KO/Pi and using the "Menu" hardware key on the Zaurus. | 32 | Fixed a problem with the menu bar in KO/Pi and using the "Menu" hardware key on the Zaurus. |
30 | Added columns for datetime in todo view: Last modified, created and last modified subtodo | 33 | Added columns for datetime in todo view: Last modified, created and last modified subtodo |
31 | Fixed a bug in agenda view displaying recurring multiday events which are longer than two days. | 34 | Fixed a bug in agenda view displaying recurring multiday events which are longer than two days. |
32 | Made conflict detection up to 4 times faster. | 35 | Made conflict detection up to 4 times faster. |
33 | 36 | ||
34 | ********** VERSION 2.1.15 ************ | 37 | ********** VERSION 2.1.15 ************ |
35 | 38 | ||
36 | Fixed two layout problems on the Z: | 39 | Fixed two layout problems on the Z: |
37 | Made the with of the newly added buttons on the Quick-Todo smaller. | 40 | Made the with of the newly added buttons on the Quick-Todo smaller. |
38 | Made listweek layout in 2 columns on the Z760 in portait screen and full menubar visible. | 41 | Made listweek layout in 2 columns on the Z760 in portait screen and full menubar visible. |
39 | 42 | ||
40 | 43 | ||
41 | ********** VERSION 2.1.14 ************ | 44 | ********** VERSION 2.1.14 ************ |
42 | 45 | ||
43 | Added some buttons to the KO/Pi Quick-todo line to make it possible to quickly access some todo view layout settings like display all flat/open/close and hide/show running/done. | 46 | Added some buttons to the KO/Pi Quick-todo line to make it possible to quickly access some todo view layout settings like display all flat/open/close and hide/show running/done. |
44 | Added a button to add a subtodo quickly. | 47 | Added a button to add a subtodo quickly. |
45 | 48 | ||
46 | Added a possibility to search for conflicting events. (In the Action menu. Keyboard shortcut "q", shift+q or ctrl +q ). | 49 | Added a possibility to search for conflicting events. (In the Action menu. Keyboard shortcut "q", shift+q or ctrl +q ). |
47 | Added an option to change the layout of the list week to column mode. | 50 | Added an option to change the layout of the list week to column mode. |
48 | 51 | ||
49 | Fixed some usability problems in pi-sync mode by adding some progress information about file transfer. | 52 | Fixed some usability problems in pi-sync mode by adding some progress information about file transfer. |
50 | 53 | ||
51 | Fixed pi-sync problems with the new multi calendar feature. | 54 | Fixed pi-sync problems with the new multi calendar feature. |
52 | Now pi-sync behaviour should be: | 55 | Now pi-sync behaviour should be: |
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index f2ee0ab..2a75bfb 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp | |||
@@ -1521,101 +1521,107 @@ void KCommandSocket::updateConnectDialog() | |||
1521 | mConnectProgress.setLabelText( i18n("Trying to connect to remote...") ); | 1521 | mConnectProgress.setLabelText( i18n("Trying to connect to remote...") ); |
1522 | } | 1522 | } |
1523 | //qDebug("updateConnectDialog() %d", mConnectCount); | 1523 | //qDebug("updateConnectDialog() %d", mConnectCount); |
1524 | mConnectProgress.raise(); | 1524 | mConnectProgress.raise(); |
1525 | mConnectProgress.setProgress( (mConnectMax - mConnectCount)%30 ); | 1525 | mConnectProgress.setProgress( (mConnectMax - mConnectCount)%30 ); |
1526 | --mConnectCount; | 1526 | --mConnectCount; |
1527 | if ( mConnectCount > 0 ) | 1527 | if ( mConnectCount > 0 ) |
1528 | mTimerSocket->start( 1000, true ); | 1528 | mTimerSocket->start( 1000, true ); |
1529 | else | 1529 | else |
1530 | deleteSocket(); | 1530 | deleteSocket(); |
1531 | 1531 | ||
1532 | } | 1532 | } |
1533 | void KCommandSocket::writeFile( QString fileName ) | 1533 | void KCommandSocket::writeFile( QString fileName ) |
1534 | { | 1534 | { |
1535 | if ( !mSocket ) { | 1535 | if ( !mSocket ) { |
1536 | mSocket = new QSocket( this ); | 1536 | mSocket = new QSocket( this ); |
1537 | connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); | 1537 | connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); |
1538 | connect( mSocket, SIGNAL(connected ()), this, SLOT(writeFileToSocket()) ); | 1538 | connect( mSocket, SIGNAL(connected ()), this, SLOT(writeFileToSocket()) ); |
1539 | } | 1539 | } |
1540 | mFileName = fileName ; | 1540 | mFileName = fileName ; |
1541 | mConnectCount = 30;mConnectMax = 30; | 1541 | mConnectCount = 30;mConnectMax = 30; |
1542 | mTimerSocket->start( 1000, true ); | 1542 | mTimerSocket->start( 1000, true ); |
1543 | mSocket->connectToHost( mHost, mPort ); | 1543 | mSocket->connectToHost( mHost, mPort ); |
1544 | } | 1544 | } |
1545 | void KCommandSocket::writeFileToSocket() | 1545 | void KCommandSocket::writeFileToSocket() |
1546 | { | 1546 | { |
1547 | mTimerSocket->stop(); | 1547 | mTimerSocket->stop(); |
1548 | QFile file2( mFileName ); | 1548 | QFile file2( mFileName ); |
1549 | if (!file2.open( IO_ReadOnly ) ) { | 1549 | if (!file2.open( IO_ReadOnly ) ) { |
1550 | mConnectProgress.hide(); | 1550 | mConnectProgress.hide(); |
1551 | mConnectCount = -1; | 1551 | mConnectCount = -1; |
1552 | mRetVal= errorW; | 1552 | mRetVal= errorW; |
1553 | mSocket->close(); | 1553 | mSocket->close(); |
1554 | if ( mSocket->state() == QSocket::Idle ) | 1554 | if ( mSocket->state() == QSocket::Idle ) |
1555 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); | 1555 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); |
1556 | return ; | 1556 | return ; |
1557 | } | 1557 | } |
1558 | mConnectProgress.setTotalSteps ( file2.size() ); | 1558 | mConnectProgress.setTotalSteps ( file2.size() ); |
1559 | mConnectProgress.show(); | 1559 | mConnectProgress.show(); |
1560 | int count = 0; | 1560 | int count = 0; |
1561 | mConnectProgress.setLabelText( i18n("Sending back synced file...") ); | 1561 | mConnectProgress.setLabelText( i18n("Sending back synced file...") ); |
1562 | mConnectProgress.setProgress( count ); | 1562 | mConnectProgress.setProgress( count ); |
1563 | mConnectProgress.blockSignals( true ); | 1563 | mConnectProgress.blockSignals( true ); |
1564 | QTextStream ts2( &file2 ); | 1564 | QTextStream ts2( &file2 ); |
1565 | ts2.setEncoding( QTextStream::Latin1 ); | 1565 | ts2.setEncoding( QTextStream::Latin1 ); |
1566 | QTextStream os2( mSocket ); | 1566 | QTextStream os2( mSocket ); |
1567 | os2.setEncoding( QTextStream::Latin1 ); | 1567 | os2.setEncoding( QTextStream::Latin1 ); |
1568 | os2 << "PUT " << mPassWord << "\r\n\r\n";; | 1568 | os2 << "PUT " << mPassWord << "\r\n\r\n";; |
1569 | int byteCount = 0; | ||
1570 | int byteMax = file2.size()/53; | ||
1569 | while ( ! ts2.atEnd() ) { | 1571 | while ( ! ts2.atEnd() ) { |
1570 | qApp->processEvents(); | 1572 | qApp->processEvents(); |
1571 | mConnectProgress.setProgress( count ); | 1573 | if ( byteCount > byteMax ) { |
1574 | byteCount = 0; | ||
1575 | mConnectProgress.setProgress( count ); | ||
1576 | } | ||
1572 | QString temp = ts2.readLine(); | 1577 | QString temp = ts2.readLine(); |
1573 | count += temp.length(); | 1578 | count += temp.length(); |
1579 | byteCount += temp.length(); | ||
1574 | os2 << temp << "\r\n"; | 1580 | os2 << temp << "\r\n"; |
1575 | } | 1581 | } |
1576 | file2.close(); | 1582 | file2.close(); |
1577 | mConnectProgress.hide(); | 1583 | mConnectProgress.hide(); |
1578 | mConnectCount = -1; | 1584 | mConnectCount = -1; |
1579 | os2 << "\r\n"; | 1585 | os2 << "\r\n"; |
1580 | mRetVal= successW; | 1586 | mRetVal= successW; |
1581 | mSocket->close(); | 1587 | mSocket->close(); |
1582 | if ( mSocket->state() == QSocket::Idle ) | 1588 | if ( mSocket->state() == QSocket::Idle ) |
1583 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); | 1589 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); |
1584 | mConnectProgress.blockSignals( false ); | 1590 | mConnectProgress.blockSignals( false ); |
1585 | } | 1591 | } |
1586 | void KCommandSocket::sendStop() | 1592 | void KCommandSocket::sendStop() |
1587 | { | 1593 | { |
1588 | if ( !mSocket ) { | 1594 | if ( !mSocket ) { |
1589 | mSocket = new QSocket( this ); | 1595 | mSocket = new QSocket( this ); |
1590 | connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); | 1596 | connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); |
1591 | } | 1597 | } |
1592 | mSocket->connectToHost( mHost, mPort ); | 1598 | mSocket->connectToHost( mHost, mPort ); |
1593 | QTextStream os2( mSocket ); | 1599 | QTextStream os2( mSocket ); |
1594 | os2.setEncoding( QTextStream::Latin1 ); | 1600 | os2.setEncoding( QTextStream::Latin1 ); |
1595 | os2 << "STOP\r\n\r\n"; | 1601 | os2 << "STOP\r\n\r\n"; |
1596 | mSocket->close(); | 1602 | mSocket->close(); |
1597 | if ( mSocket->state() == QSocket::Idle ) | 1603 | if ( mSocket->state() == QSocket::Idle ) |
1598 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); | 1604 | QTimer::singleShot( 10, this , SLOT ( deleteSocket())); |
1599 | } | 1605 | } |
1600 | 1606 | ||
1601 | void KCommandSocket::startReadFileFromSocket() | 1607 | void KCommandSocket::startReadFileFromSocket() |
1602 | { | 1608 | { |
1603 | if ( ! mFirst ) | 1609 | if ( ! mFirst ) |
1604 | return; | 1610 | return; |
1605 | mConnectProgress.setLabelText( i18n("Receiving file from remote...") ); | 1611 | mConnectProgress.setLabelText( i18n("Receiving file from remote...") ); |
1606 | mFirst = false; | 1612 | mFirst = false; |
1607 | mFileString = ""; | 1613 | mFileString = ""; |
1608 | mTime.start(); | 1614 | mTime.start(); |
1609 | mFirstLine = true; | 1615 | mFirstLine = true; |
1610 | QTimer::singleShot( 1, this , SLOT (readFileFromSocket( ) )); | 1616 | QTimer::singleShot( 1, this , SLOT (readFileFromSocket( ) )); |
1611 | 1617 | ||
1612 | } | 1618 | } |
1613 | void KCommandSocket::readFileFromSocket() | 1619 | void KCommandSocket::readFileFromSocket() |
1614 | { | 1620 | { |
1615 | //qDebug("readBackFileFromSocket() %d ", mTime.elapsed ()); | 1621 | //qDebug("readBackFileFromSocket() %d ", mTime.elapsed ()); |
1616 | while ( mSocket->canReadLine () ) { | 1622 | while ( mSocket->canReadLine () ) { |
1617 | mTime.restart(); | 1623 | mTime.restart(); |
1618 | QString line = mSocket->readLine (); | 1624 | QString line = mSocket->readLine (); |
1619 | if ( mFirstLine ) { | 1625 | if ( mFirstLine ) { |
1620 | mFirstLine = false; | 1626 | mFirstLine = false; |
1621 | if ( line.left( 6 ) == "ERROR_" ) { | 1627 | if ( line.left( 6 ) == "ERROR_" ) { |