summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-09 12:21:39 (UTC)
committer zautrix <zautrix>2005-02-09 12:21:39 (UTC)
commit940cdd0fd1349e7f8e53adff0595c1d946322ef1 (patch) (unidiff)
tree1a78f2c862afbc0d3c019c0905775782c906df64
parent968099947455adc0e8681aedf8c161327e311f38 (diff)
downloadkdepimpi-940cdd0fd1349e7f8e53adff0595c1d946322ef1.zip
kdepimpi-940cdd0fd1349e7f8e53adff0595c1d946322ef1.tar.gz
kdepimpi-940cdd0fd1349e7f8e53adff0595c1d946322ef1.tar.bz2
pisync fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt10
-rw-r--r--libkdepim/ksyncmanager.cpp45
-rw-r--r--libkdepim/ksyncmanager.h6
3 files changed, 43 insertions, 18 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 2275f3a..4f29ca3 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -845,390 +845,400 @@
845{ "yesterday","gestern" }, 845{ "yesterday","gestern" },
846{ "Ok","Ok" }, 846{ "Ok","Ok" },
847{ "Ok+Agenda","Ok+Agenda" }, 847{ "Ok+Agenda","Ok+Agenda" },
848{ "Email","Email" }, 848{ "Email","Email" },
849{ "RSVP","RSVP" }, 849{ "RSVP","RSVP" },
850{ "Email:","Email:" }, 850{ "Email:","Email:" },
851{ "Appointment Time ","Termin Zeit " }, 851{ "Appointment Time ","Termin Zeit " },
852{ "2","2" }, 852{ "2","2" },
853{ "3","3" }, 853{ "3","3" },
854{ "4","4" }, 854{ "4","4" },
855{ " 0 %"," 0 %" }, 855{ " 0 %"," 0 %" },
856{ " 20 %"," 20 %" }, 856{ " 20 %"," 20 %" },
857{ " 40 %"," 40 %" }, 857{ " 40 %"," 40 %" },
858{ " 60 %"," 60 %" }, 858{ " 60 %"," 60 %" },
859{ " 80 %"," 80 %" }, 859{ " 80 %"," 80 %" },
860{ "100 %","100 %" }, 860{ "100 %","100 %" },
861{ "Filter","Filter" }, 861{ "Filter","Filter" },
862{ "Configure","Konfiguriere" }, 862{ "Configure","Konfiguriere" },
863{ "What's Next","What's Next" }, 863{ "What's Next","What's Next" },
864{ "Complete calendar...","Kompletten Kalender..." }, 864{ "Complete calendar...","Kompletten Kalender..." },
865{ "Filtered calendar...","Gefilterten Kalender..." }, 865{ "Filtered calendar...","Gefilterten Kalender..." },
866{ "Export to phone","Exportiere zum Handy" }, 866{ "Export to phone","Exportiere zum Handy" },
867{ "Beam receive enabled","Beam Empfang an" }, 867{ "Beam receive enabled","Beam Empfang an" },
868{ "What's new?","Was ist neu?" }, 868{ "What's new?","Was ist neu?" },
869{ "FAQ...","FAQ..." }, 869{ "FAQ...","FAQ..." },
870{ "Licence...","Licence..." }, 870{ "Licence...","Licence..." },
871{ "What's This?","What's This?" }, 871{ "What's This?","What's This?" },
872{ "&Edit...","&Editiere..." }, 872{ "&Edit...","&Editiere..." },
873{ "Oktober","Oktober" }, 873{ "Oktober","Oktober" },
874{ "Title","Titel" }, 874{ "Title","Titel" },
875{ "%1 %","%1 %" }, 875{ "%1 %","%1 %" },
876{ "Enable Pi-Sync","Schalte Pi-Sync an" }, 876{ "Enable Pi-Sync","Schalte Pi-Sync an" },
877{ "Import!","Importiere!" }, 877{ "Import!","Importiere!" },
878{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, 878{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" },
879{ "Export to phone options","Export ans Handy Optionen" }, 879{ "Export to phone options","Export ans Handy Optionen" },
880{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, 880{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." },
881{ "I/O device: ","I/O device: " }, 881{ "I/O device: ","I/O device: " },
882{ "Connection: ","Connection: " }, 882{ "Connection: ","Connection: " },
883{ "Model(opt.): ","Model(opt.): " }, 883{ "Model(opt.): ","Model(opt.): " },
884{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, 884{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" },
885{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, 885{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " },
886{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, 886{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" },
887{ "Export to mobile phone!","Exportiere auf das Handy!" }, 887{ "Export to mobile phone!","Exportiere auf das Handy!" },
888{ "Export complete calendar","Exportiere kompletten Kalender" }, 888{ "Export complete calendar","Exportiere kompletten Kalender" },
889{ "Writing to phone...","Sende Daten ans Handy..." }, 889{ "Writing to phone...","Sende Daten ans Handy..." },
890{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, 890{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" },
891{ "Retry","Nochmal versuchen" }, 891{ "Retry","Nochmal versuchen" },
892{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, 892{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" },
893{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, 893{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" },
894{ "Error exporting to phone!","Fehler beim Export auf das Handy!" }, 894{ "Error exporting to phone!","Fehler beim Export auf das Handy!" },
895{ "Export filtered calendar","Exportiere gefilterten Kalender" }, 895{ "Export filtered calendar","Exportiere gefilterten Kalender" },
896{ "Preferences","Vorlieben" }, 896{ "Preferences","Vorlieben" },
897{ "Global","Global" }, 897{ "Global","Global" },
898{ "Phone","Phone" }, 898{ "Phone","Phone" },
899{ "SMS","SMS" }, 899{ "SMS","SMS" },
900{ "Fax","Fax" }, 900{ "Fax","Fax" },
901{ "Pager","Pager" }, 901{ "Pager","Pager" },
902{ "SIP","SIP" }, 902{ "SIP","SIP" },
903{ "Italian","Italienisch" }, 903{ "Italian","Italienisch" },
904{ "24:00","24:00" }, 904{ "24:00","24:00" },
905{ "12:00am","12:00am" }, 905{ "12:00am","12:00am" },
906{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, 906{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" },
907{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, 907{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" },
908{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, 908{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" },
909{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, 909{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" },
910{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, 910{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" },
911{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, 911{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" },
912{ "Used Mail Client","Benutzter Mail Client" }, 912{ "Used Mail Client","Benutzter Mail Client" },
913{ "Channel:","Channel:" }, 913{ "Channel:","Channel:" },
914{ "Message:","Message:" }, 914{ "Message:","Message:" },
915{ "Parameters:","Parameter:" }, 915{ "Parameters:","Parameter:" },
916{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, 916{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" },
917{ "extra Message:","extra Message:" }, 917{ "extra Message:","extra Message:" },
918{ "extra Parameters:","extra Parameter:" }, 918{ "extra Parameters:","extra Parameter:" },
919{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, 919{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" },
920{ "External Apps.","Externe Appl." }, 920{ "External Apps.","Externe Appl." },
921{ "24 hours","24 Std." }, 921{ "24 hours","24 Std." },
922{ "3 hours","3 Std." }, 922{ "3 hours","3 Std." },
923{ "1 hour","1 Std." }, 923{ "1 hour","1 Std." },
924{ "15 minutes","15 Min." }, 924{ "15 minutes","15 Min." },
925{ "5 minutes","5 Min." }, 925{ "5 minutes","5 Min." },
926{ "1 minute","1 Min." }, 926{ "1 minute","1 Min." },
927{ "23","23" }, 927{ "23","23" },
928{ "Mon 15","Mon 15" }, 928{ "Mon 15","Mon 15" },
929{ "Configure KO","Konfiguriere KO" }, 929{ "Configure KO","Konfiguriere KO" },
930{ "Event text","Termin Text" }, 930{ "Event text","Termin Text" },
931{ "ToDo","ToDo" }, 931{ "ToDo","ToDo" },
932{ "Today","Heute" }, 932{ "Today","Heute" },
933{ "What's Next View","What's Next Ansicht" }, 933{ "What's Next View","What's Next Ansicht" },
934{ "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, 934{ "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" },
935{ "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, 935{ "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" },
936{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, 936{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" },
937{ "Alarm","Alarm" }, 937{ "Alarm","Alarm" },
938{ "Used %1 Client","Benutzter %1 Client" }, 938{ "Used %1 Client","Benutzter %1 Client" },
939{ "No email client installed","Kein Email Klient installiert" }, 939{ "No email client installed","Kein Email Klient installiert" },
940{ "Userdefined email client","Benutzerdef. Email Klient" }, 940{ "Userdefined email client","Benutzerdef. Email Klient" },
941{ "OM/Pi email client","OM/Pi Email Klient" }, 941{ "OM/Pi email client","OM/Pi Email Klient" },
942{ "Include in multiple ","Beziehe in multiple " }, 942{ "Include in multiple ","Beziehe in multiple " },
943{ "calendar ","Kalender " }, 943{ "calendar ","Kalender " },
944{ "addressbook ","Adressbuch " }, 944{ "addressbook ","Adressbuch " },
945{ "pwmanager","PWmanager" }, 945{ "pwmanager","PWmanager" },
946{ " sync"," Sync ein" }, 946{ " sync"," Sync ein" },
947{ "Write back synced data","Schreibe gesyncte Daten zurück" }, 947{ "Write back synced data","Schreibe gesyncte Daten zurück" },
948{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, 948{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" },
949{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, 949{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" },
950{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, 950{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " },
951{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, 951{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" },
952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, 952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" },
953{ "Help...","Hilfe..." }, 953{ "Help...","Hilfe..." },
954{ "Local file Cal:","Lokale Datei Kal:" }, 954{ "Local file Cal:","Lokale Datei Kal:" },
955{ "Local file ABook:","Lokale Datei ABuch:" }, 955{ "Local file ABook:","Lokale Datei ABuch:" },
956{ "Local file PWMgr:","Lokale Datei PWMgr:" }, 956{ "Local file PWMgr:","Lokale Datei PWMgr:" },
957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, 957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" },
958{ "Calendar:","Kalender:" }, 958{ "Calendar:","Kalender:" },
959{ "AddressBook:","AdressBuch:" }, 959{ "AddressBook:","AdressBuch:" },
960{ "PWManager:","PWManager:" }, 960{ "PWManager:","PWManager:" },
961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, 961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" },
962{ "ssh/scp","ssh/scp" }, 962{ "ssh/scp","ssh/scp" },
963{ "ftp","ftp" }, 963{ "ftp","ftp" },
964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, 964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" },
965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, 965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" },
966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, 966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" },
967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, 967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" },
968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, 968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" },
969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, 969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" },
970{ "KDE-Pim sync config","KDE-Pim sync Konfig" }, 970{ "KDE-Pim sync config","KDE-Pim sync Konfig" },
971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, 971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" },
972{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, 972{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" },
973{ "Port number (Default: %1)","Port Nummer (Default: %1)" }, 973{ "Port number (Default: %1)","Port Nummer (Default: %1)" },
974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, 974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" },
975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, 975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" },
976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, 976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" },
977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, 977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" },
978{ "Disable Pi-Sync","Schalte Pi-Sync aus" }, 978{ "Disable Pi-Sync","Schalte Pi-Sync aus" },
979{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, 979{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" },
980{ "KDE-Pim Sync","KDE-Pim Sync" }, 980{ "KDE-Pim Sync","KDE-Pim Sync" },
981{ "Multiple profiles","Multi-Sync Profile" }, 981{ "Multiple profiles","Multi-Sync Profile" },
982{ "Device: ","Gerät: " }, 982{ "Device: ","Gerät: " },
983{ "Multiple sync started.","Multi-Sync gestartet." }, 983{ "Multiple sync started.","Multi-Sync gestartet." },
984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, 984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" },
985{ "Turn filter on","Schalte Filter an" }, 985{ "Turn filter on","Schalte Filter an" },
986{ "Turn filter off","Schalte Filter aus" }, 986{ "Turn filter off","Schalte Filter aus" },
987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, 987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" },
988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, 988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" },
989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, 989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" },
990{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, 990{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" },
991{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, 991{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" },
992{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, 992{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" },
993{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, 993{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" },
994{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, 994{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" },
995{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, 995{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" },
996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, 996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" },
997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, 997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" },
998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, 998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" },
999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, 999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" },
1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, 1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" },
1001{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, 1001{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" },
1002{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, 1002{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" },
1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, 1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" },
1004{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, 1004{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" },
1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, 1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" },
1006{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, 1006{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" },
1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, 1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" },
1008{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, 1008{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" },
1009{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, 1009{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" },
1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, 1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" },
1011{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, 1011{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" },
1012{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, 1012{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" },
1013{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, 1013{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" },
1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, 1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" },
1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, 1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" },
1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, 1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" },
1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, 1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" },
1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, 1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" },
1019{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, 1019{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" },
1020{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, 1020{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" },
1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, 1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" },
1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, 1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" },
1023{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, 1023{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" },
1024{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, 1024{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" },
1025{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, 1025{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" },
1026{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, 1026{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" },
1027{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, 1027{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" },
1028{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, 1028{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" },
1029{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, 1029{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" },
1030{ "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, 1030{ "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " },
1031{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, 1031{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" },
1032{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, 1032{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" },
1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, 1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" },
1034{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, 1034{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" },
1035{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, 1035{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" },
1036{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, 1036{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" },
1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, 1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" },
1038{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, 1038{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" },
1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, 1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" },
1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, 1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" },
1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, 1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" },
1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, 1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" },
1043{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, 1043{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" },
1044{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, 1044{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" },
1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, 1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" },
1046{ "KO/Pi FAQ","KO/Pi FAQ" }, 1046{ "KO/Pi FAQ","KO/Pi FAQ" },
1047{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, 1047{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" },
1048{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, 1048{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" },
1049{ "About KOrganizer/Pi","Über KOrganizer/Pi" }, 1049{ "About KOrganizer/Pi","Über KOrganizer/Pi" },
1050{ "From: ","Von: " }, 1050{ "From: ","Von: " },
1051{ "Remove sync info","Entferne Sync Info" }, 1051{ "Remove sync info","Entferne Sync Info" },
1052{ "For all profiles","Für alle Profile" }, 1052{ "For all profiles","Für alle Profile" },
1053{ "Hide not Running","Verstecke nicht Laufende" }, 1053{ "Hide not Running","Verstecke nicht Laufende" },
1054{ "ME","ME" }, 1054{ "ME","ME" },
1055{ "Toolbar","Toolbar" }, 1055{ "Toolbar","Toolbar" },
1056{ "Undo Delete...","Löschen rückgängig machen..." }, 1056{ "Undo Delete...","Löschen rückgängig machen..." },
1057{ "Undo Delete","Löschen rückgängig machen" }, 1057{ "Undo Delete","Löschen rückgängig machen" },
1058{ "KDE Sync HowTo...","KDE Sync HowTo..." }, 1058{ "KDE Sync HowTo...","KDE Sync HowTo..." },
1059{ "Multi Sync HowTo...","Multi Sync HowTo..." }, 1059{ "Multi Sync HowTo...","Multi Sync HowTo..." },
1060{ "Januar","Januar" }, 1060{ "Januar","Januar" },
1061{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, 1061{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" },
1062{ "No Filter","Kein Filter" }, 1062{ "No Filter","Kein Filter" },
1063{ "Multiple Sync options","Multi Sync Optionen" }, 1063{ "Multiple Sync options","Multi Sync Optionen" },
1064{ "Sync algo options","Sync Ablauf Optionen" }, 1064{ "Sync algo options","Sync Ablauf Optionen" },
1065{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, 1065{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" },
1066{ "Incoming calendar filter:","Eingehender Kalender Filter:" }, 1066{ "Incoming calendar filter:","Eingehender Kalender Filter:" },
1067{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, 1067{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" },
1068{ "Write back options","Optionen zum Zurückschreiben" }, 1068{ "Write back options","Optionen zum Zurückschreiben" },
1069{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, 1069{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" },
1070{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, 1070{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" },
1071{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, 1071{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" },
1072{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, 1072{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" },
1073{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, 1073{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" },
1074{ "Time period","Zeitspanne" }, 1074{ "Time period","Zeitspanne" },
1075{ "From ","Von " }, 1075{ "From ","Von " },
1076{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, 1076{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " },
1077{ " weeks in the future "," Wochen in der Zukunft " }, 1077{ " weeks in the future "," Wochen in der Zukunft " },
1078{ "Profile kind specific settings","Profil Art abhängige Einstellungen" }, 1078{ "Profile kind specific settings","Profil Art abhängige Einstellungen" },
1079{ "Local temp file:","Lokale temp Datei:" }, 1079{ "Local temp file:","Lokale temp Datei:" },
1080{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, 1080{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" },
1081{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, 1081{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" },
1082{ "Language","Sprache" }, 1082{ "Language","Sprache" },
1083{ "Time Format","Zeit Format" }, 1083{ "Time Format","Zeit Format" },
1084{ "Time Zone","Zeit Zone" }, 1084{ "Time Zone","Zeit Zone" },
1085{ "%1 groups subscribed","%1 Guppen abboniert" }, 1085{ "%1 groups subscribed","%1 Guppen abboniert" },
1086{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, 1086{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" },
1087{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, 1087{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" },
1088{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, 1088{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" },
1089{ "Save settings","Speichere Einstellungen" }, 1089{ "Save settings","Speichere Einstellungen" },
1090{ "Save standard","Speichere Standard" }, 1090{ "Save standard","Speichere Standard" },
1091{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, 1091{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" },
1092{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, 1092{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" },
1093{ "Data storage path","Daten Speicherpfad" }, 1093{ "Data storage path","Daten Speicherpfad" },
1094{ "Language","Sprache" }, 1094{ "Language","Sprache" },
1095{ "Show time in agenda items","Zeige Zeit in Agenda Items" }, 1095{ "Show time in agenda items","Zeige Zeit in Agenda Items" },
1096{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, 1096{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" },
1097{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, 1097{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" },
1098{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, 1098{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" },
1099{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, 1099{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" },
1100{ "KO/Pi","KO/Pi" }, 1100{ "KO/Pi","KO/Pi" },
1101{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, 1101{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" },
1102{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, 1102{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." },
1103{ "Sound.Al.: ","Sound.Al.: " }, 1103{ "Sound.Al.: ","Sound.Al.: " },
1104{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, 1104{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" },
1105{ "Restore","Wiederherstellen" }, 1105{ "Restore","Wiederherstellen" },
1106{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, 1106{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" },
1107{ "% completed","% komplett" }, 1107{ "% completed","% komplett" },
1108{ "%d item(s) found.","%d Item(s) gefunden." }, 1108{ "%d item(s) found.","%d Item(s) gefunden." },
1109{ "Set complete","Setze auf erledigt" }, 1109{ "Set complete","Setze auf erledigt" },
1110{ "(cancelled)","(gecancelt)" }, 1110{ "(cancelled)","(gecancelt)" },
1111{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, 1111{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" },
1112{ " Local time "," Locale Zeit " }, 1112{ " Local time "," Locale Zeit " },
1113{ "Form2","Form2" }, 1113{ "Form2","Form2" },
1114{ "Filter enabled","Filter angeschaltet" }, 1114{ "Filter enabled","Filter angeschaltet" },
1115{ "Edit Filters","Ändere Filter" }, 1115{ "Edit Filters","Ändere Filter" },
1116{ "Print What's Next View...","Drucke What's Next Ansicht..." }, 1116{ "Print What's Next View...","Drucke What's Next Ansicht..." },
1117{ "Agenda","Agenda" }, 1117{ "Agenda","Agenda" },
1118{ " ("," (" }, 1118{ " ("," (" },
1119{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, 1119{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" },
1120{ "Print","Print" }, 1120{ "Print","Print" },
1121{ "&Setup Printer...","Drucker &Setup..." }, 1121{ "&Setup Printer...","Drucker &Setup..." },
1122{ "View Type","Zeige Typ" }, 1122{ "View Type","Zeige Typ" },
1123{ "Page &orientation:","Seiten Ausrichtung:" }, 1123{ "Page &orientation:","Seiten Ausrichtung:" },
1124{ "Use Default of Selected Style","Default des selektierten Stils" }, 1124{ "Use Default of Selected Style","Default des selektierten Stils" },
1125{ "Use Default Setting of Printer","Default Einstellung des Druckers" }, 1125{ "Use Default Setting of Printer","Default Einstellung des Druckers" },
1126{ "Portrait","Portrait" }, 1126{ "Portrait","Portrait" },
1127{ "Landscape","Landschaft" }, 1127{ "Landscape","Landschaft" },
1128{ "Print day","Drucke Tag" }, 1128{ "Print day","Drucke Tag" },
1129{ "CalPrintDay_Base","CalPrintDay_Base" }, 1129{ "CalPrintDay_Base","CalPrintDay_Base" },
1130{ "Date && Time Range","Datum && Zeitspanne" }, 1130{ "Date && Time Range","Datum && Zeitspanne" },
1131{ "&End date:","&Enddatum:" }, 1131{ "&End date:","&Enddatum:" },
1132{ "&Start date:","&Startdatum:" }, 1132{ "&Start date:","&Startdatum:" },
1133{ "Start &time:","Startzeit:" }, 1133{ "Start &time:","Startzeit:" },
1134{ "End ti&me:","Endzeit:" }, 1134{ "End ti&me:","Endzeit:" },
1135{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, 1135{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" },
1136{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, 1136{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" },
1137{ "Alt+D","Alt+D" }, 1137{ "Alt+D","Alt+D" },
1138{ "&Use colors","Nutze Farben" }, 1138{ "&Use colors","Nutze Farben" },
1139{ "Alt+U","Alt+U" }, 1139{ "Alt+U","Alt+U" },
1140{ "Print week","Drucke Woche" }, 1140{ "Print week","Drucke Woche" },
1141{ "CalPrintWeek_Base","CalPrintWeek_Base" }, 1141{ "CalPrintWeek_Base","CalPrintWeek_Base" },
1142{ "Use &colors","Nutze Farben" }, 1142{ "Use &colors","Nutze Farben" },
1143{ "Type of View","Typ der Ansicht" }, 1143{ "Type of View","Typ der Ansicht" },
1144{ "Print as &Filofax page","Drucke als &Filofax Seite" }, 1144{ "Print as &Filofax page","Drucke als &Filofax Seite" },
1145{ "Alt+F","Alt+F" }, 1145{ "Alt+F","Alt+F" },
1146{ "Print as &timetable view:","Drucke als Zeittabelle:" }, 1146{ "Print as &timetable view:","Drucke als Zeittabelle:" },
1147{ "Alt+T","Alt+T" }, 1147{ "Alt+T","Alt+T" },
1148{ "Print as split week view","Drucke als gesplittete Wochenansicht" }, 1148{ "Print as split week view","Drucke als gesplittete Wochenansicht" },
1149{ "Print month","Drucke Monat" }, 1149{ "Print month","Drucke Monat" },
1150{ "CalPrintMonth_Base","CalPrintMonth_Base" }, 1150{ "CalPrintMonth_Base","CalPrintMonth_Base" },
1151{ "&Start month:","&Startmonat:" }, 1151{ "&Start month:","&Startmonat:" },
1152{ "&End month:","&Endmonat:" }, 1152{ "&End month:","&Endmonat:" },
1153{ "Print week &numbers","Drucke Wochen Nummer(n)" }, 1153{ "Print week &numbers","Drucke Wochen Nummer(n)" },
1154{ "Print todos","Drucke Todos" }, 1154{ "Print todos","Drucke Todos" },
1155{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, 1155{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" },
1156{ "Include &description of the item","Inclusive Itembeschreibung" }, 1156{ "Include &description of the item","Inclusive Itembeschreibung" },
1157{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, 1157{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" },
1158{ "Include &priority of the item","Inclusive Priorität des Items" }, 1158{ "Include &priority of the item","Inclusive Priorität des Items" },
1159{ "Items to Print","Zu druckende Items" }, 1159{ "Items to Print","Zu druckende Items" },
1160{ "&From:","Von:" }, 1160{ "&From:","Von:" },
1161{ "&To:","Bis:" }, 1161{ "&To:","Bis:" },
1162{ "Print &all todo items","Drucke alle Todo Items" }, 1162{ "Print &all todo items","Drucke alle Todo Items" },
1163{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, 1163{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" },
1164{ "Only items due in the &range:","Nur Items in dem Zeitraum:" }, 1164{ "Only items due in the &range:","Nur Items in dem Zeitraum:" },
1165{ "Todo List","Todo Liste" }, 1165{ "Todo List","Todo Liste" },
1166{ "&Title:","&Titel:" }, 1166{ "&Title:","&Titel:" },
1167{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, 1167{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" },
1168{ "Todo list","Todo Liste" }, 1168{ "Todo list","Todo Liste" },
1169{ "&Print...","Drucke..." }, 1169{ "&Print...","Drucke..." },
1170{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, 1170{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" },
1171{ "[Unconfigured]","[Unkonfiguriert]" }, 1171{ "[Unconfigured]","[Unkonfiguriert]" },
1172{ "OK","OK" }, 1172{ "OK","OK" },
1173{ "FilterEditor","FilterEditor" }, 1173{ "FilterEditor","FilterEditor" },
1174{ "Include","Inclusive" }, 1174{ "Include","Inclusive" },
1175{ "Exclude","Exclusive" }, 1175{ "Exclude","Exclusive" },
1176{ "Edit Selection...","Editiere Auswahl" }, 1176{ "Edit Selection...","Editiere Auswahl" },
1177{ "recurring events","wiederholende Termine" }, 1177{ "recurring events","wiederholende Termine" },
1178{ "recurr. events","wiederh.Termine" }, 1178{ "recurr. events","wiederh.Termine" },
1179{ "completed to-dos","erledigte Todos" }, 1179{ "completed to-dos","erledigte Todos" },
1180{ "events","Termine" }, 1180{ "events","Termine" },
1181{ "todos","Todos" }, 1181{ "todos","Todos" },
1182{ "journals","Journale" }, 1182{ "journals","Journale" },
1183{ "public","öffentl." }, 1183{ "public","öffentl." },
1184{ "private","privat" }, 1184{ "private","privat" },
1185{ "confidential","vertraul." }, 1185{ "confidential","vertraul." },
1186{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, 1186{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" },
1187{ "Yesterday","Gestern" }, 1187{ "Yesterday","Gestern" },
1188{ "Day after tomorrow","Übermorgen" }, 1188{ "Day after tomorrow","Übermorgen" },
1189{ "Tomorrow","Morgen" }, 1189{ "Tomorrow","Morgen" },
1190{ "Day before yesterday","Vorgestern" }, 1190{ "Day before yesterday","Vorgestern" },
1191{ "Size %1","Größe %1" }, 1191{ "Size %1","Größe %1" },
1192{ "New Agendasize: %1","Neue Agendagröße: %1" }, 1192{ "New Agendasize: %1","Neue Agendagröße: %1" },
1193{ " (%1 y.)"," (%1 J.)" }, 1193{ " (%1 y.)"," (%1 J.)" },
1194{ "Allday:","Ganztägig:" }, 1194{ "Allday:","Ganztägig:" },
1195{ "compl.todos","erled.Todos" }, 1195{ "compl.todos","erled.Todos" },
1196{ "Day view","Tagesansicht" }, 1196{ "Day view","Tagesansicht" },
1197{ "Next days","Nächste Tage" }, 1197{ "Next days","Nächste Tage" },
1198{ "Next week","Nächste Woche" }, 1198{ "Next week","Nächste Woche" },
1199{ "Next two weeks","Nächste zwei Wochen" }, 1199{ "Next two weeks","Nächste zwei Wochen" },
1200{ "Next month","Nächster Monat" }, 1200{ "Next month","Nächster Monat" },
1201{ "Journal view","Journal" }, 1201{ "Journal view","Journal" },
1202{ "Display all opened","Zeige alle geöffnet" }, 1202{ "Display all opened","Zeige alle geöffnet" },
1203{ "Display all closed","Zeige alle geschlossen" }, 1203{ "Display all closed","Zeige alle geschlossen" },
1204{ "Display all flat","Zeige alle flach" }, 1204{ "Display all flat","Zeige alle flach" },
1205{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, 1205{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" },
1206{ "Default todo done color:","Standard Todo erledigt Farbe" }, 1206{ "Default todo done color:","Standard Todo erledigt Farbe" },
1207{ "Select week %1-%2","Wähle Woche %1-%2" }, 1207{ "Select week %1-%2","Wähle Woche %1-%2" },
1208{ "Select Week","Wähle Woche" }, 1208{ "Select Week","Wähle Woche" },
1209{ "Set alarm for selected...","Setze Alarm für Selekt..." }, 1209{ "Set alarm for selected...","Setze Alarm für Selekt..." },
1210{ "Set Alarm!","Setze Alarm!" }, 1210{ "Set Alarm!","Setze Alarm!" },
1211{ "Canged alarm for %1 items","Alarm für %1 Items geändert" }, 1211{ "Canged alarm for %1 items","Alarm für %1 Items geändert" },
1212{ " and "," und " }, 1212{ " and "," und " },
1213{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, 1213{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" },
1214{ "Mail to selected","Mail an Ausgewählte" }, 1214{ "Mail to selected","Mail an Ausgewählte" },
1215{ "Mail to all","Mail an Alle" }, 1215{ "Mail to all","Mail an Alle" },
1216{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, 1216{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" },
1217{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, 1217{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" },
1218{ " on"," am" }, 1218{ " on"," am" },
1219{ " completed on "," erledigt am " }, 1219{ " completed on "," erledigt am " },
1220{ "Save as Event template","Speichere als Vorlage" }, 1220{ "Save as Event template","Speichere als Vorlage" },
1221{ "Load Event template","Lade Termin Vorlage" }, 1221{ "Load Event template","Lade Termin Vorlage" },
1222{ "Save as Journal template","Speichere als Journal Vorlage" }, 1222{ "Save as Journal template","Speichere als Journal Vorlage" },
1223{ "Insert Journal template","Füge Journal Vorlage ein" }, 1223{ "Insert Journal template","Füge Journal Vorlage ein" },
1224{ "Sub todos:<br>","Unter Todos:<br>" }, 1224{ "Sub todos:<br>","Unter Todos:<br>" },
1225{ "Parent todo:<br>","Über Todo:<br>" }, 1225{ "Parent todo:<br>","Über Todo:<br>" },
1226{ "Set current as color category","Setze Gewählte als Farbkategorie" }, 1226{ "Set current as color category","Setze Gewählte als Farbkategorie" },
1227{ " completed"," erledigt" }, 1227{ " completed"," erledigt" },
1228{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.net --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, 1228{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.net --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" },
1229{ "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." },
1230{ "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." },
1231{ "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." },
1232{ "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" },
1233{ "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." },
1234{ "Error","Fehler" },
1229{ "","" }, 1235{ "","" },
1230{ "","" }, 1236{ "","" },
1231{ "","" }, 1237{ "","" },
1232{ "","" }, 1238{ "","" },
1233{ "","" }, 1239{ "","" },
1234{ "","" }, 1240{ "","" },
1241{ "","" },
1242{ "","" },
1243{ "","" },
1244{ "","" }, \ No newline at end of file
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index df5a0d9..1f5f4c7 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -671,814 +671,825 @@ int KSyncManager::ringSync()
671 return syncedProfiles; 671 return syncedProfiles;
672} 672}
673 673
674void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) 674void KSyncManager::syncRemote( KSyncProfile* prof, bool ask)
675{ 675{
676 QString question; 676 QString question;
677 if ( ask ) { 677 if ( ask ) {
678 question = i18n("Do you really want\nto remote sync\nwith profile \n")+ prof->getName()+" ?\n"; 678 question = i18n("Do you really want\nto remote sync\nwith profile \n")+ prof->getName()+" ?\n";
679 if ( QMessageBox::information( mParent, i18n("Sync"), 679 if ( QMessageBox::information( mParent, i18n("Sync"),
680 question, 680 question,
681 i18n("Yes"), i18n("No"), 681 i18n("Yes"), i18n("No"),
682 0, 0 ) != 0 ) 682 0, 0 ) != 0 )
683 return; 683 return;
684 } 684 }
685 685
686 QString preCommand; 686 QString preCommand;
687 QString localTempFile; 687 QString localTempFile;
688 QString postCommand; 688 QString postCommand;
689 689
690 switch(mTargetApp) 690 switch(mTargetApp)
691 { 691 {
692 case (KAPI): 692 case (KAPI):
693 preCommand = prof->getPreSyncCommandAB(); 693 preCommand = prof->getPreSyncCommandAB();
694 postCommand = prof->getPostSyncCommandAB(); 694 postCommand = prof->getPostSyncCommandAB();
695 localTempFile = prof->getLocalTempFileAB(); 695 localTempFile = prof->getLocalTempFileAB();
696 break; 696 break;
697 case (KOPI): 697 case (KOPI):
698 preCommand = prof->getPreSyncCommand(); 698 preCommand = prof->getPreSyncCommand();
699 postCommand = prof->getPostSyncCommand(); 699 postCommand = prof->getPostSyncCommand();
700 localTempFile = prof->getLocalTempFile(); 700 localTempFile = prof->getLocalTempFile();
701 break; 701 break;
702 case (PWMPI): 702 case (PWMPI):
703 preCommand = prof->getPreSyncCommandPWM(); 703 preCommand = prof->getPreSyncCommandPWM();
704 postCommand = prof->getPostSyncCommandPWM(); 704 postCommand = prof->getPostSyncCommandPWM();
705 localTempFile = prof->getLocalTempFilePWM(); 705 localTempFile = prof->getLocalTempFilePWM();
706 break; 706 break;
707 default: 707 default:
708 qDebug("KSM::syncRemote: invalid apptype selected"); 708 qDebug("KSM::syncRemote: invalid apptype selected");
709 break; 709 break;
710 } 710 }
711 711
712 712
713 int fi; 713 int fi;
714 if ( (fi = preCommand.find("$PWD$")) > 0 ) { 714 if ( (fi = preCommand.find("$PWD$")) > 0 ) {
715 QString pwd = getPassword(); 715 QString pwd = getPassword();
716 preCommand = preCommand.left( fi )+ pwd + preCommand.mid( fi+5 ); 716 preCommand = preCommand.left( fi )+ pwd + preCommand.mid( fi+5 );
717 717
718 } 718 }
719 int maxlen = 30; 719 int maxlen = 30;
720 if ( QApplication::desktop()->width() > 320 ) 720 if ( QApplication::desktop()->width() > 320 )
721 maxlen += 25; 721 maxlen += 25;
722 mParent->topLevelWidget()->setCaption ( i18n( "Copy remote file to local machine..." ) ); 722 mParent->topLevelWidget()->setCaption ( i18n( "Copy remote file to local machine..." ) );
723 int fileSize = 0; 723 int fileSize = 0;
724 int result = system ( preCommand ); 724 int result = system ( preCommand );
725 // 0 : okay 725 // 0 : okay
726 // 256: no such file or dir 726 // 256: no such file or dir
727 // 727 //
728 qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result ); 728 qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result );
729 if ( result != 0 ) { 729 if ( result != 0 ) {
730 unsigned int len = maxlen; 730 unsigned int len = maxlen;
731 while ( len < preCommand.length() ) { 731 while ( len < preCommand.length() ) {
732 preCommand.insert( len , "\n" ); 732 preCommand.insert( len , "\n" );
733 len += maxlen +2; 733 len += maxlen +2;
734 } 734 }
735 question = i18n("Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n").arg (preCommand) ; 735 question = i18n("Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n").arg (preCommand) ;
736 QMessageBox::information( mParent, i18n("Sync - ERROR"), 736 QMessageBox::information( mParent, i18n("Sync - ERROR"),
737 question, 737 question,
738 i18n("Okay!")) ; 738 i18n("Okay!")) ;
739 mParent->topLevelWidget()->setCaption ("KDE-Pim"); 739 mParent->topLevelWidget()->setCaption ("KDE-Pim");
740 return; 740 return;
741 } 741 }
742 mParent->topLevelWidget()->setCaption ( i18n( "Copying succeed." ) ); 742 mParent->topLevelWidget()->setCaption ( i18n( "Copying succeed." ) );
743 //qDebug(" file **%s** ",prof->getLocalTempFile().latin1() ); 743 //qDebug(" file **%s** ",prof->getLocalTempFile().latin1() );
744 744
745 if ( syncWithFile( localTempFile, true ) ) { 745 if ( syncWithFile( localTempFile, true ) ) {
746 746
747 if ( mWriteBackFile ) { 747 if ( mWriteBackFile ) {
748 int fi; 748 int fi;
749 if ( (fi = postCommand.find("$PWD$")) > 0 ) { 749 if ( (fi = postCommand.find("$PWD$")) > 0 ) {
750 QString pwd = getPassword(); 750 QString pwd = getPassword();
751 postCommand = postCommand.left( fi )+ pwd + postCommand.mid( fi+5 ); 751 postCommand = postCommand.left( fi )+ pwd + postCommand.mid( fi+5 );
752 752
753 } 753 }
754 mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) ); 754 mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) );
755 result = system ( postCommand ); 755 result = system ( postCommand );
756 qDebug("KSM::Sync:Writing back file result: %d ", result); 756 qDebug("KSM::Sync:Writing back file result: %d ", result);
757 if ( result != 0 ) { 757 if ( result != 0 ) {
758 mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) ); 758 mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) );
759 return; 759 return;
760 } else { 760 } else {
761 mParent->topLevelWidget()->setCaption ( i18n( "Syncronization sucessfully completed" ) ); 761 mParent->topLevelWidget()->setCaption ( i18n( "Syncronization sucessfully completed" ) );
762 } 762 }
763 } 763 }
764 } 764 }
765 return; 765 return;
766} 766}
767bool KSyncManager::edit_pisync_options() 767bool KSyncManager::edit_pisync_options()
768{ 768{
769 QDialog dia( mParent, "dia", true ); 769 QDialog dia( mParent, "dia", true );
770 dia.setCaption( i18n("Pi-Sync options for device: " ) +mCurrentSyncDevice ); 770 dia.setCaption( i18n("Pi-Sync options for device: " ) +mCurrentSyncDevice );
771 QVBoxLayout lay ( &dia ); 771 QVBoxLayout lay ( &dia );
772 lay.setSpacing( 5 ); 772 lay.setSpacing( 5 );
773 lay.setMargin( 3 ); 773 lay.setMargin( 3 );
774 QLabel lab1 ( i18n("Password for remote access:"), &dia); 774 QLabel lab1 ( i18n("Password for remote access:"), &dia);
775 lay.addWidget( &lab1 ); 775 lay.addWidget( &lab1 );
776 QLineEdit le1 (&dia ); 776 QLineEdit le1 (&dia );
777 lay.addWidget( &le1 ); 777 lay.addWidget( &le1 );
778 QLabel lab2 ( i18n("Remote IP address:"), &dia); 778 QLabel lab2 ( i18n("Remote IP address:"), &dia);
779 lay.addWidget( &lab2 ); 779 lay.addWidget( &lab2 );
780 QLineEdit le2 (&dia ); 780 QLineEdit le2 (&dia );
781 lay.addWidget( &le2 ); 781 lay.addWidget( &le2 );
782 QLabel lab3 ( i18n("Remote port number:"), &dia); 782 QLabel lab3 ( i18n("Remote port number:"), &dia);
783 lay.addWidget( &lab3 ); 783 lay.addWidget( &lab3 );
784 QLineEdit le3 (&dia ); 784 QLineEdit le3 (&dia );
785 lay.addWidget( &le3 ); 785 lay.addWidget( &le3 );
786 QPushButton pb ( "OK", &dia); 786 QPushButton pb ( "OK", &dia);
787 lay.addWidget( &pb ); 787 lay.addWidget( &pb );
788 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); 788 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) );
789 le1.setText( mPassWordPiSync ); 789 le1.setText( mPassWordPiSync );
790 le2.setText( mActiveSyncIP ); 790 le2.setText( mActiveSyncIP );
791 le3.setText( mActiveSyncPort ); 791 le3.setText( mActiveSyncPort );
792 if ( dia.exec() ) { 792 if ( dia.exec() ) {
793 mPassWordPiSync = le1.text(); 793 mPassWordPiSync = le1.text();
794 mActiveSyncPort = le3.text(); 794 mActiveSyncPort = le3.text();
795 mActiveSyncIP = le2.text(); 795 mActiveSyncIP = le2.text();
796 return true; 796 return true;
797 } 797 }
798 return false; 798 return false;
799} 799}
800bool KSyncManager::edit_sync_options() 800bool KSyncManager::edit_sync_options()
801{ 801{
802 802
803 QDialog dia( mParent, "dia", true ); 803 QDialog dia( mParent, "dia", true );
804 dia.setCaption( i18n("Device: " ) +mCurrentSyncDevice ); 804 dia.setCaption( i18n("Device: " ) +mCurrentSyncDevice );
805 QButtonGroup gr ( 1, Qt::Horizontal, i18n("Sync preferences"), &dia); 805 QButtonGroup gr ( 1, Qt::Horizontal, i18n("Sync preferences"), &dia);
806 QVBoxLayout lay ( &dia ); 806 QVBoxLayout lay ( &dia );
807 lay.setSpacing( 2 ); 807 lay.setSpacing( 2 );
808 lay.setMargin( 3 ); 808 lay.setMargin( 3 );
809 lay.addWidget(&gr); 809 lay.addWidget(&gr);
810 QRadioButton loc ( i18n("Take local entry on conflict"), &gr ); 810 QRadioButton loc ( i18n("Take local entry on conflict"), &gr );
811 QRadioButton rem ( i18n("Take remote entry on conflict"), &gr ); 811 QRadioButton rem ( i18n("Take remote entry on conflict"), &gr );
812 QRadioButton newest( i18n("Take newest entry on conflict"), &gr ); 812 QRadioButton newest( i18n("Take newest entry on conflict"), &gr );
813 QRadioButton ask( i18n("Ask for every entry on conflict"), &gr ); 813 QRadioButton ask( i18n("Ask for every entry on conflict"), &gr );
814 QRadioButton f_loc( i18n("Force: Take local entry always"), &gr ); 814 QRadioButton f_loc( i18n("Force: Take local entry always"), &gr );
815 QRadioButton f_rem( i18n("Force: Take remote entry always"), &gr ); 815 QRadioButton f_rem( i18n("Force: Take remote entry always"), &gr );
816 //QRadioButton both( i18n("Take both on conflict"), &gr ); 816 //QRadioButton both( i18n("Take both on conflict"), &gr );
817 QPushButton pb ( "OK", &dia); 817 QPushButton pb ( "OK", &dia);
818 lay.addWidget( &pb ); 818 lay.addWidget( &pb );
819 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); 819 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) );
820 switch ( mSyncAlgoPrefs ) { 820 switch ( mSyncAlgoPrefs ) {
821 case 0: 821 case 0:
822 loc.setChecked( true); 822 loc.setChecked( true);
823 break; 823 break;
824 case 1: 824 case 1:
825 rem.setChecked( true ); 825 rem.setChecked( true );
826 break; 826 break;
827 case 2: 827 case 2:
828 newest.setChecked( true); 828 newest.setChecked( true);
829 break; 829 break;
830 case 3: 830 case 3:
831 ask.setChecked( true); 831 ask.setChecked( true);
832 break; 832 break;
833 case 4: 833 case 4:
834 f_loc.setChecked( true); 834 f_loc.setChecked( true);
835 break; 835 break;
836 case 5: 836 case 5:
837 f_rem.setChecked( true); 837 f_rem.setChecked( true);
838 break; 838 break;
839 case 6: 839 case 6:
840 // both.setChecked( true); 840 // both.setChecked( true);
841 break; 841 break;
842 default: 842 default:
843 break; 843 break;
844 } 844 }
845 if ( dia.exec() ) { 845 if ( dia.exec() ) {
846 mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ; 846 mSyncAlgoPrefs = rem.isChecked()*1+newest.isChecked()*2+ ask.isChecked()*3+ f_loc.isChecked()*4+ f_rem.isChecked()*5;//+ both.isChecked()*6 ;
847 return true; 847 return true;
848 } 848 }
849 return false; 849 return false;
850} 850}
851 851
852QString KSyncManager::getPassword( ) 852QString KSyncManager::getPassword( )
853{ 853{
854 QString retfile = ""; 854 QString retfile = "";
855 QDialog dia ( mParent, "input-dialog", true ); 855 QDialog dia ( mParent, "input-dialog", true );
856 QLineEdit lab ( &dia ); 856 QLineEdit lab ( &dia );
857 lab.setEchoMode( QLineEdit::Password ); 857 lab.setEchoMode( QLineEdit::Password );
858 QVBoxLayout lay( &dia ); 858 QVBoxLayout lay( &dia );
859 lay.setMargin(7); 859 lay.setMargin(7);
860 lay.setSpacing(7); 860 lay.setSpacing(7);
861 lay.addWidget( &lab); 861 lay.addWidget( &lab);
862 dia.setFixedSize( 230,50 ); 862 dia.setFixedSize( 230,50 );
863 dia.setCaption( i18n("Enter password") ); 863 dia.setCaption( i18n("Enter password") );
864 QPushButton pb ( "OK", &dia); 864 QPushButton pb ( "OK", &dia);
865 lay.addWidget( &pb ); 865 lay.addWidget( &pb );
866 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); 866 connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) );
867 dia.show(); 867 dia.show();
868 int res = dia.exec(); 868 int res = dia.exec();
869 if ( res ) 869 if ( res )
870 retfile = lab.text(); 870 retfile = lab.text();
871 dia.hide(); 871 dia.hide();
872 qApp->processEvents(); 872 qApp->processEvents();
873 return retfile; 873 return retfile;
874 874
875} 875}
876 876
877 877
878void KSyncManager::confSync() 878void KSyncManager::confSync()
879{ 879{
880 static KSyncPrefsDialog* sp = 0; 880 static KSyncPrefsDialog* sp = 0;
881 if ( ! sp ) { 881 if ( ! sp ) {
882 sp = new KSyncPrefsDialog( mParent, "syncprefs", true ); 882 sp = new KSyncPrefsDialog( mParent, "syncprefs", true );
883 } 883 }
884 sp->usrReadConfig(); 884 sp->usrReadConfig();
885#ifndef DESKTOP_VERSION 885#ifndef DESKTOP_VERSION
886 sp->showMaximized(); 886 sp->showMaximized();
887#else 887#else
888 sp->show(); 888 sp->show();
889#endif 889#endif
890 sp->exec(); 890 sp->exec();
891 QStringList oldSyncProfileNames = mSyncProfileNames; 891 QStringList oldSyncProfileNames = mSyncProfileNames;
892 mSyncProfileNames = sp->getSyncProfileNames(); 892 mSyncProfileNames = sp->getSyncProfileNames();
893 mLocalMachineName = sp->getLocalMachineName (); 893 mLocalMachineName = sp->getLocalMachineName ();
894 int ii; 894 int ii;
895 for ( ii = 0; ii < oldSyncProfileNames.count(); ++ii ) { 895 for ( ii = 0; ii < oldSyncProfileNames.count(); ++ii ) {
896 if ( ! mSyncProfileNames.contains( oldSyncProfileNames[ii] ) ) 896 if ( ! mSyncProfileNames.contains( oldSyncProfileNames[ii] ) )
897 mImplementation->removeSyncInfo( oldSyncProfileNames[ii] ); 897 mImplementation->removeSyncInfo( oldSyncProfileNames[ii] );
898 } 898 }
899 QTimer::singleShot ( 1, this, SLOT ( fillSyncMenu() ) ); 899 QTimer::singleShot ( 1, this, SLOT ( fillSyncMenu() ) );
900} 900}
901void KSyncManager::syncKDE() 901void KSyncManager::syncKDE()
902{ 902{
903 mSyncWithDesktop = true; 903 mSyncWithDesktop = true;
904 emit save(); 904 emit save();
905 switch(mTargetApp) 905 switch(mTargetApp)
906 { 906 {
907 case (KAPI): 907 case (KAPI):
908 { 908 {
909#ifdef DESKTOP_VERSION 909#ifdef DESKTOP_VERSION
910 QString command = qApp->applicationDirPath () + "/kdeabdump"; 910 QString command = qApp->applicationDirPath () + "/kdeabdump";
911#else 911#else
912 QString command = "kdeabdump"; 912 QString command = "kdeabdump";
913#endif 913#endif
914 if ( ! QFile::exists ( command ) ) 914 if ( ! QFile::exists ( command ) )
915 command = "kdeabdump"; 915 command = "kdeabdump";
916 QString fileName = QDir::homeDirPath ()+"/.kdeaddressbookdump.vcf"; 916 QString fileName = QDir::homeDirPath ()+"/.kdeaddressbookdump.vcf";
917 system ( command.latin1()); 917 system ( command.latin1());
918 if ( syncWithFile( fileName,true ) ) { 918 if ( syncWithFile( fileName,true ) ) {
919 if ( mWriteBackFile ) { 919 if ( mWriteBackFile ) {
920 command += " --read"; 920 command += " --read";
921 system ( command.latin1()); 921 system ( command.latin1());
922 } 922 }
923 } 923 }
924 924
925 } 925 }
926 break; 926 break;
927 case (KOPI): 927 case (KOPI):
928 { 928 {
929#ifdef DESKTOP_VERSION 929#ifdef DESKTOP_VERSION
930 QString command = qApp->applicationDirPath () + "/kdecaldump"; 930 QString command = qApp->applicationDirPath () + "/kdecaldump";
931#else 931#else
932 QString command = "kdecaldump"; 932 QString command = "kdecaldump";
933#endif 933#endif
934 if ( ! QFile::exists ( command ) ) 934 if ( ! QFile::exists ( command ) )
935 command = "kdecaldump"; 935 command = "kdecaldump";
936 QString fileName = QDir::homeDirPath ()+"/.kdecalendardump.ics"; 936 QString fileName = QDir::homeDirPath ()+"/.kdecalendardump.ics";
937 system ( command.latin1()); 937 system ( command.latin1());
938 if ( syncWithFile( fileName,true ) ) { 938 if ( syncWithFile( fileName,true ) ) {
939 if ( mWriteBackFile ) { 939 if ( mWriteBackFile ) {
940 command += " --read"; 940 command += " --read";
941 system ( command.latin1()); 941 system ( command.latin1());
942 } 942 }
943 } 943 }
944 944
945 } 945 }
946 break; 946 break;
947 case (PWMPI): 947 case (PWMPI):
948 948
949 break; 949 break;
950 default: 950 default:
951 qDebug("KSM::slotSyncMenu: invalid apptype selected"); 951 qDebug("KSM::slotSyncMenu: invalid apptype selected");
952 break; 952 break;
953 953
954 } 954 }
955} 955}
956 956
957void KSyncManager::syncSharp() 957void KSyncManager::syncSharp()
958{ 958{
959 959
960 if ( ! syncExternalApplication("sharp") ) 960 if ( ! syncExternalApplication("sharp") )
961 qDebug("KSM::ERROR sync sharp "); 961 qDebug("KSM::ERROR sync sharp ");
962} 962}
963 963
964bool KSyncManager::syncExternalApplication(QString resource) 964bool KSyncManager::syncExternalApplication(QString resource)
965{ 965{
966 966
967 emit save(); 967 emit save();
968 968
969 if ( mAskForPreferences ) 969 if ( mAskForPreferences )
970 if ( !edit_sync_options()) { 970 if ( !edit_sync_options()) {
971 mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); 971 mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") );
972 return false; 972 return false;
973 } 973 }
974 974
975 qDebug("KSM::Sync extern %s", resource.latin1()); 975 qDebug("KSM::Sync extern %s", resource.latin1());
976 976
977 bool syncOK = mImplementation->syncExternal(this, resource); 977 bool syncOK = mImplementation->syncExternal(this, resource);
978 978
979 return syncOK; 979 return syncOK;
980 980
981} 981}
982 982
983void KSyncManager::syncPhone() 983void KSyncManager::syncPhone()
984{ 984{
985 985
986 syncExternalApplication("phone"); 986 syncExternalApplication("phone");
987 987
988} 988}
989 989
990void KSyncManager::showProgressBar(int percentage, QString caption, int total) 990void KSyncManager::showProgressBar(int percentage, QString caption, int total)
991{ 991{
992 if (!bar->isVisible()) 992 if (!bar->isVisible())
993 { 993 {
994 bar->setCaption (caption); 994 bar->setCaption (caption);
995 bar->setTotalSteps ( total ) ; 995 bar->setTotalSteps ( total ) ;
996 bar->show(); 996 bar->show();
997 } 997 }
998 bar->raise(); 998 bar->raise();
999 bar->setProgress( percentage ); 999 bar->setProgress( percentage );
1000 qApp->processEvents(); 1000 qApp->processEvents();
1001} 1001}
1002 1002
1003void KSyncManager::hideProgressBar() 1003void KSyncManager::hideProgressBar()
1004{ 1004{
1005 bar->hide(); 1005 bar->hide();
1006 qApp->processEvents(); 1006 qApp->processEvents();
1007} 1007}
1008 1008
1009bool KSyncManager::isProgressBarCanceled() 1009bool KSyncManager::isProgressBarCanceled()
1010{ 1010{
1011 return !bar->isVisible(); 1011 return !bar->isVisible();
1012} 1012}
1013 1013
1014QString KSyncManager::syncFileName() 1014QString KSyncManager::syncFileName()
1015{ 1015{
1016 1016
1017 QString fn = "tempfile"; 1017 QString fn = "tempfile";
1018 switch(mTargetApp) 1018 switch(mTargetApp)
1019 { 1019 {
1020 case (KAPI): 1020 case (KAPI):
1021 fn = "tempsyncab.vcf"; 1021 fn = "tempsyncab.vcf";
1022 break; 1022 break;
1023 case (KOPI): 1023 case (KOPI):
1024 fn = "tempsynccal.ics"; 1024 fn = "tempsynccal.ics";
1025 break; 1025 break;
1026 case (PWMPI): 1026 case (PWMPI):
1027 fn = "tempsyncpw.pwm"; 1027 fn = "tempsyncpw.pwm";
1028 break; 1028 break;
1029 default: 1029 default:
1030 break; 1030 break;
1031 } 1031 }
1032#ifdef _WIN32_ 1032#ifdef _WIN32_
1033 return locateLocal( "tmp", fn ); 1033 return locateLocal( "tmp", fn );
1034#else 1034#else
1035 return (QString( "/tmp/" )+ fn ); 1035 return (QString( "/tmp/" )+ fn );
1036#endif 1036#endif
1037} 1037}
1038 1038
1039void KSyncManager::syncPi() 1039void KSyncManager::syncPi()
1040{ 1040{
1041 mIsKapiFile = true; 1041 mIsKapiFile = true;
1042 mPisyncFinished = false; 1042 mPisyncFinished = false;
1043 qApp->processEvents(); 1043 qApp->processEvents();
1044 if ( mAskForPreferences ) 1044 if ( mAskForPreferences )
1045 if ( !edit_pisync_options()) { 1045 if ( !edit_pisync_options()) {
1046 mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); 1046 mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") );
1047 return; 1047 return;
1048 } 1048 }
1049 bool ok; 1049 bool ok;
1050 Q_UINT16 port = mActiveSyncPort.toUInt(&ok); 1050 Q_UINT16 port = mActiveSyncPort.toUInt(&ok);
1051 if ( ! ok ) { 1051 if ( ! ok ) {
1052 mParent->topLevelWidget()->setCaption( i18n("Sorry, no valid port.Syncing cancelled.") ); 1052 mParent->topLevelWidget()->setCaption( i18n("Sorry, no valid port.Syncing cancelled.") );
1053 return; 1053 return;
1054 } 1054 }
1055 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, port, mActiveSyncIP, this ); 1055 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, port, mActiveSyncIP, this, mParent->topLevelWidget() );
1056 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int )), this, SLOT(deleteCommandSocket(KCommandSocket*, int)) ); 1056 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int )), this, SLOT(deleteCommandSocket(KCommandSocket*, int)) );
1057 mParent->topLevelWidget()->setCaption( i18n("Sending request for remote file ...") );
1058 commandSocket->readFile( syncFileName() ); 1057 commandSocket->readFile( syncFileName() );
1059} 1058}
1060 1059
1061void KSyncManager::deleteCommandSocket(KCommandSocket*s, int state) 1060void KSyncManager::deleteCommandSocket(KCommandSocket*s, int state)
1062{ 1061{
1063 //enum { success, errorW, errorR, quiet }; 1062 //enum { success, errorW, errorR, quiet };
1064 if ( state == KCommandSocket::errorR ||state == KCommandSocket::errorTO ) { 1063 if ( state == KCommandSocket::errorR ||state == KCommandSocket::errorTO ) {
1065 mParent->topLevelWidget()->setCaption( i18n("ERROR: Receiving remote file failed.") ); 1064 mParent->topLevelWidget()->setCaption( i18n("ERROR: Receiving remote file failed.") );
1066 delete s; 1065 delete s;
1067 if ( state == KCommandSocket::errorR ) { 1066 if ( state == KCommandSocket::errorR ) {
1068 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this ); 1067 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this, mParent->topLevelWidget());
1069 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int)), this, SLOT(deleteCommandSocket(KCommandSocket*, int )) ); 1068 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int)), this, SLOT(deleteCommandSocket(KCommandSocket*, int )) );
1070 commandSocket->sendStop(); 1069 commandSocket->sendStop();
1071 } 1070 }
1072 mPisyncFinished = true; 1071 mPisyncFinished = true;
1073 return; 1072 return;
1074 1073
1075 } else if ( state == KCommandSocket::errorW ) { 1074 } else if ( state == KCommandSocket::errorW ) {
1076 mParent->topLevelWidget()->setCaption( i18n("ERROR:Writing back file failed.") ); 1075 mParent->topLevelWidget()->setCaption( i18n("ERROR:Writing back file failed.") );
1077 mPisyncFinished = true; 1076 mPisyncFinished = true;
1078 1077
1079 } else if ( state == KCommandSocket::successR ) { 1078 } else if ( state == KCommandSocket::successR ) {
1080 QTimer::singleShot( 1, this , SLOT ( readFileFromSocket())); 1079 QTimer::singleShot( 1, this , SLOT ( readFileFromSocket()));
1081 1080
1082 } else if ( state == KCommandSocket::successW ) { 1081 } else if ( state == KCommandSocket::successW ) {
1083 mParent->topLevelWidget()->setCaption( i18n("Pi-Sync succesful!") ); 1082 mParent->topLevelWidget()->setCaption( i18n("Pi-Sync succesful!") );
1084 mPisyncFinished = true; 1083 mPisyncFinished = true;
1085 } 1084 }
1086 1085
1087 delete s; 1086 delete s;
1088} 1087}
1089 1088
1090void KSyncManager::readFileFromSocket() 1089void KSyncManager::readFileFromSocket()
1091{ 1090{
1092 QString fileName = syncFileName(); 1091 QString fileName = syncFileName();
1093 mParent->topLevelWidget()->setCaption( i18n("Remote file saved to temp file.") ); 1092 mParent->topLevelWidget()->setCaption( i18n("Remote file saved to temp file.") );
1094 if ( ! syncWithFile( fileName , true ) ) { 1093 if ( ! syncWithFile( fileName , true ) ) {
1095 mParent->topLevelWidget()->setCaption( i18n("Syncing failed.") ); 1094 mParent->topLevelWidget()->setCaption( i18n("Syncing failed.") );
1096 mPisyncFinished = true; 1095 mPisyncFinished = true;
1097 return; 1096 return;
1098 } 1097 }
1099 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this ); 1098 KCommandSocket* commandSocket = new KCommandSocket( mPassWordPiSync, mActiveSyncPort.toUInt(), mActiveSyncIP, this, mParent->topLevelWidget() );
1100 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int)), this, SLOT(deleteCommandSocket(KCommandSocket*, int )) ); 1099 connect( commandSocket, SIGNAL(commandFinished( KCommandSocket*, int)), this, SLOT(deleteCommandSocket(KCommandSocket*, int )) );
1101 if ( mWriteBackFile ) 1100 if ( mWriteBackFile )
1102 commandSocket->writeFile( fileName ); 1101 commandSocket->writeFile( fileName );
1103 else { 1102 else {
1104 commandSocket->sendStop(); 1103 commandSocket->sendStop();
1105 mParent->topLevelWidget()->setCaption( i18n("Pi-Sync succesful!") ); 1104 mParent->topLevelWidget()->setCaption( i18n("Pi-Sync succesful!") );
1106 mPisyncFinished = true; 1105 mPisyncFinished = true;
1107 } 1106 }
1108} 1107}
1109 1108
1110KServerSocket:: KServerSocket ( QString pw, Q_UINT16 port, int backlog, QObject * parent, const char * name ) : QServerSocket( port, backlog, parent, name ) 1109KServerSocket:: KServerSocket ( QString pw, Q_UINT16 port, int backlog, QObject * parent, const char * name ) : QServerSocket( port, backlog, parent, name )
1111{ 1110{
1112 mPassWord = pw; 1111 mPassWord = pw;
1113 mSocket = 0; 1112 mSocket = 0;
1114 mSyncActionDialog = 0; 1113 mSyncActionDialog = 0;
1115 blockRC = false; 1114 blockRC = false;
1116}; 1115};
1117 1116
1118void KServerSocket::newConnection ( int socket ) 1117void KServerSocket::newConnection ( int socket )
1119{ 1118{
1120 // qDebug("KServerSocket:New connection %d ", socket); 1119 // qDebug("KServerSocket:New connection %d ", socket);
1121 if ( mSocket ) { 1120 if ( mSocket ) {
1122 qDebug("KSS::newConnection Socket deleted! "); 1121 qDebug("KSS::newConnection Socket deleted! ");
1123 delete mSocket; 1122 delete mSocket;
1124 mSocket = 0; 1123 mSocket = 0;
1125 } 1124 }
1126 mSocket = new QSocket( this ); 1125 mSocket = new QSocket( this );
1127 connect( mSocket , SIGNAL(readyRead()), this, SLOT(readClient()) ); 1126 connect( mSocket , SIGNAL(readyRead()), this, SLOT(readClient()) );
1128 connect( mSocket , SIGNAL(delayedCloseFinished()), this, SLOT(discardClient()) ); 1127 connect( mSocket , SIGNAL(delayedCloseFinished()), this, SLOT(discardClient()) );
1129 mSocket->setSocket( socket ); 1128 mSocket->setSocket( socket );
1130} 1129}
1131 1130
1132void KServerSocket::discardClient() 1131void KServerSocket::discardClient()
1133{ 1132{
1134 //qDebug(" KServerSocket::discardClient()"); 1133 //qDebug(" KServerSocket::discardClient()");
1135 if ( mSocket ) { 1134 if ( mSocket ) {
1136 delete mSocket; 1135 delete mSocket;
1137 mSocket = 0; 1136 mSocket = 0;
1138 } 1137 }
1139 //emit endConnect(); 1138 //emit endConnect();
1140} 1139}
1141void KServerSocket::readClient() 1140void KServerSocket::readClient()
1142{ 1141{
1143 if ( blockRC ) 1142 if ( blockRC )
1144 return; 1143 return;
1145 if ( mSocket == 0 ) { 1144 if ( mSocket == 0 ) {
1146 qDebug("ERROR::KSS::readClient(): mSocket == 0 "); 1145 qDebug("ERROR::KSS::readClient(): mSocket == 0 ");
1147 return; 1146 return;
1148 } 1147 }
1149 //qDebug("KServerSocket::readClient()"); 1148 //qDebug("KServerSocket::readClient()");
1150 if ( mSocket->canReadLine() ) { 1149 if ( mSocket->canReadLine() ) {
1151 QString line = mSocket->readLine(); 1150 QString line = mSocket->readLine();
1152 //qDebug("KServerSocket readline: %s ", line.latin1()); 1151 //qDebug("KServerSocket readline: %s ", line.latin1());
1153 QStringList tokens = QStringList::split( QRegExp("[ \r\n][ \r\n]*"), line ); 1152 QStringList tokens = QStringList::split( QRegExp("[ \r\n][ \r\n]*"), line );
1154 if ( tokens[0] == "GET" ) { 1153 if ( tokens[0] == "GET" ) {
1155 if ( tokens[1] == mPassWord ) { 1154 if ( tokens[1] == mPassWord ) {
1156 //emit sendFile( mSocket ); 1155 //emit sendFile( mSocket );
1157 bool ok = false; 1156 bool ok = false;
1158 QDateTime dt = KGlobal::locale()->readDateTime( tokens[2], KLocale::ISODate, &ok); 1157 QDateTime dt = KGlobal::locale()->readDateTime( tokens[2], KLocale::ISODate, &ok);
1159 if ( ok ) { 1158 if ( ok ) {
1160 KSyncManager::mRequestedSyncEvent = dt; 1159 KSyncManager::mRequestedSyncEvent = dt;
1161 } 1160 }
1162 else 1161 else
1163 KSyncManager::mRequestedSyncEvent = QDateTime(); 1162 KSyncManager::mRequestedSyncEvent = QDateTime();
1164 send_file(); 1163 send_file();
1165 } 1164 }
1166 else { 1165 else {
1167 KMessageBox::error( 0, i18n("Got send file request\nwith invalid password")); 1166 KMessageBox::error( 0, i18n("Got send file request\nwith invalid password"));
1168 //qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() ); 1167 //qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() );
1169 } 1168 }
1170 } 1169 }
1171 if ( tokens[0] == "PUT" ) { 1170 if ( tokens[0] == "PUT" ) {
1172 if ( tokens[1] == mPassWord ) { 1171 if ( tokens[1] == mPassWord ) {
1173 //emit getFile( mSocket ); 1172 //emit getFile( mSocket );
1174 blockRC = true; 1173 blockRC = true;
1175 get_file(); 1174 get_file();
1176 } 1175 }
1177 else { 1176 else {
1178 KMessageBox::error( 0, i18n("Got receive file request\nwith invalid password")); 1177 KMessageBox::error( 0, i18n("Got receive file request\nwith invalid password"));
1179 //qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() ); 1178 //qDebug("password %s, invalid password %s ",mPassWord.latin1(), tokens[1].latin1() );
1180 } 1179 }
1181 } 1180 }
1182 if ( tokens[0] == "STOP" ) { 1181 if ( tokens[0] == "STOP" ) {
1183 //emit endConnect(); 1182 //emit endConnect();
1184 end_connect(); 1183 end_connect();
1185 } 1184 }
1186 } 1185 }
1187} 1186}
1188void KServerSocket::end_connect() 1187void KServerSocket::end_connect()
1189{ 1188{
1190 delete mSyncActionDialog; 1189 delete mSyncActionDialog;
1191 mSyncActionDialog = 0; 1190 mSyncActionDialog = 0;
1192} 1191}
1193void KServerSocket::send_file() 1192void KServerSocket::send_file()
1194{ 1193{
1195 //qDebug("MainWindow::sendFile(QSocket* s) "); 1194 //qDebug("MainWindow::sendFile(QSocket* s) ");
1196 if ( mSyncActionDialog ) 1195 if ( mSyncActionDialog )
1197 delete mSyncActionDialog; 1196 delete mSyncActionDialog;
1198 mSyncActionDialog = new QDialog ( 0, "input-dialog", true ); 1197 mSyncActionDialog = new QDialog ( 0, "input-dialog", true );
1199 mSyncActionDialog->setCaption(i18n("Received sync request")); 1198 mSyncActionDialog->setCaption(i18n("Received sync request"));
1200 QLabel* label = new QLabel( i18n("Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog."), mSyncActionDialog ); 1199 QLabel* label = new QLabel( i18n("Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog."), mSyncActionDialog );
1201 label->setAlignment ( Qt::AlignHCenter ); 1200 label->setAlignment ( Qt::AlignHCenter );
1202 QVBoxLayout* lay = new QVBoxLayout( mSyncActionDialog ); 1201 QVBoxLayout* lay = new QVBoxLayout( mSyncActionDialog );
1203 lay->addWidget( label); 1202 lay->addWidget( label);
1204 lay->setMargin(7); 1203 lay->setMargin(7);
1205 lay->setSpacing(7); 1204 lay->setSpacing(7);
1206 if ( KSyncManager::mRequestedSyncEvent.isValid() ) { 1205 if ( KSyncManager::mRequestedSyncEvent.isValid() ) {
1207 int secs = QDateTime::currentDateTime().secsTo( KSyncManager::mRequestedSyncEvent ); 1206 int secs = QDateTime::currentDateTime().secsTo( KSyncManager::mRequestedSyncEvent );
1208 if ( secs < 0 ) 1207 if ( secs < 0 )
1209 secs = secs * (-1); 1208 secs = secs * (-1);
1210 if ( secs > 30 ) 1209 if ( secs > 30 )
1211 //if ( true ) 1210 //if ( true )
1212 { 1211 {
1213 QString warning = i18n("Clock skew of\nsyncing devices\nis %1 seconds!").arg( secs ); 1212 QString warning = i18n("Clock skew of\nsyncing devices\nis %1 seconds!").arg( secs );
1214 QLabel* label = new QLabel( warning, mSyncActionDialog ); 1213 QLabel* label = new QLabel( warning, mSyncActionDialog );
1215 label->setAlignment ( Qt::AlignHCenter ); 1214 label->setAlignment ( Qt::AlignHCenter );
1216 lay->addWidget( label); 1215 lay->addWidget( label);
1217 if ( secs > 180 ) 1216 if ( secs > 180 )
1218 { 1217 {
1219 if ( secs > 300 ) { 1218 if ( secs > 300 ) {
1220 if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(0, i18n("The clocks of the syncing\ndevices have a difference\n of more than 5 minutes.\nPlease adjust your clocks.\n<b>You may get wrong syncing results!<\b>\nPlease confirm synchronization!"), i18n("High clock skew!"),i18n("Synchronize!"))) { 1219 if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(0, i18n("The clocks of the syncing\ndevices have a difference\n of more than 5 minutes.\nPlease adjust your clocks.\n<b>You may get wrong syncing results!<\b>\nPlease confirm synchronization!"), i18n("High clock skew!"),i18n("Synchronize!"))) {
1221 qDebug("KSS::Sync cancelled ,cs"); 1220 qDebug("KSS::Sync cancelled ,cs");
1222 return ; 1221 return ;
1223 } 1222 }
1224 } 1223 }
1225 QFont f = label->font(); 1224 QFont f = label->font();
1226 f.setPointSize ( f.pointSize() *2 ); 1225 f.setPointSize ( f.pointSize() *2 );
1227 f. setBold (true ); 1226 f. setBold (true );
1228 QLabel* label = new QLabel( warning, mSyncActionDialog ); 1227 QLabel* label = new QLabel( warning, mSyncActionDialog );
1229 label->setFont( f ); 1228 label->setFont( f );
1230 warning = i18n("ADJUST\nYOUR\nCLOCKS!"); 1229 warning = i18n("ADJUST\nYOUR\nCLOCKS!");
1231 label->setText( warning ); 1230 label->setText( warning );
1232 label->setAlignment ( Qt::AlignHCenter ); 1231 label->setAlignment ( Qt::AlignHCenter );
1233 lay->addWidget( label); 1232 lay->addWidget( label);
1234 mSyncActionDialog->setFixedSize( 230, 300); 1233 mSyncActionDialog->setFixedSize( 230, 300);
1235 } else { 1234 } else {
1236 mSyncActionDialog->setFixedSize( 230, 200); 1235 mSyncActionDialog->setFixedSize( 230, 200);
1237 } 1236 }
1238 } else { 1237 } else {
1239 mSyncActionDialog->setFixedSize( 230, 120); 1238 mSyncActionDialog->setFixedSize( 230, 120);
1240 } 1239 }
1241 } else 1240 } else
1242 mSyncActionDialog->setFixedSize( 230, 120); 1241 mSyncActionDialog->setFixedSize( 230, 120);
1243 mSyncActionDialog->show(); 1242 mSyncActionDialog->show();
1244 mSyncActionDialog->raise(); 1243 mSyncActionDialog->raise();
1245 emit request_file(); 1244 emit request_file();
1246 qApp->processEvents(); 1245 qApp->processEvents();
1247 QString fileName = mFileName; 1246 QString fileName = mFileName;
1248 QFile file( fileName ); 1247 QFile file( fileName );
1249 if (!file.open( IO_ReadOnly ) ) { 1248 if (!file.open( IO_ReadOnly ) ) {
1250 delete mSyncActionDialog; 1249 delete mSyncActionDialog;
1251 mSyncActionDialog = 0; 1250 mSyncActionDialog = 0;
1252 qDebug("KSS::error open sync file: %s ", fileName.latin1()); 1251 qDebug("KSS::error open sync file: %s ", fileName.latin1());
1253 mSocket->close(); 1252 mSocket->close();
1254 if ( mSocket->state() == QSocket::Idle ) 1253 if ( mSocket->state() == QSocket::Idle )
1255 QTimer::singleShot( 10, this , SLOT ( discardClient())); 1254 QTimer::singleShot( 10, this , SLOT ( discardClient()));
1256 return ; 1255 return ;
1257 1256
1258 } 1257 }
1259 mSyncActionDialog->setCaption( i18n("Sending file...") ); 1258 mSyncActionDialog->setCaption( i18n("Sending file...") );
1260 QTextStream ts( &file ); 1259 QTextStream ts( &file );
1261 ts.setEncoding( QTextStream::Latin1 ); 1260 ts.setEncoding( QTextStream::Latin1 );
1262 1261
1263 QTextStream os( mSocket ); 1262 QTextStream os( mSocket );
1264 os.setEncoding( QTextStream::Latin1 ); 1263 os.setEncoding( QTextStream::Latin1 );
1265 while ( ! ts.atEnd() ) { 1264 while ( ! ts.atEnd() ) {
1266 os << ts.readLine() << "\r\n"; 1265 os << ts.readLine() << "\r\n\r\n";
1267 } 1266 }
1268 //os << ts.read(); 1267 //os << ts.read();
1269 file.close(); 1268 file.close();
1270 mSyncActionDialog->setCaption( i18n("Waiting for synced file...") ); 1269 mSyncActionDialog->setCaption( i18n("Waiting for synced file...") );
1271 mSocket->close(); 1270 mSocket->close();
1272 if ( mSocket->state() == QSocket::Idle ) 1271 if ( mSocket->state() == QSocket::Idle )
1273 QTimer::singleShot( 10, this , SLOT ( discardClient())); 1272 QTimer::singleShot( 10, this , SLOT ( discardClient()));
1274} 1273}
1275void KServerSocket::get_file() 1274void KServerSocket::get_file()
1276{ 1275{
1277 mSyncActionDialog->setCaption( i18n("Receiving synced file...") ); 1276 mSyncActionDialog->setCaption( i18n("Receiving synced file...") );
1278 1277
1279 piTime.start(); 1278 piTime.start();
1280 piFileString = ""; 1279 piFileString = "";
1281 QTimer::singleShot( 1, this , SLOT (readBackFileFromSocket( ) )); 1280 QTimer::singleShot( 1, this , SLOT (readBackFileFromSocket( ) ));
1282} 1281}
1283 1282
1284 1283
1285void KServerSocket::readBackFileFromSocket() 1284void KServerSocket::readBackFileFromSocket()
1286{ 1285{
1287 //qDebug("readBackFileFromSocket() %d ", piTime.elapsed ()); 1286 //qDebug("readBackFileFromSocket() %d ", piTime.elapsed ());
1288 while ( mSocket->canReadLine () ) { 1287 while ( mSocket->canReadLine () ) {
1289 piTime.restart(); 1288 piTime.restart();
1290 QString line = mSocket->readLine (); 1289 QString line = mSocket->readLine ();
1291 piFileString += line; 1290 piFileString += line;
1292 //qDebug("readline: %s ", line.latin1()); 1291 //qDebug("readline: %s ", line.latin1());
1293 mSyncActionDialog->setCaption( i18n("Received %1 bytes").arg( piFileString.length() ) ); 1292 mSyncActionDialog->setCaption( i18n("Received %1 bytes").arg( piFileString.length() ) );
1294 1293
1295 } 1294 }
1296 if ( piTime.elapsed () < 3000 ) { 1295 if ( piTime.elapsed () < 3000 ) {
1297 // wait for more 1296 // wait for more
1298 //qDebug("waitformore "); 1297 //qDebug("waitformore ");
1299 QTimer::singleShot( 100, this , SLOT (readBackFileFromSocket( ) )); 1298 QTimer::singleShot( 100, this , SLOT (readBackFileFromSocket( ) ));
1300 return; 1299 return;
1301 } 1300 }
1302 QString fileName = mFileName; 1301 QString fileName = mFileName;
1303 QFile file ( fileName ); 1302 QFile file ( fileName );
1304 if (!file.open( IO_WriteOnly ) ) { 1303 if (!file.open( IO_WriteOnly ) ) {
1305 delete mSyncActionDialog; 1304 delete mSyncActionDialog;
1306 mSyncActionDialog = 0; 1305 mSyncActionDialog = 0;
1307 qDebug("KSS:Error open read back file "); 1306 qDebug("KSS:Error open read back file ");
1308 piFileString = ""; 1307 piFileString = "";
1309 emit file_received( false ); 1308 emit file_received( false );
1310 blockRC = false; 1309 blockRC = false;
1311 return ; 1310 return ;
1312 1311
1313 } 1312 }
1314 1313
1315 // mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1)); 1314 // mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1));
1316 QTextStream ts ( &file ); 1315 QTextStream ts ( &file );
1317 ts.setEncoding( QTextStream::Latin1 ); 1316 ts.setEncoding( QTextStream::Latin1 );
1318 mSyncActionDialog->setCaption( i18n("Writing file to disk...") ); 1317 mSyncActionDialog->setCaption( i18n("Writing file to disk...") );
1319 ts << piFileString; 1318 ts << piFileString;
1320 mSocket->close(); 1319 mSocket->close();
1321 if ( mSocket->state() == QSocket::Idle ) 1320 if ( mSocket->state() == QSocket::Idle )
1322 QTimer::singleShot( 10, this , SLOT ( discardClient())); 1321 QTimer::singleShot( 10, this , SLOT ( discardClient()));
1323 file.close(); 1322 file.close();
1324 piFileString = ""; 1323 piFileString = "";
1325 emit file_received( true ); 1324 emit file_received( true );
1326 delete mSyncActionDialog; 1325 delete mSyncActionDialog;
1327 mSyncActionDialog = 0; 1326 mSyncActionDialog = 0;
1328 blockRC = false; 1327 blockRC = false;
1329 1328
1330} 1329}
1331 1330
1332KCommandSocket::KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent, const char * name ): QObject( parent, name ) 1331KCommandSocket::KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent, QWidget * cap, const char * name ): QObject( parent, name )
1333{ 1332{
1334 mPassWord = password; 1333 mPassWord = password;
1335 mSocket = 0; 1334 mSocket = 0;
1335 mFirst = false;
1336 mPort = port; 1336 mPort = port;
1337 mHost = host; 1337 mHost = host;
1338 1338 tlw = cap;
1339 mRetVal = quiet; 1339 mRetVal = quiet;
1340 mTimerSocket = new QTimer ( this ); 1340 mTimerSocket = new QTimer ( this );
1341 connect( mTimerSocket, SIGNAL ( timeout () ), this, SLOT ( deleteSocket() ) ); 1341 connect( mTimerSocket, SIGNAL ( timeout () ), this, SLOT ( deleteSocket() ) );
1342} 1342}
1343void KCommandSocket::sendFileRequest()
1344{
1345 if ( tlw )
1346 tlw->setCaption( i18n("Connected! Sending request for remote file ...") );
1347 mTimerSocket->start( 300000 );
1348 QTextStream os( mSocket );
1349 os.setEncoding( QTextStream::Latin1 );
1350
1351 QString curDt = " " +KGlobal::locale()->formatDateTime(QDateTime::currentDateTime().addSecs(-1),true, true,KLocale::ISODate );
1352 os << "GET " << mPassWord << curDt <<"\r\n\r\n";
1353}
1354
1343void KCommandSocket::readFile( QString fn ) 1355void KCommandSocket::readFile( QString fn )
1344{ 1356{
1345 if ( !mSocket ) { 1357 if ( !mSocket ) {
1346 mSocket = new QSocket( this ); 1358 mSocket = new QSocket( this );
1347 connect( mSocket, SIGNAL(readyRead()), this, SLOT(startReadFileFromSocket()) ); 1359 connect( mSocket, SIGNAL(readyRead()), this, SLOT(startReadFileFromSocket()) );
1348 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); 1360 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) );
1361 connect( mSocket, SIGNAL(connected ()), this, SLOT(sendFileRequest() ));
1349 } 1362 }
1350 mFileString = ""; 1363 mFileString = "";
1351 mFileName = fn; 1364 mFileName = fn;
1352 mFirst = true; 1365 mFirst = true;
1366 if ( tlw )
1367 tlw->setCaption( i18n("Trying to connect to remote...") );
1353 mSocket->connectToHost( mHost, mPort ); 1368 mSocket->connectToHost( mHost, mPort );
1354 QTextStream os( mSocket ); 1369 qDebug("KSS: Waiting for connection");
1355 os.setEncoding( QTextStream::Latin1 ); 1370 mTimerSocket->start( 20000 );
1356
1357 QString curDt = " " +KGlobal::locale()->formatDateTime(QDateTime::currentDateTime().addSecs(-1),true, true,KLocale::ISODate );
1358 os << "GET " << mPassWord << curDt <<"\r\n";
1359 mTimerSocket->start( 300000 );
1360} 1371}
1361 1372
1362void KCommandSocket::writeFile( QString fileName ) 1373void KCommandSocket::writeFile( QString fileName )
1363{ 1374{
1364 if ( !mSocket ) { 1375 if ( !mSocket ) {
1365 mSocket = new QSocket( this ); 1376 mSocket = new QSocket( this );
1366 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); 1377 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) );
1367 connect( mSocket, SIGNAL(connected ()), this, SLOT(writeFileToSocket()) ); 1378 connect( mSocket, SIGNAL(connected ()), this, SLOT(writeFileToSocket()) );
1368 } 1379 }
1369 mFileName = fileName ; 1380 mFileName = fileName ;
1370 mSocket->connectToHost( mHost, mPort ); 1381 mSocket->connectToHost( mHost, mPort );
1371} 1382}
1372void KCommandSocket::writeFileToSocket() 1383void KCommandSocket::writeFileToSocket()
1373{ 1384{
1374 QFile file2( mFileName ); 1385 QFile file2( mFileName );
1375 if (!file2.open( IO_ReadOnly ) ) { 1386 if (!file2.open( IO_ReadOnly ) ) {
1376 mRetVal= errorW; 1387 mRetVal= errorW;
1377 mSocket->close(); 1388 mSocket->close();
1378 if ( mSocket->state() == QSocket::Idle ) 1389 if ( mSocket->state() == QSocket::Idle )
1379 QTimer::singleShot( 10, this , SLOT ( deleteSocket())); 1390 QTimer::singleShot( 10, this , SLOT ( deleteSocket()));
1380 return ; 1391 return ;
1381 } 1392 }
1382 QTextStream ts2( &file2 ); 1393 QTextStream ts2( &file2 );
1383 ts2.setEncoding( QTextStream::Latin1 ); 1394 ts2.setEncoding( QTextStream::Latin1 );
1384 QTextStream os2( mSocket ); 1395 QTextStream os2( mSocket );
1385 os2.setEncoding( QTextStream::Latin1 ); 1396 os2.setEncoding( QTextStream::Latin1 );
1386 os2 << "PUT " << mPassWord << "\r\n";; 1397 os2 << "PUT " << mPassWord << "\r\n\r\n";;
1387 while ( ! ts2.atEnd() ) { 1398 while ( ! ts2.atEnd() ) {
1388 os2 << ts2.readLine() << "\r\n"; 1399 os2 << ts2.readLine() << "\r\n\r\n";
1389 } 1400 }
1390 mRetVal= successW; 1401 mRetVal= successW;
1391 file2.close(); 1402 file2.close();
1392 mSocket->close(); 1403 mSocket->close();
1393 if ( mSocket->state() == QSocket::Idle ) 1404 if ( mSocket->state() == QSocket::Idle )
1394 QTimer::singleShot( 10, this , SLOT ( deleteSocket())); 1405 QTimer::singleShot( 10, this , SLOT ( deleteSocket()));
1395} 1406}
1396void KCommandSocket::sendStop() 1407void KCommandSocket::sendStop()
1397{ 1408{
1398 if ( !mSocket ) { 1409 if ( !mSocket ) {
1399 mSocket = new QSocket( this ); 1410 mSocket = new QSocket( this );
1400 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); 1411 connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) );
1401 } 1412 }
1402 mSocket->connectToHost( mHost, mPort ); 1413 mSocket->connectToHost( mHost, mPort );
1403 QTextStream os2( mSocket ); 1414 QTextStream os2( mSocket );
1404 os2.setEncoding( QTextStream::Latin1 ); 1415 os2.setEncoding( QTextStream::Latin1 );
1405 os2 << "STOP\r\n"; 1416 os2 << "STOP\r\n\r\n";
1406 mSocket->close(); 1417 mSocket->close();
1407 if ( mSocket->state() == QSocket::Idle ) 1418 if ( mSocket->state() == QSocket::Idle )
1408 QTimer::singleShot( 10, this , SLOT ( deleteSocket())); 1419 QTimer::singleShot( 10, this , SLOT ( deleteSocket()));
1409} 1420}
1410 1421
1411void KCommandSocket::startReadFileFromSocket() 1422void KCommandSocket::startReadFileFromSocket()
1412{ 1423{
1413 if ( ! mFirst ) 1424 if ( ! mFirst )
1414 return; 1425 return;
1415 mFirst = false; 1426 mFirst = false;
1416 mTimerSocket->stop(); 1427 mTimerSocket->stop();
1417 mFileString = ""; 1428 mFileString = "";
1418 mTime.start(); 1429 mTime.start();
1419 QTimer::singleShot( 1, this , SLOT (readFileFromSocket( ) )); 1430 QTimer::singleShot( 1, this , SLOT (readFileFromSocket( ) ));
1420 1431
1421} 1432}
1422void KCommandSocket::readFileFromSocket() 1433void KCommandSocket::readFileFromSocket()
1423{ 1434{
1424 //qDebug("readBackFileFromSocket() %d ", mTime.elapsed ()); 1435 //qDebug("readBackFileFromSocket() %d ", mTime.elapsed ());
1425 while ( mSocket->canReadLine () ) { 1436 while ( mSocket->canReadLine () ) {
1426 mTime.restart(); 1437 mTime.restart();
1427 QString line = mSocket->readLine (); 1438 QString line = mSocket->readLine ();
1428 mFileString += line; 1439 mFileString += line;
1429 //qDebug("readline: %s ", line.latin1()); 1440 //qDebug("readline: %s ", line.latin1());
1430 } 1441 }
1431 if ( mTime.elapsed () < 3000 ) { 1442 if ( mTime.elapsed () < 3000 ) {
1432 // wait for more 1443 // wait for more
1433 //qDebug("waitformore "); 1444 //qDebug("waitformore ");
1434 QTimer::singleShot( 100, this , SLOT (readFileFromSocket( ) )); 1445 QTimer::singleShot( 100, this , SLOT (readFileFromSocket( ) ));
1435 return; 1446 return;
1436 } 1447 }
1437 QString fileName = mFileName; 1448 QString fileName = mFileName;
1438 QFile file ( fileName ); 1449 QFile file ( fileName );
1439 if (!file.open( IO_WriteOnly ) ) { 1450 if (!file.open( IO_WriteOnly ) ) {
1440 mFileString = ""; 1451 mFileString = "";
1441 mRetVal = errorR; 1452 mRetVal = errorR;
1442 qDebug("KSS:Error open temp sync file for writing: %s",fileName.latin1() ); 1453 qDebug("KSS:Error open temp sync file for writing: %s",fileName.latin1() );
1443 deleteSocket(); 1454 deleteSocket();
1444 return ; 1455 return ;
1445 1456
1446 } 1457 }
1447 // mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1)); 1458 // mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1));
1448 QTextStream ts ( &file ); 1459 QTextStream ts ( &file );
1449 ts.setEncoding( QTextStream::Latin1 ); 1460 ts.setEncoding( QTextStream::Latin1 );
1450 ts << mFileString; 1461 ts << mFileString;
1451 file.close(); 1462 file.close();
1452 mFileString = ""; 1463 mFileString = "";
1453 mRetVal = successR; 1464 mRetVal = successR;
1454 mSocket->close(); 1465 mSocket->close();
1455 // if state is not idle, deleteSocket(); is called via 1466 // if state is not idle, deleteSocket(); is called via
1456 // connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) ); 1467 // connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) );
1457 if ( mSocket->state() == QSocket::Idle ) 1468 if ( mSocket->state() == QSocket::Idle )
1458 deleteSocket(); 1469 deleteSocket();
1459} 1470}
1460 1471
1461void KCommandSocket::deleteSocket() 1472void KCommandSocket::deleteSocket()
1462{ 1473{
1463 //qDebug("KCommandSocket::deleteSocket() "); 1474 //qDebug("KCommandSocket::deleteSocket() ");
1464 if ( mTimerSocket->isActive () ) { 1475 if ( mTimerSocket->isActive () ) {
1465 mTimerSocket->stop(); 1476 mTimerSocket->stop();
1466 mRetVal = errorTO; 1477 mRetVal = errorTO;
1467 qDebug("KCS::Connection to remote host timed out"); 1478 qDebug("KCS::Connection to remote host timed out");
1468 if ( mSocket ) { 1479 if ( mSocket ) {
1469 mSocket->close(); 1480 mSocket->close();
1470 //if ( mSocket->state() == QSocket::Idle ) 1481 //if ( mSocket->state() == QSocket::Idle )
1471 // deleteSocket(); 1482 // deleteSocket();
1472 delete mSocket; 1483 delete mSocket;
1473 mSocket = 0; 1484 mSocket = 0;
1474 } 1485 }
1475 KMessageBox::error( 0, i18n("Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host? ")); 1486 KMessageBox::error( 0, i18n("Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?"));
1476 emit commandFinished( this, mRetVal ); 1487 emit commandFinished( this, mRetVal );
1477 return; 1488 return;
1478 } 1489 }
1479 //qDebug("KCommandSocket::deleteSocket() %d", mRetVal ); 1490 //qDebug("KCommandSocket::deleteSocket() %d", mRetVal );
1480 if ( mSocket) 1491 if ( mSocket)
1481 delete mSocket; 1492 delete mSocket;
1482 mSocket = 0; 1493 mSocket = 0;
1483 emit commandFinished( this, mRetVal ); 1494 emit commandFinished( this, mRetVal );
1484} 1495}
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h
index 6d89950..9a3066e 100644
--- a/libkdepim/ksyncmanager.h
+++ b/libkdepim/ksyncmanager.h
@@ -1,221 +1,225 @@
1/* 1/*
2 This file is part of KDE-Pim/Pi. 2 This file is part of KDE-Pim/Pi.
3 Copyright (c) 2004 Ulf Schenk 3 Copyright (c) 2004 Ulf Schenk
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 19
20 $Id$ 20 $Id$
21*/ 21*/
22#ifndef _KSYNCMANAGER_H 22#ifndef _KSYNCMANAGER_H
23#define _KSYNCMANAGER_H 23#define _KSYNCMANAGER_H
24 24
25#include <qobject.h> 25#include <qobject.h>
26#include <qstring.h> 26#include <qstring.h>
27#include <qsocket.h> 27#include <qsocket.h>
28#include <qdatetime.h> 28#include <qdatetime.h>
29#include <qserversocket.h> 29#include <qserversocket.h>
30#include <qtextstream.h> 30#include <qtextstream.h>
31#include <qregexp.h> 31#include <qregexp.h>
32 32
33class QPopupMenu; 33class QPopupMenu;
34class KSyncProfile; 34class KSyncProfile;
35class KPimPrefs; 35class KPimPrefs;
36class QWidget; 36class QWidget;
37class KSyncManager; 37class KSyncManager;
38class KSyncInterface; 38class KSyncInterface;
39class QProgressBar; 39class QProgressBar;
40 40
41 41
42class KServerSocket : public QServerSocket 42class KServerSocket : public QServerSocket
43{ 43{
44 Q_OBJECT 44 Q_OBJECT
45 45
46 public: 46 public:
47 KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 ); 47 KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 );
48 48
49 void newConnection ( int socket ) ; 49 void newConnection ( int socket ) ;
50 void setFileName( QString fn ) {mFileName = fn;}; 50 void setFileName( QString fn ) {mFileName = fn;};
51 signals: 51 signals:
52 void file_received( bool ); 52 void file_received( bool );
53 void request_file(); 53 void request_file();
54 void saveFile(); 54 void saveFile();
55 void endConnect(); 55 void endConnect();
56 private slots: 56 private slots:
57 void discardClient(); 57 void discardClient();
58 void readClient(); 58 void readClient();
59 void readBackFileFromSocket(); 59 void readBackFileFromSocket();
60 private : 60 private :
61 bool blockRC; 61 bool blockRC;
62 void send_file(); 62 void send_file();
63 void get_file(); 63 void get_file();
64 void end_connect(); 64 void end_connect();
65 QDialog* mSyncActionDialog; 65 QDialog* mSyncActionDialog;
66 QSocket* mSocket; 66 QSocket* mSocket;
67 QString mPassWord; 67 QString mPassWord;
68 QString mFileName; 68 QString mFileName;
69 QTime piTime; 69 QTime piTime;
70 QString piFileString; 70 QString piFileString;
71}; 71};
72 72
73class KCommandSocket : public QObject 73class KCommandSocket : public QObject
74{ 74{
75 Q_OBJECT 75 Q_OBJECT
76 public: 76 public:
77 enum state { successR, errorR, successW, errorW, errorTO, quiet }; 77 enum state { successR, errorR, successW, errorW, errorTO, quiet };
78 KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); 78 KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, QWidget* cap = 0, const char * name=0 );
79 void readFile( QString ); 79 void readFile( QString );
80 void writeFile( QString ); 80 void writeFile( QString );
81 void sendStop(); 81 void sendStop();
82
83 private slots :
84 void sendFileRequest();
82 85
83 signals: 86 signals:
84 void commandFinished( KCommandSocket*, int ); 87 void commandFinished( KCommandSocket*, int );
85 private slots: 88 private slots:
86 void startReadFileFromSocket(); 89 void startReadFileFromSocket();
87 void readFileFromSocket(); 90 void readFileFromSocket();
88 void deleteSocket(); 91 void deleteSocket();
89 void writeFileToSocket(); 92 void writeFileToSocket();
90 private : 93 private :
94 QWidget* tlw;
91 QSocket* mSocket; 95 QSocket* mSocket;
92 QString mPassWord; 96 QString mPassWord;
93 Q_UINT16 mPort; 97 Q_UINT16 mPort;
94 QString mHost; 98 QString mHost;
95 QString mFileName; 99 QString mFileName;
96 QTimer* mTimerSocket; 100 QTimer* mTimerSocket;
97 int mRetVal; 101 int mRetVal;
98 QTime mTime; 102 QTime mTime;
99 QString mFileString; 103 QString mFileString;
100 bool mFirst; 104 bool mFirst;
101}; 105};
102 106
103 107
104class KSyncManager : public QObject 108class KSyncManager : public QObject
105{ 109{
106 Q_OBJECT 110 Q_OBJECT
107 111
108 public: 112 public:
109 enum TargetApp { 113 enum TargetApp {
110 KOPI = 0, 114 KOPI = 0,
111 KAPI = 1, 115 KAPI = 1,
112 PWMPI = 2 }; 116 PWMPI = 2 };
113 117
114 KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu); 118 KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu);
115 ~KSyncManager() ; 119 ~KSyncManager() ;
116 120
117 void multiSync( bool askforPrefs ); 121 void multiSync( bool askforPrefs );
118 bool blockSave() { return mBlockSaveFlag; } 122 bool blockSave() { return mBlockSaveFlag; }
119 void setBlockSave(bool sa) { mBlockSaveFlag = sa; } 123 void setBlockSave(bool sa) { mBlockSaveFlag = sa; }
120 void setDefaultFileName( QString s) { mDefFileName = s ;} 124 void setDefaultFileName( QString s) { mDefFileName = s ;}
121 QString defaultFileName() { return mDefFileName ;} 125 QString defaultFileName() { return mDefFileName ;}
122 QString syncFileName(); 126 QString syncFileName();
123 void enableQuick( bool ask = true); 127 void enableQuick( bool ask = true);
124 128
125 bool syncWithDesktop () { return mSyncWithDesktop;} 129 bool syncWithDesktop () { return mSyncWithDesktop;}
126 QString getCurrentSyncDevice() { return mCurrentSyncDevice; } 130 QString getCurrentSyncDevice() { return mCurrentSyncDevice; }
127 QString getCurrentSyncName() { return mCurrentSyncName; } 131 QString getCurrentSyncName() { return mCurrentSyncName; }
128 132
129 void showProgressBar(int percentage, QString caption = QString::null, int total=100); 133 void showProgressBar(int percentage, QString caption = QString::null, int total=100);
130 void hideProgressBar(); 134 void hideProgressBar();
131 bool isProgressBarCanceled(); 135 bool isProgressBarCanceled();
132 136
133 // sync stuff 137 // sync stuff
134 QString mLocalMachineName; 138 QString mLocalMachineName;
135 QStringList mExternSyncProfiles; 139 QStringList mExternSyncProfiles;
136 QStringList mSyncProfileNames; 140 QStringList mSyncProfileNames;
137 bool mAskForPreferences; 141 bool mAskForPreferences;
138 bool mShowSyncSummary; 142 bool mShowSyncSummary;
139 bool mIsKapiFile; 143 bool mIsKapiFile;
140 bool mWriteBackExistingOnly; 144 bool mWriteBackExistingOnly;
141 int mSyncAlgoPrefs; 145 int mSyncAlgoPrefs;
142 bool mWriteBackFile; 146 bool mWriteBackFile;
143 int mWriteBackInFuture; 147 int mWriteBackInFuture;
144 int mWriteBackInPast; 148 int mWriteBackInPast;
145 QString mPhoneDevice; 149 QString mPhoneDevice;
146 QString mPhoneConnection; 150 QString mPhoneConnection;
147 QString mPhoneModel; 151 QString mPhoneModel;
148 QString mPassWordPiSync; 152 QString mPassWordPiSync;
149 QString mActiveSyncPort; 153 QString mActiveSyncPort;
150 QString mActiveSyncIP ; 154 QString mActiveSyncIP ;
151 QString mFilterInCal; 155 QString mFilterInCal;
152 QString mFilterOutCal; 156 QString mFilterOutCal;
153 QString mFilterInAB; 157 QString mFilterInAB;
154 QString mFilterOutAB; 158 QString mFilterOutAB;
155 static QDateTime mRequestedSyncEvent; 159 static QDateTime mRequestedSyncEvent;
156 160
157 signals: 161 signals:
158 void save(); 162 void save();
159 void request_file(); 163 void request_file();
160 void getFile( bool ); 164 void getFile( bool );
161 165
162 public slots: 166 public slots:
163 void slotSyncMenu( int ); 167 void slotSyncMenu( int );
164 void slotClearMenu( int action ); 168 void slotClearMenu( int action );
165 void deleteCommandSocket(KCommandSocket*s, int state); 169 void deleteCommandSocket(KCommandSocket*s, int state);
166 void readFileFromSocket(); 170 void readFileFromSocket();
167 void fillSyncMenu(); 171 void fillSyncMenu();
168 172
169 private: 173 private:
170 void syncPi(); 174 void syncPi();
171 KServerSocket * mServerSocket; 175 KServerSocket * mServerSocket;
172 KPimPrefs* mPrefs; 176 KPimPrefs* mPrefs;
173 QString mDefFileName; 177 QString mDefFileName;
174 QString mCurrentSyncDevice; 178 QString mCurrentSyncDevice;
175 QString mCurrentSyncName; 179 QString mCurrentSyncName;
176 void quickSyncLocalFile(); 180 void quickSyncLocalFile();
177 bool syncWithFile( QString fn , bool quick ); 181 bool syncWithFile( QString fn , bool quick );
178 void syncLocalFile(); 182 void syncLocalFile();
179 void syncPhone(); 183 void syncPhone();
180 void syncSharp(); 184 void syncSharp();
181 void syncKDE(); 185 void syncKDE();
182 bool syncExternalApplication(QString); 186 bool syncExternalApplication(QString);
183 int mCurrentSyncProfile ; 187 int mCurrentSyncProfile ;
184 void syncRemote( KSyncProfile* prof, bool ask = true); 188 void syncRemote( KSyncProfile* prof, bool ask = true);
185 bool edit_sync_options(); 189 bool edit_sync_options();
186 bool edit_pisync_options(); 190 bool edit_pisync_options();
187 int ringSync(); 191 int ringSync();
188 QString getPassword( ); 192 QString getPassword( );
189 bool mPisyncFinished; 193 bool mPisyncFinished;
190 bool mBlockSaveFlag; 194 bool mBlockSaveFlag;
191 QWidget* mParent; 195 QWidget* mParent;
192 KSyncInterface* mImplementation; 196 KSyncInterface* mImplementation;
193 TargetApp mTargetApp; 197 TargetApp mTargetApp;
194 QPopupMenu* mSyncMenu; 198 QPopupMenu* mSyncMenu;
195 QProgressBar* bar; 199 QProgressBar* bar;
196 bool mSyncWithDesktop; 200 bool mSyncWithDesktop;
197 201
198private slots: 202private slots:
199 void confSync(); 203 void confSync();
200 204
201 205
202}; 206};
203 207
204 208
205class KSyncInterface 209class KSyncInterface
206{ 210{
207 public : 211 public :
208 virtual void removeSyncInfo( QString syncProfile) = 0; 212 virtual void removeSyncInfo( QString syncProfile) = 0;
209 virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0; 213 virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0;
210 virtual bool syncExternal(KSyncManager* manager, QString resource) 214 virtual bool syncExternal(KSyncManager* manager, QString resource)
211 { 215 {
212 // empty implementation, because some syncable applications do not 216 // empty implementation, because some syncable applications do not
213 // have an external(sharpdtm) syncmode, like pwmanager. 217 // have an external(sharpdtm) syncmode, like pwmanager.
214 return false; 218 return false;
215 } 219 }
216 220
217 221
218}; 222};
219 223
220 224
221#endif 225#endif