-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 4 | ||||
-rw-r--r-- | korganizer/koeditordetails.cpp | 8 | ||||
-rw-r--r-- | libkcal/incidencebase.cpp | 13 | ||||
-rw-r--r-- | libkcal/incidencebase.h | 2 |
4 files changed, 21 insertions, 6 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 75df50f..85ca87d 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -1,539 +1,539 @@ | |||
1 | { "file","Datei" }, | 1 | { "file","Datei" }, |
2 | { "Choose one file","Wähle eine Datei" }, | 2 | { "Choose one file","Wähle eine Datei" }, |
3 | { "dir","Verzeichnis" }, | 3 | { "dir","Verzeichnis" }, |
4 | { "Choose a directory with may files","Wähle Verzeichnis" }, | 4 | { "Choose a directory with may files","Wähle Verzeichnis" }, |
5 | { "ldap","ldap" }, | 5 | { "ldap","ldap" }, |
6 | { "No description available","Keine Beschreibung verfügbar" }, | 6 | { "No description available","Keine Beschreibung verfügbar" }, |
7 | { "Library files for "%1" not found in paths","Bibliothek für "%1" nicht gefunden" }, | 7 | { "Library files for "%1" not found in paths","Bibliothek für "%1" nicht gefunden" }, |
8 | { "qtopia","qtopia" }, | 8 | { "qtopia","qtopia" }, |
9 | { "Qtopia PIM Addressbook.","Qtopia PIM Adressbuch." }, | 9 | { "Qtopia PIM Addressbook.","Qtopia PIM Adressbuch." }, |
10 | { "vCard","vCard" }, | 10 | { "vCard","vCard" }, |
11 | { "vCard Format","vCard Format" }, | 11 | { "vCard Format","vCard Format" }, |
12 | { "microkabcformat_binary","microkabcformat_binary" }, | 12 | { "microkabcformat_binary","microkabcformat_binary" }, |
13 | { "Binary","Binary" }, | 13 | { "Binary","Binary" }, |
14 | { "No description available.","Keine Beschreibung verfügbar." }, | 14 | { "No description available.","Keine Beschreibung verfügbar." }, |
15 | { "Department","Abteilung" }, | 15 | { "Department","Abteilung" }, |
16 | { "Profession","Beruf" }, | 16 | { "Profession","Beruf" }, |
17 | { "Assistant's Name","Name d.Assistenten" }, | 17 | { "Assistant's Name","Name d.Assistenten" }, |
18 | { "Manager's Name","Name d.Manager's" }, | 18 | { "Manager's Name","Name d.Manager's" }, |
19 | { "Spouse's Name","Name d.Ehegatten" }, | 19 | { "Spouse's Name","Name d.Ehegatten" }, |
20 | { "Office","Büro" }, | 20 | { "Office","Büro" }, |
21 | { "IM Address","IM Adresse" }, | 21 | { "IM Address","IM Adresse" }, |
22 | { "Anniversary","Jahrestag" }, | 22 | { "Anniversary","Jahrestag" }, |
23 | { "Gender","Geschlecht" }, | 23 | { "Gender","Geschlecht" }, |
24 | { "Children","Kinder" }, | 24 | { "Children","Kinder" }, |
25 | { "FreeBusyUrl","FreeBusyUrl" }, | 25 | { "FreeBusyUrl","FreeBusyUrl" }, |
26 | { "ExternalID","ExternalID" }, | 26 | { "ExternalID","ExternalID" }, |
27 | { "Resource loaded: '%1'","Resource geladen: '%1'" }, | 27 | { "Resource loaded: '%1'","Resource geladen: '%1'" }, |
28 | { "Select View","Ansicht wählen" }, | 28 | { "Select View","Ansicht wählen" }, |
29 | { "Modify View...","Ansicht ändern..." }, | 29 | { "Modify View...","Ansicht ändern..." }, |
30 | { "Add View...","Ansicht hinzufügen..." }, | 30 | { "Add View...","Ansicht hinzufügen..." }, |
31 | { "Delete View","Ansicht löschen" }, | 31 | { "Delete View","Ansicht löschen" }, |
32 | { "Refresh View","Ansicht aktualisieren" }, | 32 | { "Refresh View","Ansicht aktualisieren" }, |
33 | { "Edit &Filters...","Bearbeite &Filter..." }, | 33 | { "Edit &Filters...","Bearbeite &Filter..." }, |
34 | { "Select Filter","Filter wählen" }, | 34 | { "Select Filter","Filter wählen" }, |
35 | { "Style:","Stil:" }, | 35 | { "Style:","Stil:" }, |
36 | { "HTML table style.","HTML tabellen stil." }, | 36 | { "HTML table style.","HTML tabellen stil." }, |
37 | { "Default Table View","Standard Tabellen Ansicht" }, | 37 | { "Default Table View","Standard Tabellen Ansicht" }, |
38 | { "Show Extension Bar","Zeige Extension Bar" }, | 38 | { "Show Extension Bar","Zeige Extension Bar" }, |
39 | { "None","Kein" }, | 39 | { "None","Kein" }, |
40 | { "Name...","Name..." }, | 40 | { "Name...","Name..." }, |
41 | { "Role:","Funktion:" }, | 41 | { "Role:","Funktion:" }, |
42 | { "Organization:","Firma:" }, | 42 | { "Organization:","Firma:" }, |
43 | { "Formatted name:","Formatt. Name:" }, | 43 | { "Formatted name:","Formatt. Name:" }, |
44 | { "Edit Phone Numbers...","Bearbeite Telefonnummern..." }, | 44 | { "Edit Phone Numbers...","Bearbeite Telefonnummern..." }, |
45 | { "Categories","Kategorien" }, | 45 | { "Categories","Kategorien" }, |
46 | { "Public","Öffentlich" }, | 46 | { "Public","Öffentlich" }, |
47 | { "Private","Privat" }, | 47 | { "Private","Privat" }, |
48 | { "Confidential","Vertraulich" }, | 48 | { "Confidential","Vertraulich" }, |
49 | { "&General","Allgemein" }, | 49 | { "&General","Allgemein" }, |
50 | { "&Edit Addresses...","B&earbeite Adressen..." }, | 50 | { "&Edit Addresses...","B&earbeite Adressen..." }, |
51 | { "Edit Email Addresses...","Bearbeite E-Mail Adressen..." }, | 51 | { "Edit Email Addresses...","Bearbeite E-Mail Adressen..." }, |
52 | { "Email:","Email:" }, | 52 | { "Email:","Email:" }, |
53 | { "URL:","URL:" }, | 53 | { "URL:","URL:" }, |
54 | { "&IM address:","&IM address:" }, | 54 | { "&IM address:","&IM address:" }, |
55 | { "&Address","&Adresse" }, | 55 | { "&Address","&Adresse" }, |
56 | { "Department:","Abteilung:" }, | 56 | { "Department:","Abteilung:" }, |
57 | { "Office:","Büro:" }, | 57 | { "Office:","Büro:" }, |
58 | { "Profession:","Beruf:" }, | 58 | { "Profession:","Beruf:" }, |
59 | { "Manager's name:","N.d.Manager's:" }, | 59 | { "Manager's name:","N.d.Manager's:" }, |
60 | { "Assistant's name:","N.d.Assistenten:" }, | 60 | { "Assistant's name:","N.d.Assistenten:" }, |
61 | { "Nick name:","Spitzname:" }, | 61 | { "Nick name:","Spitzname:" }, |
62 | { "Spouse's name:","N.d.Ehegatten:" }, | 62 | { "Spouse's name:","N.d.Ehegatten:" }, |
63 | { "Children's names:","N.d.Kinder:" }, | 63 | { "Children's names:","N.d.Kinder:" }, |
64 | { "Birthday:","Geburtstag:" }, | 64 | { "Birthday:","Geburtstag:" }, |
65 | { " Local Time","Ortszeit" }, | 65 | { " Local Time","Ortszeit" }, |
66 | { "Mon","Mo" }, | 66 | { "Mon","Mo" }, |
67 | { "Tue","Di" }, | 67 | { "Tue","Di" }, |
68 | { "Wed","Mi" }, | 68 | { "Wed","Mi" }, |
69 | { "Thu","Do" }, | 69 | { "Thu","Do" }, |
70 | { "Fri","Fr" }, | 70 | { "Fri","Fr" }, |
71 | { "Sat","Sa" }, | 71 | { "Sat","Sa" }, |
72 | { "Sun","So" }, | 72 | { "Sun","So" }, |
73 | { "January","Januar" }, | 73 | { "January","Januar" }, |
74 | { "February","Februar" }, | 74 | { "February","Februar" }, |
75 | { "March","März" }, | 75 | { "March","März" }, |
76 | { "April","April" }, | 76 | { "April","April" }, |
77 | { "May","Mai" }, | 77 | { "May","Mai" }, |
78 | { "June","Juni" }, | 78 | { "June","Juni" }, |
79 | { "July","July" }, | 79 | { "July","July" }, |
80 | { "August","August" }, | 80 | { "August","August" }, |
81 | { "September","September" }, | 81 | { "September","September" }, |
82 | { "October","October" }, | 82 | { "October","October" }, |
83 | { "November","November" }, | 83 | { "November","November" }, |
84 | { "December","Dezember" }, | 84 | { "December","Dezember" }, |
85 | { "tomorrow","Morgen" }, | 85 | { "tomorrow","Morgen" }, |
86 | { "today","Heute" }, | 86 | { "today","Heute" }, |
87 | { "yesterday","Gestern" }, | 87 | { "yesterday","Gestern" }, |
88 | { "Monday","Montag" }, | 88 | { "Monday","Montag" }, |
89 | { "Tuesday","Dienstag" }, | 89 | { "Tuesday","Dienstag" }, |
90 | { "Wednesday","Mittwoch" }, | 90 | { "Wednesday","Mittwoch" }, |
91 | { "Thursday","Donnerstag" }, | 91 | { "Thursday","Donnerstag" }, |
92 | { "Friday","Freitag" }, | 92 | { "Friday","Freitag" }, |
93 | { "Saturday","Samstag" }, | 93 | { "Saturday","Samstag" }, |
94 | { "Sunday","Sonntag" }, | 94 | { "Sunday","Sonntag" }, |
95 | { "Anniversary:","Jahrestag:" }, | 95 | { "Anniversary:","Jahrestag:" }, |
96 | { "Gender:","Geschlecht:" }, | 96 | { "Gender:","Geschlecht:" }, |
97 | { "ALIEN (gender undefined)","ALIEN (Geschlecht unbekannt)" }, | 97 | { "ALIEN (gender undefined)","ALIEN (Geschlecht unbekannt)" }, |
98 | { "female","weiblich" }, | 98 | { "female","weiblich" }, |
99 | { "male","männlich" }, | 99 | { "male","männlich" }, |
100 | { "&Details","&Details" }, | 100 | { "&Details","&Details" }, |
101 | { "Note:","Notiz:" }, | 101 | { "Note:","Notiz:" }, |
102 | { "&Notes","&Notizen" }, | 102 | { "&Notes","&Notizen" }, |
103 | { "Use geo data","Benutze geo Daten" }, | 103 | { "Use geo data","Benutze geo Daten" }, |
104 | { "Latitude:","Breitengrad:" }, | 104 | { "Latitude:","Breitengrad:" }, |
105 | { "Longitude:","Längengrad:" }, | 105 | { "Longitude:","Längengrad:" }, |
106 | { "Edit Geo Data...","Edit geo Daten..." }, | 106 | { "Edit Geo Data...","Edit geo Daten..." }, |
107 | { "Keys:","Schlüssel:" }, | 107 | { "Keys:","Schlüssel:" }, |
108 | { "Add","Hinzufügen" }, | 108 | { "Add","Hinzufügen" }, |
109 | { "Remove","Entfernen" }, | 109 | { "Remove","Entfernen" }, |
110 | { "Export","Exportiere" }, | 110 | { "Export","Exportiere" }, |
111 | { "&Misc","Verschiedenes" }, | 111 | { "&Misc","Verschiedenes" }, |
112 | { "Photo","Foto" }, | 112 | { "Photo","Foto" }, |
113 | { "Store as URL","Speichere als URL" }, | 113 | { "Store as URL","Speichere als URL" }, |
114 | { "Logo","Logo" }, | 114 | { "Logo","Logo" }, |
115 | { "&Images","B&ilder" }, | 115 | { "&Images","B&ilder" }, |
116 | { "Home","Privat" }, | 116 | { "Home","Privat" }, |
117 | { "Work","Geschäft" }, | 117 | { "Work","Geschäft" }, |
118 | { "Mobile","Handy" }, | 118 | { "Mobile","Handy" }, |
119 | { "Fax","Fax" }, | 119 | { "Fax","Fax" }, |
120 | { "Contact Editor","Bearbeite Kontakt" }, | 120 | { "Contact Editor","Bearbeite Kontakt" }, |
121 | { "&Mail...","&Mail..." }, | 121 | { "&Mail...","&Mail..." }, |
122 | { "&Print...","Drucken..." }, | 122 | { "&Print...","Drucken..." }, |
123 | { "&Save","&Speichern" }, | 123 | { "&Save","&Speichern" }, |
124 | { "&New Contact...","&Neuer Kontakt..." }, | 124 | { "&New Contact...","&Neuer Kontakt..." }, |
125 | { "Mail &vCard...","Mail &vCard..." }, | 125 | { "Mail &vCard...","Mail &vCard..." }, |
126 | { "Selected to phone","Auswahl zum Telefon" }, | 126 | { "Selected to phone","Auswahl zum Telefon" }, |
127 | { "Beam selected v&Card(s)","Beame ausgewählte v&Card(s)" }, | 127 | { "Beam selected v&Card(s)","Beame ausgewählte v&Card(s)" }, |
128 | { "&Beam personal vCard","Beame persönliche vCard" }, | 128 | { "&Beam personal vCard","Beame persönliche vCard" }, |
129 | { "&Edit Contact...","Bearbeite Kontakt..." }, | 129 | { "&Edit Contact...","Bearbeite Kontakt..." }, |
130 | { "&Exit","B&eenden" }, | 130 | { "&Exit","B&eenden" }, |
131 | { "&Copy","Kopieren" }, | 131 | { "&Copy","Kopieren" }, |
132 | { "Cu&t","Ausschneiden" }, | 132 | { "Cu&t","Ausschneiden" }, |
133 | { "&Paste","Einfügen" }, | 133 | { "&Paste","Einfügen" }, |
134 | { "Select &All","Alles auswählen" }, | 134 | { "Select &All","Alles auswählen" }, |
135 | { "&Undo","Rückgängig machen" }, | 135 | { "&Undo","Rückgängig machen" }, |
136 | { "Re&do","Wiederherstellen" }, | 136 | { "Re&do","Wiederherstellen" }, |
137 | { "&Delete Contact","Lösche Kontakt" }, | 137 | { "&Delete Contact","Lösche Kontakt" }, |
138 | { "Configure &Resources...","Konfiguriere &Resourcen..." }, | 138 | { "Configure &Resources...","Konfiguriere &Resourcen..." }, |
139 | { "&Configure %1...","Konfiguriere %1..." }, | 139 | { "&Configure %1...","Konfiguriere %1..." }, |
140 | { "Configure S&hortcuts...","Konfiguriere S&hortcuts..." }, | 140 | { "Configure S&hortcuts...","Konfiguriere S&hortcuts..." }, |
141 | { "Show Jump Bar","Zeige Jump Bar" }, | 141 | { "Show Jump Bar","Zeige Jump Bar" }, |
142 | { "Show Details","Zeige Details" }, | 142 | { "Show Details","Zeige Details" }, |
143 | { "Beam receive enabled","Beam (IR) Empfang AN" }, | 143 | { "Beam receive enabled","Beam (IR) Empfang AN" }, |
144 | { "Set Who Am I","Setze "wer bin ich"" }, | 144 | { "Set Who Am I","Setze "wer bin ich"" }, |
145 | { "Set Categories","Wähle Kategorien" }, | 145 | { "Set Categories","Wähle Kategorien" }, |
146 | { "Edit Categories","Editiere Kategorien" }, | 146 | { "Edit Categories","Editiere Kategorien" }, |
147 | { "Remove "voice"...","Entferne "voice"..." }, | 147 | { "Remove "voice"...","Entferne "voice"..." }, |
148 | { "Import from Outlook...","Importiere aus Outlook..." }, | 148 | { "Import from Outlook...","Importiere aus Outlook..." }, |
149 | { "Licence","Lizenz" }, | 149 | { "Licence","Lizenz" }, |
150 | { "Faq","Fragen + Antworten" }, | 150 | { "Faq","Fragen + Antworten" }, |
151 | { "What's New?","Was ist neu?" }, | 151 | { "What's New?","Was ist neu?" }, |
152 | { "Sync HowTo","Sync Anleitung" }, | 152 | { "Sync HowTo","Sync Anleitung" }, |
153 | { "&About KAddressBook","Über KAdressBuch" }, | 153 | { "&About KAddressBook","Über KAdressBuch" }, |
154 | { "Select Incremental Search Field","Selektiere Such Feld" }, | 154 | { "Select Incremental Search Field","Selektiere Such Feld" }, |
155 | { "Synchronize","Synchronisieren" }, | 155 | { "Synchronize","Synchronisieren" }, |
156 | { "Configure...","Konfigurieren..." }, | 156 | { "Configure...","Konfigurieren..." }, |
157 | { "Enable Pi-Sync","Aktiviere Pi-Sync" }, | 157 | { "Enable Pi-Sync","Aktiviere Pi-Sync" }, |
158 | { "Multiple sync","Mehrfach Sync" }, | 158 | { "Multiple sync","Mehrfach Sync" }, |
159 | { "Import CSV List...","Importiere CSV-Datei..." }, | 159 | { "Import CSV List...","Importiere CSV-Datei..." }, |
160 | { "Export CSV List...","Exportiere CSV-Datei..." }, | 160 | { "Export CSV List...","Exportiere CSV-Datei..." }, |
161 | { "Import KDE 2 Addressbook...","Importiere KDE 2 Adressbuch..." }, | 161 | { "Import KDE 2 Addressbook...","Importiere KDE 2 Adressbuch..." }, |
162 | { "Import vCard...","Importiere vCard..." }, | 162 | { "Import vCard...","Importiere vCard..." }, |
163 | { "Export vCard 3.0...","Exportiere vCard 3.0..." }, | 163 | { "Export vCard 3.0...","Exportiere vCard 3.0..." }, |
164 | { "Import Qtopia...","Importiere Qtopia..." }, | 164 | { "Import Qtopia...","Importiere Qtopia..." }, |
165 | { "Export Qtopia...","Exportiere Qtopia..." }, | 165 | { "Export Qtopia...","Exportiere Qtopia..." }, |
166 | { "Edit Contact","Bearbeite Kontakt" }, | 166 | { "Edit Contact","Bearbeite Kontakt" }, |
167 | { "Ok","Ok" }, | 167 | { "Ok","Ok" }, |
168 | { "Apply","Anwenden" }, | 168 | { "Apply","Anwenden" }, |
169 | { "Cancel","Abbrechen" }, | 169 | { "Cancel","Abbrechen" }, |
170 | { "KAddressbook/Pi","KAdressbuch/Pi" }, | 170 | { "KAddressbook/Pi","KAdressbuch/Pi" }, |
171 | { "No Filter","Kein Filter" }, | 171 | { "No Filter","Kein Filter" }, |
172 | { "Given Name","Vorname" }, | 172 | { "Given Name","Vorname" }, |
173 | { "Family Name","Nachname" }, | 173 | { "Family Name","Nachname" }, |
174 | { "Email Address","E-Mail Adresse" }, | 174 | { "Email Address","E-Mail Adresse" }, |
175 | { "All Fields","Alle Felder" }, | 175 | { "All Fields","Alle Felder" }, |
176 | { "Question","Frage" }, | 176 | { "Question","Frage" }, |
177 | { "After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?","After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?" }, | 177 | { "After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?","After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?" }, |
178 | { "No","Nein" }, | 178 | { "No","Nein" }, |
179 | { "Yes","Ja" }, | 179 | { "Yes","Ja" }, |
180 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile" }, | 180 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile" }, |
181 | { "Local device name:","Name dieses Gerätes:" }, | 181 | { "Local device name:","Name dieses Gerätes:" }, |
182 | { "New profile","Neues Profil" }, | 182 | { "New profile","Neues Profil" }, |
183 | { "Clone profile","Klone Profil" }, | 183 | { "Clone profile","Klone Profil" }, |
184 | { "Delete profile","Lösche Profil" }, | 184 | { "Delete profile","Lösche Profil" }, |
185 | { "Profile:","Profil:" }, | 185 | { "Profile:","Profil:" }, |
186 | { "Ask for every entry on conflict","Frage bei Konflikten nach"}, | 186 | { "Ask for every entry on conflict","Frage bei Konflikten nach"}, |
187 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 187 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
188 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 188 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
189 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 189 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
190 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, | 190 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, |
191 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 191 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
192 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 192 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
193 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 193 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
194 | { "Write back file","Schreibe Datei zurück" }, | 194 | { "Write back file","Schreibe Datei zurück" }, |
195 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 195 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
196 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 196 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
197 | { "Local device name:","Name dieses Gerätes:" }, | 197 | { "Local device name:","Name dieses Gerätes:" }, |
198 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 198 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
199 | { "Sync preferences","Synchronisations Einstellungen" }, | 199 | { "Sync preferences","Synchronisations Einstellungen" }, |
200 | { "Profile kind","Profil Art" }, | 200 | { "Profile kind","Profil Art" }, |
201 | { "Local file","Lokale Datei" }, | 201 | { "Local file","Lokale Datei" }, |
202 | { "Local file:","Lokale Datei:" }, | 202 | { "Local file:","Lokale Datei:" }, |
203 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 203 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
204 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 204 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
205 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 205 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
206 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 206 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
207 | { "Device","Gerät:" }, | 207 | { "Device","Gerät:" }, |
208 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 208 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
209 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, | 209 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, |
210 | { "Synchronization successful","Synchronisation erfolgreich" }, | 210 | { "Synchronization successful","Synchronisation erfolgreich" }, |
211 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 211 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
212 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 212 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
213 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 213 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
214 | { "Enter password","Passwort eingeben" }, | 214 | { "Enter password","Passwort eingeben" }, |
215 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 215 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
216 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 216 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
217 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, | 217 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, |
218 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 218 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
219 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 219 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
220 | { "Used %1 Client","Benutzter %1 Client" }, | 220 | { "Used %1 Client","Benutzter %1 Client" }, |
221 | { "No email client installed","Kein Email Klient installiert" }, | 221 | { "No email client installed","Kein Email Klient installiert" }, |
222 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 222 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
223 | { "OM/Pi email client","OM/Pi Email Klient" }, | 223 | { "OM/Pi email client","OM/Pi Email Klient" }, |
224 | { "Include in multiple ","Beziehe in multiple " }, | 224 | { "Include in multiple ","Beziehe in multiple " }, |
225 | { "calendar ","Kalender " }, | 225 | { "calendar ","Kalender " }, |
226 | { "addressbook ","Adressbuch " }, | 226 | { "addressbook ","Adressbuch " }, |
227 | { "pwmanager","PWmanager" }, | 227 | { "pwmanager","PWmanager" }, |
228 | { " sync"," Sync ein" }, | 228 | { " sync"," Sync ein" }, |
229 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 229 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
230 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 230 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
231 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 231 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
232 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 232 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
233 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 233 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
234 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 234 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
235 | { "Help...","Hilfe..." }, | 235 | { "Help...","Hilfe..." }, |
236 | { "Local file Cal:","Lokale Datei Kal:" }, | 236 | { "Local file Cal:","Lokale Datei Kal:" }, |
237 | { "Local file ABook:","Lokale Datei ABuch:" }, | 237 | { "Local file ABook:","Lokale Datei ABuch:" }, |
238 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 238 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
239 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 239 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
240 | { "Calendar:","Kalender:" }, | 240 | { "Calendar:","Kalender:" }, |
241 | { "AddressBook:","AdressBuch:" }, | 241 | { "AddressBook:","AdressBuch:" }, |
242 | { "PWManager:","PWManager:" }, | 242 | { "PWManager:","PWManager:" }, |
243 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 243 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
244 | { "ssh/scp","ssh/scp" }, | 244 | { "ssh/scp","ssh/scp" }, |
245 | { "ftp","ftp" }, | 245 | { "ftp","ftp" }, |
246 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 246 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
247 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 247 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
248 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 248 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
249 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 249 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
250 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 250 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
251 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 251 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
252 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 252 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
253 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 253 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
254 | { "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" }, | 254 | { "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" }, |
255 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 255 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
256 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 256 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
257 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 257 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
258 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 258 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
259 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 259 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
260 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 260 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
261 | { "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!" }, | 261 | { "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!" }, |
262 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 262 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
263 | { "Multiple profiles","Multi-Sync Profile" }, | 263 | { "Multiple profiles","Multi-Sync Profile" }, |
264 | { "Device: ","Gerät: " }, | 264 | { "Device: ","Gerät: " }, |
265 | { "Multiple sync started.","Multi-Sync gestartet." }, | 265 | { "Multiple sync started.","Multi-Sync gestartet." }, |
266 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 266 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
267 | { "KDE-Pim sync config","KDE-Pim Sync Konfig" }, | 267 | { "KDE-Pim sync config","KDE-Pim Sync Konfig" }, |
268 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein, z.B.:\n" }, | 268 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein, z.B.:\n" }, |
269 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Modell\nautomatisch\erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, | 269 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Modell\nautomatisch\erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, |
270 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 270 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
271 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 271 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
272 | { "Edit Address Book Filters","Editiere Addressbuch Filter" }, | 272 | { "Edit Address Book Filters","Editiere Addressbuch Filter" }, |
273 | { "&Add...","Hinzufügen..." }, | 273 | { "&Add...","Hinzufügen..." }, |
274 | { "&Edit...","B&earbeiten..." }, | 274 | { "&Edit...","B&earbeiten..." }, |
275 | { "&Remove","Entfe&rne" }, | 275 | { "&Remove","Entfe&rne" }, |
276 | { "Modify View: ","Ansicht ändern: " }, | 276 | { "Modify View: ","Ansicht ändern: " }, |
277 | { "Fields","Felder" }, | 277 | { "Fields","Felder" }, |
278 | { "Select Fields to Display","Wähle anzuzeigende Felder" }, | 278 | { "Select Fields to Display","Wähle anzuzeigende Felder" }, |
279 | { "All","Alles" }, | 279 | { "All","Alles" }, |
280 | { "Frequent","Frequent" }, | 280 | { "Frequent","Frequent" }, |
281 | { "Address","Adresse" }, | 281 | { "Address","Adresse" }, |
282 | { "Email","E-Mail" }, | 282 | { "Email","E-Mail" }, |
283 | { "Personal","Persönl." }, | 283 | { "Personal","Persönl." }, |
284 | { "Organization","Organisation" }, | 284 | { "Organization","Organisation" }, |
285 | { "Custom","Benutzerdefiniert" }, | 285 | { "Custom","Benutzerdefiniert" }, |
286 | { "&Selected\nfields:","&Selectierte\nFelder:" }, | 286 | { "&Selected\nfields:","&Selectierte\nFelder:" }, |
287 | { "Formatted Name","Format. Name" }, | 287 | { "Formatted Name","Format. Name" }, |
288 | { "Additional Names","Mittelname" }, | 288 | { "Additional Names","Mittelname" }, |
289 | { "Honorific Prefixes","Namen Prefix" }, | 289 | { "Honorific Prefixes","Namen Prefix" }, |
290 | { "Honorific Suffixes","Namen Suffix" }, | 290 | { "Honorific Suffixes","Namen Suffix" }, |
291 | { "Nick Name","Sptitzname" }, | 291 | { "Nick Name","Sptitzname" }, |
292 | { "Birthday","Geburtstag" }, | 292 | { "Birthday","Geburtstag" }, |
293 | { "Home Address Street","Privat Adresse Strasse" }, | 293 | { "Home Address Street","Privat Adresse Strasse" }, |
294 | { "Home Address Locality","Privat Adresse Stadt" }, | 294 | { "Home Address Locality","Privat Adresse Stadt" }, |
295 | { "Home Address Region","Privat Adresse Bundesland" }, | 295 | { "Home Address Region","Privat Adresse Bundesland" }, |
296 | { "Home Address Postal Code","Privat Adresse PLZ" }, | 296 | { "Home Address Postal Code","Privat Adresse PLZ" }, |
297 | { "Home Address Country","Privat Adresse Land" }, | 297 | { "Home Address Country","Privat Adresse Land" }, |
298 | { "Home Address Label","Privat Adresse Label" }, | 298 | { "Home Address Label","Privat Adresse Label" }, |
299 | { "Business Address Street","Büro Adresse Strasse" }, | 299 | { "Business Address Street","Büro Adresse Strasse" }, |
300 | { "Business Address Locality","Büro Adresse Stadt" }, | 300 | { "Business Address Locality","Büro Adresse Stadt" }, |
301 | { "Business Address Region","Büro Adresse Bundesland" }, | 301 | { "Business Address Region","Büro Adresse Bundesland" }, |
302 | { "Business Address Postal Code","Büro Adresse PLZ" }, | 302 | { "Business Address Postal Code","Büro Adresse PLZ" }, |
303 | { "Business Address Country","Büro Adresse Land" }, | 303 | { "Business Address Country","Büro Adresse Land" }, |
304 | { "Business Address Label","Büro Adresse Label" }, | 304 | { "Business Address Label","Büro Adresse Label" }, |
305 | { "Home Phone","Privat Telefon" }, | 305 | { "Home Phone","Privat Telefon" }, |
306 | { "Business Phone","Büro Telefon" }, | 306 | { "Business Phone","Büro Telefon" }, |
307 | { "Mobile Phone","Handy" }, | 307 | { "Mobile Phone","Handy" }, |
308 | { "Home Fax","Privat Fax" }, | 308 | { "Home Fax","Privat Fax" }, |
309 | { "Business Fax","Büro Fax" }, | 309 | { "Business Fax","Büro Fax" }, |
310 | { "Car Phone","Autotelefon" }, | 310 | { "Car Phone","Autotelefon" }, |
311 | { "ISDN","ISDN" }, | 311 | { "ISDN","ISDN" }, |
312 | { "Pager","Pager" }, | 312 | { "Pager","Pager" }, |
313 | { "Mail Client","Mail Client" }, | 313 | { "Mail Client","Mail Client" }, |
314 | { "Title","Titel" }, | 314 | { "Title","Titel" }, |
315 | { "Role","Rolle" }, | 315 | { "Role","Rolle" }, |
316 | { "Note","Notiz" }, | 316 | { "Note","Notiz" }, |
317 | { "URL","URL" }, | 317 | { "URL","URL" }, |
318 | { "Resource","Resource" }, | 318 | { "Resource","Resource" }, |
319 | { "SIP","SIP" }, | 319 | { "SIP","SIP" }, |
320 | { "Default Filter","Default Filter" }, | 320 | { "Default Filter","Default Filter" }, |
321 | { "The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime.","#The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime." }, | 321 | { "The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime.","#The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime." }, |
322 | { "No default filter","Kein default Filter" }, | 322 | { "No default filter","Kein default Filter" }, |
323 | { "Use last active filter","Nutze letzen aktiven Filter" }, | 323 | { "Use last active filter","Nutze letzen aktiven Filter" }, |
324 | { "Use filter:","Nutze Filter:" }, | 324 | { "Use filter:","Nutze Filter:" }, |
325 | { "Look & Feel","Look & Feel" }, | 325 | { "Look & Feel","Look & Feel" }, |
326 | { "Row Separator","Reihen Separator" }, | 326 | { "Row Separator","Reihen Separator" }, |
327 | { "Alternating backgrounds","Abwechselnder Hintergrund" }, | 327 | { "Alternating backgrounds","Abwechselnder Hintergrund" }, |
328 | { "Single line","Einzelne Zeile" }, | 328 | { "Single line","Einzelne Zeile" }, |
329 | { "Enable background image:","Hintergrundbild:" }, | 329 | { "Enable background image:","Hintergrundbild:" }, |
330 | { "Enable contact tooltips","Contact Tooltips" }, | 330 | { "Enable contact tooltips","Contact Tooltips" }, |
331 | { "&Enable custom Colors","Benutzerdef. Farben" }, | 331 | { "&Enable custom Colors","Benutzerdef. Farben" }, |
332 | { "&Colors","Farben" }, | 332 | { "&Colors","Farben" }, |
333 | { "If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used.","#If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used." }, | 333 | { "If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used.","#If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used." }, |
334 | { "Double click or press RETURN on a item to select a color for the related strings in the view.","#Double click or press RETURN on a item to select a color for the related strings in the view." }, | 334 | { "Double click or press RETURN on a item to select a color for the related strings in the view.","#Double click or press RETURN on a item to select a color for the related strings in the view." }, |
335 | { "&Enable custom fonts","B&enutzerdefinierte Schriften" }, | 335 | { "&Enable custom fonts","B&enutzerdefinierte Schriften" }, |
336 | { "&Text font:","Textschriftart:" }, | 336 | { "&Text font:","Textschriftart:" }, |
337 | { "&Header font:","Titelschriftart:" }, | 337 | { "&Header font:","Titelschriftart:" }, |
338 | { "If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data.","#If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data." }, | 338 | { "If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data.","#If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data." }, |
339 | { "&Fonts","Schri&ften" }, | 339 | { "&Fonts","Schri&ften" }, |
340 | { "Background Color","Hintergrundfarbe" }, | 340 | { "Background Color","Hintergrundfarbe" }, |
341 | { "Text Color","Textfarbe" }, | 341 | { "Text Color","Textfarbe" }, |
342 | { "Header Background Color","Titel Hintergrundfarbe" }, | 342 | { "Header Background Color","Titel Hintergrundfarbe" }, |
343 | { "Header Text Color","Titel Farbe" }, | 343 | { "Header Text Color","Titel Farbe" }, |
344 | { "Highlight Color","Auswahlfarbe" }, | 344 | { "Highlight Color","Auswahlfarbe" }, |
345 | { "Highlighted Text Color","Auswahltextfarbe" }, | 345 | { "Highlighted Text Color","Auswahltextfarbe" }, |
346 | { "Alternating Background Color","Abwechselnder Hintergrundfarbe" }, | 346 | { "Alternating Background Color","Abwechselnder Hintergrundfarbe" }, |
347 | { "Postal","Post" }, | 347 | { "Postal","Post" }, |
348 | { "Dr.","Dr." }, | 348 | { "Dr.","Dr." }, |
349 | { "Miss","Frl." }, | 349 | { "Miss","Frl." }, |
350 | { "Mr.","Herr" }, | 350 | { "Mr.","Herr" }, |
351 | { "Mrs.","Frau" }, | 351 | { "Mrs.","Frau" }, |
352 | { "Ms.","Frau" }, | 352 | { "Ms.","Fr." }, |
353 | { "Prof.","Prof." }, | 353 | { "Prof.","Prof." }, |
354 | { "I","I" }, | 354 | { "I","I" }, |
355 | { "II","II" }, | 355 | { "II","II" }, |
356 | { "III","III" }, | 356 | { "III","III" }, |
357 | { "Jr.","Jr." }, | 357 | { "Jr.","Jr." }, |
358 | { "Sr.","Sr." }, | 358 | { "Sr.","Sr." }, |
359 | { "Name:","Name:" }, | 359 | { "Name:","Name:" }, |
360 | { "Documents","Dokumente" }, | 360 | { "Documents","Dokumente" }, |
361 | { "Files","Dateien" }, | 361 | { "Files","Dateien" }, |
362 | { "All Files","Alle Dateien" }, | 362 | { "All Files","Alle Dateien" }, |
363 | { "Name","Name" }, | 363 | { "Name","Name" }, |
364 | { "Size","Größe" }, | 364 | { "Size","Größe" }, |
365 | { "Date","Datum" }, | 365 | { "Date","Datum" }, |
366 | { "Mime Type","Mime Typ" }, | 366 | { "Mime Type","Mime Typ" }, |
367 | { "Geo Data Input","Geo Dateneingabe" }, | 367 | { "Geo Data Input","Geo Dateneingabe" }, |
368 | { "Sexagesimal","Sexagesimal" }, | 368 | { "Sexagesimal","Sexagesimal" }, |
369 | { "North","Nord" }, | 369 | { "North","Nord" }, |
370 | { "South","Süd" }, | 370 | { "South","Süd" }, |
371 | { "East","Ost" }, | 371 | { "East","Ost" }, |
372 | { "West","West" }, | 372 | { "West","West" }, |
373 | { "Undefined","Unbestimmt" }, | 373 | { "Undefined","Unbestimmt" }, |
374 | { "Edit Address","Bearbeite Adresse" }, | 374 | { "Edit Address","Bearbeite Adresse" }, |
375 | { "Street:","Strasse:" }, | 375 | { "Street:","Strasse:" }, |
376 | { "Post office box:","PLZ:" }, | 376 | { "Post office box:","Postfach:" }, |
377 | { "Locality:","Stadt:" }, | 377 | { "Locality:","Stadt:" }, |
378 | { "Region:","Region:" }, | 378 | { "Region:","Region:" }, |
379 | { "Postal code:","PLZ:" }, | 379 | { "Postal code:","PLZ:" }, |
380 | { "Country:","Staat:" }, | 380 | { "Country:","Staat:" }, |
381 | { "This is the preferred address","Dies ist die bevorzugte Adresse" }, | 381 | { "This is the preferred address","Dies ist die bevorzugte Adresse" }, |
382 | { "New...","Neu..." }, | 382 | { "New...","Neu..." }, |
383 | { "Change Type","Ändere Art" }, | 383 | { "Change Type","Ändere Art" }, |
384 | { "Edit Address Type","Ändere Address Art" }, | 384 | { "Edit Address Type","Ändere Address Art" }, |
385 | { "Address Types","Address Art" }, | 385 | { "Address Types","Address Art" }, |
386 | { "Domestic","Inland" }, | 386 | { "Domestic","Inland" }, |
387 | { "International","International" }, | 387 | { "International","International" }, |
388 | { "Parcel","Paket" }, | 388 | { "Parcel","Paket" }, |
389 | { "Edit Contact Name","Ändere Kontakt Name" }, | 389 | { "Edit Contact Name","Ändere Kontakt Name" }, |
390 | { "Honorific prefixes:","Namensprefixes:" }, | 390 | { "Honorific prefixes:","Namensprefixes:" }, |
391 | { "Given name:","Vorname:" }, | 391 | { "Given name:","Vorname:" }, |
392 | { "Additional names:","Mittelnamen:" }, | 392 | { "Additional names:","Mittelnamen:" }, |
393 | { "Family names:","Nachname:" }, | 393 | { "Family names:","Nachname:" }, |
394 | { "Honorific suffixes:","Namenssuffixe:" }, | 394 | { "Honorific suffixes:","Namenssuffixe:" }, |
395 | { "Parse name automatically","Setze Namen automatisch" }, | 395 | { "Parse name automatically","Setze Namen automatisch" }, |
396 | { "Edit Phone Numbers","Bearbeite Telefonnummern" }, | 396 | { "Edit Phone Numbers","Bearbeite Telefonnummern" }, |
397 | { "Number","Nummer" }, | 397 | { "Number","Nummer" }, |
398 | { "Type","Typ" }, | 398 | { "Type","Typ" }, |
399 | { "Edit Phone Number","Bearbeite Telefonnummer" }, | 399 | { "Edit Phone Number","Bearbeite Telefonnummer" }, |
400 | { "Number:","Nummer:" }, | 400 | { "Number:","Nummer:" }, |
401 | { "This is the preferred phone number","Dies ist die bevorzugte Telefonnummer" }, | 401 | { "This is the preferred phone number","Dies ist die bevorzugte Telefonnummer" }, |
402 | { "Types","Typen" }, | 402 | { "Types","Typen" }, |
403 | { "Messenger","Messenger" }, | 403 | { "Messenger","Messenger" }, |
404 | { "Other","Anderes" }, | 404 | { "Other","Anderes" }, |
405 | { "Video","Video" }, | 405 | { "Video","Video" }, |
406 | { "Mailbox","Mailbox" }, | 406 | { "Mailbox","Mailbox" }, |
407 | { "Modem","Modem" }, | 407 | { "Modem","Modem" }, |
408 | { "Car","Auto" }, | 408 | { "Car","Auto" }, |
409 | { "PCS","PCS" }, | 409 | { "PCS","PCS" }, |
410 | { "Category","Kategorie" }, | 410 | { "Category","Kategorie" }, |
411 | { "Select Categories","Wähle Kategorien" }, | 411 | { "Select Categories","Wähle Kategorien" }, |
412 | { " &Deselect All "," &Deselektiere alle " }, | 412 | { " &Deselect All "," &Deselektiere alle " }, |
413 | { " &Edit Categories "," B&earbeite Kategorien " }, | 413 | { " &Edit Categories "," B&earbeite Kategorien " }, |
414 | { "&OK","&OK" }, | 414 | { "&OK","&OK" }, |
415 | { "&Cancel","Abbre&chen" }, | 415 | { "&Cancel","Abbre&chen" }, |
416 | { "Configure","Konfiguriere" }, | 416 | { "Configure","Konfiguriere" }, |
417 | { "Default","Voreinstellungen" }, | 417 | { "Default","Voreinstellungen" }, |
418 | { "Addressbook","Adressbuch" }, | 418 | { "Addressbook","Adressbuch" }, |
419 | { "Details view font","Schriftart Detailansicht" }, | 419 | { "Details view font","Schriftart Detailansicht" }, |
420 | { "phone:123","phone:123" }, | 420 | { "phone:123","phone:123" }, |
421 | { "Search only after <return> key pressed","Suche nur nach <return> Taste" }, | 421 | { "Search only after <return> key pressed","Suche nur nach <return> Taste" }, |
422 | { "Honor KDE single click","Benutze KDE Einzelklick" }, | 422 | { "Honor KDE single click","Benutze KDE Einzelklick" }, |
423 | { "Automatic name parsing for new addressees","Automa. Name Parsen für neue Einträge" }, | 423 | { "Automatic name parsing for new addressees","Automa. Name Parsen für neue Einträge" }, |
424 | { "Display List and Details at once (restart)","Zeige Liste und Details zusammen(neustart)" }, | 424 | { "Display List and Details at once (restart)","Zeige Liste und Details zusammen(neustart)" }, |
425 | { "Ask for quit when closing Ka/Pi","Vor Beenden von Ka/Pi nachfragen" }, | 425 | { "Ask for quit when closing Ka/Pi","Vor Beenden von Ka/Pi nachfragen" }, |
426 | { "General","Algemein" }, | 426 | { "General","Algemein" }, |
427 | { "Extensions (restart)","Extensions (restart)" }, | 427 | { "Extensions (restart)","Extensions (restart)" }, |
428 | { "Description","Beschreibungen" }, | 428 | { "Description","Beschreibungen" }, |
429 | { "Extensions","Extensions" }, | 429 | { "Extensions","Extensions" }, |
430 | { "Prefixes","Prefixe" }, | 430 | { "Prefixes","Prefixe" }, |
431 | { "Inclusions","Inclusions" }, | 431 | { "Inclusions","Inclusions" }, |
432 | { "Suffixes","Suffixe" }, | 432 | { "Suffixes","Suffixe" }, |
433 | { "Default formatted name:","Default format. Name:" }, | 433 | { "Default formatted name:","Default format. Name:" }, |
434 | { "Empty","Leer" }, | 434 | { "Empty","Leer" }, |
435 | { "Simple Name","Einfacher Name" }, | 435 | { "Simple Name","Einfacher Name" }, |
436 | { "Full Name","Voller Name" }, | 436 | { "Full Name","Voller Name" }, |
437 | { "Reverse Name","Namen umdrehen" }, | 437 | { "Reverse Name","Namen umdrehen" }, |
438 | { "Contact","Kontakt" }, | 438 | { "Contact","Kontakt" }, |
439 | { "Global","Allgemein" }, | 439 | { "Global","Allgemein" }, |
440 | { "Phone","Telefon" }, | 440 | { "Phone","Telefon" }, |
441 | { "SMS","SMS" }, | 441 | { "SMS","SMS" }, |
442 | { "Language:(needs restart)","Sprache:(Neustart)" }, | 442 | { "Language:(needs restart)","Sprache:(Neustart)" }, |
443 | { "English","English" }, | 443 | { "English","English" }, |
444 | { "German","Deutsch" }, | 444 | { "German","Deutsch" }, |
445 | { "French","Französisch" }, | 445 | { "French","Französisch" }, |
446 | { "Italian","Italienisch" }, | 446 | { "Italian","Italienisch" }, |
447 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, | 447 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, |
448 | { "Time Format(nr):","Zeit Format(nr):" }, | 448 | { "Time Format(nr):","Zeit Format(nr):" }, |
449 | { "24:00","24:00" }, | 449 | { "24:00","24:00" }, |
450 | { "12:00am","12:00am" }, | 450 | { "12:00am","12:00am" }, |
451 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 451 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
452 | { "Locale","Locale" }, | 452 | { "Locale","Locale" }, |
453 | { "Date Format:","Datums Format:" }, | 453 | { "Date Format:","Datums Format:" }, |
454 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 454 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
455 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 455 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
456 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 456 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
457 | { "User defined","Benutzerdefiniert" }, | 457 | { "User defined","Benutzerdefiniert" }, |
458 | { "User long date:","Format langes Datum:" }, | 458 | { "User long date:","Format langes Datum:" }, |
459 | { "User short date:","Format kurzes Datum:" }, | 459 | { "User short date:","Format kurzes Datum:" }, |
460 | { "Daylight start:","Sommerzeit Beginn:" }, | 460 | { "Daylight start:","Sommerzeit Beginn:" }, |
461 | { "Daylight end:","Sommerzeit Ende:" }, | 461 | { "Daylight end:","Sommerzeit Ende:" }, |
462 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 462 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
463 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, | 463 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, |
464 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 464 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
465 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 465 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
466 | { "Date Format","Datums Format" }, | 466 | { "Date Format","Datums Format" }, |
467 | { "Timezone:","Zeitzone:" }, | 467 | { "Timezone:","Zeitzone:" }, |
468 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 468 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
469 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 469 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
470 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 470 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
471 | { "Used Mail Client","Benutzter Mail Client" }, | 471 | { "Used Mail Client","Benutzter Mail Client" }, |
472 | { "Channel:","Channel:" }, | 472 | { "Channel:","Channel:" }, |
473 | { "Message:","Message:" }, | 473 | { "Message:","Message:" }, |
474 | { "Parameters:","Parameter:" }, | 474 | { "Parameters:","Parameter:" }, |
475 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 475 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
476 | { "extra Message:","extra Message:" }, | 476 | { "extra Message:","extra Message:" }, |
477 | { "extra Parameters:","extra Parameter:" }, | 477 | { "extra Parameters:","extra Parameter:" }, |
478 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 478 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
479 | { "External Apps.","Externe Appl." }, | 479 | { "External Apps.","Externe Appl." }, |
480 | { "Used %1 Client","Benutzer %1 Client" }, | 480 | { "Used %1 Client","Benutzer %1 Client" }, |
481 | { "No email client installed","Keine Email Client installiert" }, | 481 | { "No email client installed","Keine Email Client installiert" }, |
482 | { "Userdefined email client","Benutzerdef. Email Client" }, | 482 | { "Userdefined email client","Benutzerdef. Email Client" }, |
483 | { "OM/Pi email client","OM/Pi Email Client" }, | 483 | { "OM/Pi email client","OM/Pi Email Client" }, |
484 | { "Close KA/Pi?","Schließe KA/Pi?" }, | 484 | { "Close KA/Pi?","Schließe KA/Pi?" }, |
485 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, | 485 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, |
486 | { "Yes!","Ja!" }, | 486 | { "Yes!","Ja!" }, |
487 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, | 487 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, |
488 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, | 488 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, |
489 | { "Addressbook saved!","Adressbuch gespeichert!" }, | 489 | { "Addressbook saved!","Adressbuch gespeichert!" }, |
490 | { "Default Table View","Default Tabellenansicht" }, | 490 | { "Default Table View","Default Tabellenansicht" }, |
491 | { "Merge and Remove","Zusammenfügen/entfernen" }, | 491 | { "Merge and Remove","Zusammenfügen/entfernen" }, |
492 | { "Merge","Zusammenfügen" }, | 492 | { "Merge","Zusammenfügen" }, |
493 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, | 493 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, |
494 | { "New List...","Neue Liste..." }, | 494 | { "New List...","Neue Liste..." }, |
495 | { "Rename List...","Ändere Namen..." }, | 495 | { "Rename List...","Ändere Namen..." }, |
496 | { "Remove List","Lösche Liste" }, | 496 | { "Remove List","Lösche Liste" }, |
497 | { "Add Contact","Kontakt hinzu" }, | 497 | { "Add Contact","Kontakt hinzu" }, |
498 | { "Change Email...","Ändere Email..." }, | 498 | { "Change Email...","Ändere Email..." }, |
499 | { "Remove Contact","Entferne Kontakt" }, | 499 | { "Remove Contact","Entferne Kontakt" }, |
500 | { "Use Preferred","Nutze Preferred" }, | 500 | { "Use Preferred","Nutze Preferred" }, |
501 | { "Distribution List Editor","Distribution List Editor" }, | 501 | { "Distribution List Editor","Distribution List Editor" }, |
502 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, | 502 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, |
503 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, | 503 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, |
504 | { "Contact Selection","Kontaktauswahl" }, | 504 | { "Contact Selection","Kontaktauswahl" }, |
505 | { "&All","&Alle" }, | 505 | { "&All","&Alle" }, |
506 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, | 506 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, |
507 | { "&Selected","Au&sgewählte" }, | 507 | { "&Selected","Au&sgewählte" }, |
508 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, | 508 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, |
509 | { "By matching &filter","Zutreffender &Filter" }, | 509 | { "By matching &filter","Zutreffender &Filter" }, |
510 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, | 510 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, |
511 | { "By Cate&gories","Kategorien" }, | 511 | { "By Cate&gories","Kategorien" }, |
512 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, | 512 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, |
513 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, | 513 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, |
514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, | 514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, |
515 | { "Sorting","Sortieren" }, | 515 | { "Sorting","Sortieren" }, |
516 | { "Criterion:","Merkmal:" }, | 516 | { "Criterion:","Merkmal:" }, |
517 | { "Order:","Reihenfolge:" }, | 517 | { "Order:","Reihenfolge:" }, |
518 | { "Ascending","Aufsteigend" }, | 518 | { "Ascending","Aufsteigend" }, |
519 | { "Descending","Absteigend" }, | 519 | { "Descending","Absteigend" }, |
520 | { "Save file","Datei speichern" }, | 520 | { "Save file","Datei speichern" }, |
521 | { "Error","Fehler" }, | 521 | { "Error","Fehler" }, |
522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, | 522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, |
523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, | 523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, |
524 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 524 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
525 | { "&File","Datei" }, | 525 | { "&File","Datei" }, |
526 | { "&Edit","Bearbeite" }, | 526 | { "&Edit","Bearbeite" }, |
527 | { "&View","Ansichten" }, | 527 | { "&View","Ansichten" }, |
528 | { "&Settings","Konfiguration" }, | 528 | { "&Settings","Konfiguration" }, |
529 | { "&Change selected","Ändere Selekt." }, | 529 | { "&Change selected","Ändere Selekt." }, |
530 | { "&Help","Hilfe" }, | 530 | { "&Help","Hilfe" }, |
531 | { "","" }, | 531 | { "","" }, |
532 | { "","" }, | 532 | { "","" }, |
533 | { "","" }, | 533 | { "","" }, |
534 | { "","" }, | 534 | { "","" }, |
535 | { "","" }, | 535 | { "","" }, |
536 | { "","" }, | 536 | { "","" }, |
537 | { "","" }, | 537 | { "","" }, |
538 | { "","" }, | 538 | { "","" }, |
539 | { "","" }, \ No newline at end of file | 539 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 2e1ae6e..66f6977 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp | |||
@@ -1,433 +1,439 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in thse hope that it will be useful, | 10 | This program is distributed in thse 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 | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qtooltip.h> | 24 | #include <qtooltip.h> |
25 | #include <qfiledialog.h> | 25 | #include <qfiledialog.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qvbox.h> | 27 | #include <qvbox.h> |
28 | #include <qbuttongroup.h> | 28 | #include <qbuttongroup.h> |
29 | #include <qvgroupbox.h> | 29 | #include <qvgroupbox.h> |
30 | #include <qwidgetstack.h> | 30 | #include <qwidgetstack.h> |
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
32 | #include <qapp.h> | 32 | #include <qapp.h> |
33 | 33 | ||
34 | #include <klocale.h> | 34 | #include <klocale.h> |
35 | #include <kglobal.h> | 35 | #include <kglobal.h> |
36 | #include <kiconloader.h> | 36 | #include <kiconloader.h> |
37 | #include <kstandarddirs.h> | 37 | #include <kstandarddirs.h> |
38 | #include <kmessagebox.h> | 38 | #include <kmessagebox.h> |
39 | #ifndef KORG_NOKABC | 39 | #ifndef KORG_NOKABC |
40 | 40 | ||
41 | #ifdef DESKTOP_VERSION | 41 | #ifdef DESKTOP_VERSION |
42 | #include <kabc/addresseedialog.h> | 42 | #include <kabc/addresseedialog.h> |
43 | #else //DESKTOP_VERSION | 43 | #else //DESKTOP_VERSION |
44 | #include <externalapphandler.h> | 44 | #include <externalapphandler.h> |
45 | #endif //DESKTOP_VERSION | 45 | #endif //DESKTOP_VERSION |
46 | 46 | ||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #include <libkcal/incidence.h> | 49 | #include <libkcal/incidence.h> |
50 | 50 | ||
51 | #include "koprefs.h" | 51 | #include "koprefs.h" |
52 | 52 | ||
53 | #include "koeditordetails.h" | 53 | #include "koeditordetails.h" |
54 | 54 | ||
55 | template <> | 55 | template <> |
56 | CustomListViewItem<class Attendee *>::~CustomListViewItem() | 56 | CustomListViewItem<class Attendee *>::~CustomListViewItem() |
57 | { | 57 | { |
58 | delete mData; | 58 | delete mData; |
59 | } | 59 | } |
60 | 60 | ||
61 | template <> | 61 | template <> |
62 | void CustomListViewItem<class Attendee *>::updateItem() | 62 | void CustomListViewItem<class Attendee *>::updateItem() |
63 | { | 63 | { |
64 | setText(0,mData->name()); | 64 | setText(0,mData->name()); |
65 | setText(1,mData->email()); | 65 | setText(1,mData->email()); |
66 | setText(2,mData->roleStr()); | 66 | setText(2,mData->roleStr()); |
67 | setText(3,mData->statusStr()); | 67 | setText(3,mData->statusStr()); |
68 | if (mData->RSVP() && !mData->email().isEmpty()) | 68 | if (mData->RSVP() && !mData->email().isEmpty()) |
69 | setPixmap(4,SmallIcon("mailappt")); | 69 | setPixmap(4,SmallIcon("mailappt")); |
70 | else | 70 | else |
71 | setPixmap(4,SmallIcon("nomailappt")); | 71 | setPixmap(4,SmallIcon("nomailappt")); |
72 | } | 72 | } |
73 | 73 | ||
74 | 74 | ||
75 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) | 75 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) |
76 | : QWidget( parent, name), mDisableItemUpdate( false ) | 76 | : QWidget( parent, name), mDisableItemUpdate( false ) |
77 | { | 77 | { |
78 | QGridLayout *topLayout = new QGridLayout(this); | 78 | QGridLayout *topLayout = new QGridLayout(this); |
79 | topLayout->setSpacing(spacing); | 79 | topLayout->setSpacing(spacing); |
80 | 80 | ||
81 | QString organizer = KOPrefs::instance()->email(); | 81 | QString organizer = KOPrefs::instance()->email(); |
82 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); | 82 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); |
83 | 83 | ||
84 | mListView = new KListView(this,"mListView"); | 84 | mListView = new KListView(this,"mListView"); |
85 | mListView->addColumn(i18n("Name"),180); | 85 | mListView->addColumn(i18n("Name"),180); |
86 | mListView->addColumn(i18n("Email"),180); | 86 | mListView->addColumn(i18n("Email"),180); |
87 | mListView->addColumn(i18n("Role"),60); | 87 | mListView->addColumn(i18n("Role"),60); |
88 | mListView->addColumn(i18n("Status"),100); | 88 | mListView->addColumn(i18n("Status"),100); |
89 | mListView->addColumn(i18n("RSVP"),35); | 89 | mListView->addColumn(i18n("RSVP"),35); |
90 | if ( KOPrefs::instance()->mCompactDialogs ) { | 90 | if ( KOPrefs::instance()->mCompactDialogs ) { |
91 | //mListView->setFixedHeight(78); | 91 | //mListView->setFixedHeight(78); |
92 | } | 92 | } |
93 | 93 | ||
94 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), | 94 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), |
95 | SLOT(updateAttendeeInput())); | 95 | SLOT(updateAttendeeInput())); |
96 | 96 | ||
97 | QLabel *attendeeLabel = new QLabel(this); | 97 | QLabel *attendeeLabel = new QLabel(this); |
98 | attendeeLabel->setText(i18n("Name:")); | 98 | attendeeLabel->setText(i18n("Name:")); |
99 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); | 99 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); |
100 | mNameEdit = new QLineEdit(this); | 100 | mNameEdit = new QLineEdit(this); |
101 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), | 101 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), |
102 | SLOT(updateAttendeeItem())); | 102 | SLOT(updateAttendeeItem())); |
103 | 103 | ||
104 | mUidEdit = new QLineEdit(0); | 104 | mUidEdit = new QLineEdit(0); |
105 | mUidEdit->setText(""); | 105 | mUidEdit->setText(""); |
106 | 106 | ||
107 | QLabel *emailLabel = new QLabel(this); | 107 | QLabel *emailLabel = new QLabel(this); |
108 | emailLabel->setText(i18n("Email:")); | 108 | emailLabel->setText(i18n("Email:")); |
109 | mEmailEdit = new QLineEdit(this); | 109 | mEmailEdit = new QLineEdit(this); |
110 | connect(mEmailEdit,SIGNAL(textChanged(const QString &)), | 110 | connect(mEmailEdit,SIGNAL(textChanged(const QString &)), |
111 | SLOT(updateAttendeeItem())); | 111 | SLOT(updateAttendeeItem())); |
112 | 112 | ||
113 | QLabel *attendeeRoleLabel = new QLabel(this); | 113 | QLabel *attendeeRoleLabel = new QLabel(this); |
114 | attendeeRoleLabel->setText(i18n("Role:")); | 114 | attendeeRoleLabel->setText(i18n("Role:")); |
115 | mRoleCombo = new QComboBox(false,this); | 115 | mRoleCombo = new QComboBox(false,this); |
116 | mRoleCombo->insertStringList(Attendee::roleList()); | 116 | mRoleCombo->insertStringList(Attendee::roleList()); |
117 | connect(mRoleCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); | 117 | connect(mRoleCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); |
118 | 118 | ||
119 | QLabel *statusLabel = new QLabel(this); | 119 | QLabel *statusLabel = new QLabel(this); |
120 | statusLabel->setText( i18n("Status:") ); | 120 | statusLabel->setText( i18n("Status:") ); |
121 | 121 | ||
122 | mStatusCombo = new QComboBox(false,this); | 122 | mStatusCombo = new QComboBox(false,this); |
123 | mStatusCombo->insertStringList(Attendee::statusList()); | 123 | mStatusCombo->insertStringList(Attendee::statusList()); |
124 | connect(mStatusCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); | 124 | connect(mStatusCombo,SIGNAL(activated(int)),SLOT(updateAttendeeItem())); |
125 | 125 | ||
126 | mRsvpButton = new QCheckBox(this); | 126 | mRsvpButton = new QCheckBox(this); |
127 | mRsvpButton->setText(i18n("Request response")); | 127 | mRsvpButton->setText(i18n("Request response")); |
128 | connect(mRsvpButton,SIGNAL(clicked()),SLOT(updateAttendeeItem())); | 128 | connect(mRsvpButton,SIGNAL(clicked()),SLOT(updateAttendeeItem())); |
129 | QWidget *buttonBox = new QWidget(this); | 129 | QWidget *buttonBox = new QWidget(this); |
130 | QVBoxLayout *buttonLayout = new QVBoxLayout(buttonBox); | 130 | QVBoxLayout *buttonLayout = new QVBoxLayout(buttonBox); |
131 | 131 | ||
132 | QPushButton *newButton = new QPushButton(i18n("&New"),buttonBox); | 132 | QPushButton *newButton = new QPushButton(i18n("&New"),buttonBox); |
133 | buttonLayout->addWidget(newButton); | 133 | buttonLayout->addWidget(newButton); |
134 | connect(newButton,SIGNAL(clicked()),SLOT(addNewAttendee())); | 134 | connect(newButton,SIGNAL(clicked()),SLOT(addNewAttendee())); |
135 | 135 | ||
136 | mRemoveButton = new QPushButton(i18n("&Remove"),buttonBox); | 136 | mRemoveButton = new QPushButton(i18n("&Remove"),buttonBox); |
137 | buttonLayout->addWidget(mRemoveButton); | 137 | buttonLayout->addWidget(mRemoveButton); |
138 | connect(mRemoveButton, SIGNAL(clicked()),SLOT(removeAttendee())); | 138 | connect(mRemoveButton, SIGNAL(clicked()),SLOT(removeAttendee())); |
139 | 139 | ||
140 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); | 140 | mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); |
141 | // buttonLayout->addWidget(mAddressBookButton); | 141 | // buttonLayout->addWidget(mAddressBookButton); |
142 | connect(mAddressBookButton,SIGNAL(clicked()),SLOT(openAddressBook())); | 142 | connect(mAddressBookButton,SIGNAL(clicked()),SLOT(openAddressBook())); |
143 | //mRoleCombo->setFixedSize( mRoleCombo->sizeHint () ); | 143 | //mRoleCombo->setFixedSize( mRoleCombo->sizeHint () ); |
144 | 144 | ||
145 | if (qApp->desktop()->width() < 300 ) { | 145 | if (qApp->desktop()->width() < 300 ) { |
146 | mListView->setFixedHeight(80); | 146 | mListView->setFixedHeight(80); |
147 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,3); | 147 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,3); |
148 | topLayout->addMultiCellWidget(mListView,1,1,0,3); | 148 | topLayout->addMultiCellWidget(mListView,1,1,0,3); |
149 | topLayout->addWidget(attendeeLabel,3,0); | 149 | topLayout->addWidget(attendeeLabel,3,0); |
150 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,2); | 150 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,2); |
151 | topLayout->addWidget(emailLabel,4,0); | 151 | topLayout->addWidget(emailLabel,4,0); |
152 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,2); | 152 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,2); |
153 | topLayout->addWidget(attendeeRoleLabel,5,0); | 153 | topLayout->addWidget(attendeeRoleLabel,5,0); |
154 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); | 154 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); |
155 | topLayout->addWidget(statusLabel,6,0); | 155 | topLayout->addWidget(statusLabel,6,0); |
156 | topLayout->addMultiCellWidget(mStatusCombo,6,6,1,2); | 156 | topLayout->addMultiCellWidget(mStatusCombo,6,6,1,2); |
157 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,2,3); | 157 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,2,3); |
158 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); | 158 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); |
159 | topLayout->addMultiCellWidget(buttonBox,3,4,3,3); | 159 | topLayout->addMultiCellWidget(buttonBox,3,4,3,3); |
160 | topLayout->setRowStretch(1,2); | 160 | topLayout->setRowStretch(1,2); |
161 | topLayout->setColStretch(0,0); | 161 | topLayout->setColStretch(0,0); |
162 | topLayout->setColStretch(1,2); | 162 | topLayout->setColStretch(1,2); |
163 | topLayout->setColStretch(2,1); | 163 | topLayout->setColStretch(2,1); |
164 | topLayout->setColStretch(3,1); | 164 | topLayout->setColStretch(3,1); |
165 | 165 | ||
166 | } else { | 166 | } else { |
167 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,5); | 167 | topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,5); |
168 | topLayout->addMultiCellWidget(mListView,1,1,0,5); | 168 | topLayout->addMultiCellWidget(mListView,1,1,0,5); |
169 | topLayout->addWidget(attendeeLabel,3,0); | 169 | topLayout->addWidget(attendeeLabel,3,0); |
170 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,4); | 170 | topLayout->addMultiCellWidget(mNameEdit,3,3,1,4); |
171 | topLayout->addWidget(emailLabel,4,0); | 171 | topLayout->addWidget(emailLabel,4,0); |
172 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,4); | 172 | topLayout->addMultiCellWidget(mEmailEdit,4,4,1,4); |
173 | topLayout->addWidget(attendeeRoleLabel,5,0); | 173 | topLayout->addWidget(attendeeRoleLabel,5,0); |
174 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); | 174 | topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2); |
175 | topLayout->addWidget(statusLabel,5,3); | 175 | topLayout->addWidget(statusLabel,5,3); |
176 | topLayout->addMultiCellWidget(mStatusCombo,5,5,4,5); | 176 | topLayout->addMultiCellWidget(mStatusCombo,5,5,4,5); |
177 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,4,5); | 177 | topLayout->addMultiCellWidget(mAddressBookButton,2,2,4,5); |
178 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); | 178 | topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1); |
179 | topLayout->addMultiCellWidget(buttonBox,3,4,5,5); | 179 | topLayout->addMultiCellWidget(buttonBox,3,4,5,5); |
180 | topLayout->setRowStretch(1,5); | 180 | topLayout->setRowStretch(1,5); |
181 | topLayout->setColStretch(0,0); | 181 | topLayout->setColStretch(0,0); |
182 | } | 182 | } |
183 | // #if 0 | 183 | // #if 0 |
184 | // topLayout->setColStretch(2,1); | 184 | // topLayout->setColStretch(2,1); |
185 | // topLayout->addWidget(statusLabel,3,3); | 185 | // topLayout->addWidget(statusLabel,3,3); |
186 | // topLayout->addWidget(mStatusCombo,3,4); | 186 | // topLayout->addWidget(mStatusCombo,3,4); |
187 | // #else | 187 | // #else |
188 | // topLayout->addWidget(statusLabel,4,3); | 188 | // topLayout->addWidget(statusLabel,4,3); |
189 | // // topLayout->addWidget(mStatusCombo,4,3); | 189 | // // topLayout->addWidget(mStatusCombo,4,3); |
190 | // topLayout->addMultiCellWidget(mStatusCombo,4,4,4,5); | 190 | // topLayout->addMultiCellWidget(mStatusCombo,4,4,4,5); |
191 | 191 | ||
192 | // #endif | 192 | // #endif |
193 | // // topLayout->setRowStretch(5,1); | 193 | // // topLayout->setRowStretch(5,1); |
194 | // topLayout->addMultiCellWidget(mRsvpButton,5,5,0,1); | 194 | // topLayout->addMultiCellWidget(mRsvpButton,5,5,0,1); |
195 | // topLayout->addMultiCellWidget(buttonBox,2,3,5,5); | 195 | // topLayout->addMultiCellWidget(buttonBox,2,3,5,5); |
196 | // topLayout->setRowStretch(1,5); | 196 | // topLayout->setRowStretch(1,5); |
197 | // topLayout->setColStretch(0,0); | 197 | // topLayout->setColStretch(0,0); |
198 | 198 | ||
199 | #ifdef KORG_NOKABC | 199 | #ifdef KORG_NOKABC |
200 | mAddressBookButton->hide(); | 200 | mAddressBookButton->hide(); |
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | updateAttendeeInput(); | 203 | updateAttendeeInput(); |
204 | #ifndef DESKTOP_VERSION | 204 | #ifndef DESKTOP_VERSION |
205 | //US listen for arriving address resultsets | 205 | //US listen for arriving address resultsets |
206 | connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), | 206 | connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), |
207 | this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); | 207 | this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); |
208 | #endif | 208 | #endif |
209 | 209 | ||
210 | } | 210 | } |
211 | 211 | ||
212 | KOEditorDetails::~KOEditorDetails() | 212 | KOEditorDetails::~KOEditorDetails() |
213 | { | 213 | { |
214 | } | 214 | } |
215 | 215 | ||
216 | void KOEditorDetails::removeAttendee() | 216 | void KOEditorDetails::removeAttendee() |
217 | { | 217 | { |
218 | AttendeeListItem *aItem = (AttendeeListItem *)mListView->selectedItem(); | 218 | AttendeeListItem *aItem = (AttendeeListItem *)mListView->selectedItem(); |
219 | if (!aItem) return; | 219 | if (!aItem) return; |
220 | 220 | ||
221 | Attendee *delA = new Attendee(aItem->data()->name(),aItem->data()->email(), | 221 | Attendee *delA = new Attendee(aItem->data()->name(),aItem->data()->email(), |
222 | aItem->data()->RSVP(),aItem->data()->status(),aItem->data()->role(), | 222 | aItem->data()->RSVP(),aItem->data()->status(),aItem->data()->role(), |
223 | aItem->data()->uid()); | 223 | aItem->data()->uid()); |
224 | mdelAttendees.append(delA); | 224 | mdelAttendees.append(delA); |
225 | 225 | ||
226 | delete aItem; | 226 | delete aItem; |
227 | 227 | ||
228 | updateAttendeeInput(); | 228 | updateAttendeeInput(); |
229 | } | 229 | } |
230 | 230 | ||
231 | 231 | ||
232 | void KOEditorDetails::openAddressBook() | 232 | void KOEditorDetails::openAddressBook() |
233 | { | 233 | { |
234 | #ifndef KORG_NOKABC | 234 | #ifndef KORG_NOKABC |
235 | 235 | ||
236 | #ifdef DESKTOP_VERSION | 236 | #ifdef DESKTOP_VERSION |
237 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 237 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
238 | uint i=0; | 238 | uint i=0; |
239 | for (i=0; i < list.count(); i++) { | 239 | for (i=0; i < list.count(); i++) { |
240 | insertAttendee( new Attendee( list[i].realName(), list[i].preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,list[i].uid()) ); | 240 | insertAttendee( new Attendee( list[i].realName(), list[i].preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,list[i].uid()) ); |
241 | } | 241 | } |
242 | #else | 242 | #else |
243 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/kopi", this->name() /* name is here the unique uid*/); | 243 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/kopi", this->name() /* name is here the unique uid*/); |
244 | // the result should now arrive through method insertAttendees | 244 | // the result should now arrive through method insertAttendees |
245 | #endif | 245 | #endif |
246 | 246 | ||
247 | 247 | ||
248 | #if 0 | 248 | #if 0 |
249 | KABC::Addressee a = KABC::AddresseeDialog::getAddressee(this); | 249 | KABC::Addressee a = KABC::AddresseeDialog::getAddressee(this); |
250 | if (!a.isEmpty()) { | 250 | if (!a.isEmpty()) { |
251 | insertAttendee( new Attendee( a.realName(), a.preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,a.uid()) ); | 251 | insertAttendee( new Attendee( a.realName(), a.preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,a.uid()) ); |
252 | } | 252 | } |
253 | #endif | 253 | #endif |
254 | #endif | 254 | #endif |
255 | } | 255 | } |
256 | 256 | ||
257 | 257 | ||
258 | void KOEditorDetails::addNewAttendee() | 258 | void KOEditorDetails::addNewAttendee() |
259 | { | 259 | { |
260 | #if 0 | 260 | #if 0 |
261 | // this is cool. If they didn't enter an email address, | 261 | // this is cool. If they didn't enter an email address, |
262 | // try to look it up in the address book and fill it in for them. | 262 | // try to look it up in the address book and fill it in for them. |
263 | if (QString(mEmailEdit->text()).stripWhiteSpace().isEmpty()) { | 263 | if (QString(mEmailEdit->text()).stripWhiteSpace().isEmpty()) { |
264 | KabAPI addrBook; | 264 | KabAPI addrBook; |
265 | QString name; | 265 | QString name; |
266 | std::list<AddressBook::Entry> entries; | 266 | std::list<AddressBook::Entry> entries; |
267 | name = mNameEdit->text(); | 267 | name = mNameEdit->text(); |
268 | if (addrBook.init() == AddressBook::NoError) { | 268 | if (addrBook.init() == AddressBook::NoError) { |
269 | if (addrBook.getEntryByName(name, entries, 1) == AddressBook::NoError) { | 269 | if (addrBook.getEntryByName(name, entries, 1) == AddressBook::NoError) { |
270 | kdDebug() << "positive match" << endl; | 270 | kdDebug() << "positive match" << endl; |
271 | // take first email address | 271 | // take first email address |
272 | if (!entries.front().emails.isEmpty() && | 272 | if (!entries.front().emails.isEmpty() && |
273 | entries.front().emails.first().length()>0) | 273 | entries.front().emails.first().length()>0) |
274 | mEmailEdit->setText(entries.front().emails.first()); | 274 | mEmailEdit->setText(entries.front().emails.first()); |
275 | } | 275 | } |
276 | } | 276 | } |
277 | } | 277 | } |
278 | #endif | 278 | #endif |
279 | 279 | ||
280 | Attendee *a = new Attendee(i18n("(EmptyName)"),i18n("(EmptyEmail)")); | 280 | Attendee *a = new Attendee(i18n("(EmptyName)"),i18n("(EmptyEmail)")); |
281 | insertAttendee(a); | 281 | insertAttendee(a); |
282 | } | 282 | } |
283 | 283 | ||
284 | //the map includes name/email pairs, that comes from Ka/Pi | 284 | //the map includes name/email pairs, that comes from Ka/Pi |
285 | void KOEditorDetails::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) | 285 | void KOEditorDetails::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) |
286 | { | 286 | { |
287 | if (uid == this->name()) | 287 | if (uid == this->name()) |
288 | { | 288 | { |
289 | for ( int i = 0; i < nameList.count(); i++) | 289 | for ( int i = 0; i < nameList.count(); i++) |
290 | { | 290 | { |
291 | QString _name = nameList[i]; | 291 | QString _name = nameList[i]; |
292 | QString _email = emailList[i]; | 292 | QString _email = emailList[i]; |
293 | QString _uid = uidList[i]; | 293 | QString _uid = uidList[i]; |
294 | 294 | ||
295 | Attendee *a = new Attendee(_name,_email,false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant, _uid); | 295 | Attendee *a = new Attendee(_name,_email,false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant, _uid); |
296 | insertAttendee(a); | 296 | insertAttendee(a); |
297 | } | 297 | } |
298 | } | 298 | } |
299 | 299 | ||
300 | } | 300 | } |
301 | 301 | ||
302 | |||
303 | void KOEditorDetails::insertAttendee(Attendee *a) | 302 | void KOEditorDetails::insertAttendee(Attendee *a) |
304 | { | 303 | { |
304 | AttendeeListItem *first = (AttendeeListItem*) mListView->firstChild(); | ||
305 | while (first) { | ||
306 | if ( first->data()->name() == a->name() && first->data()->email() == a->email() ) | ||
307 | return; | ||
308 | first = (AttendeeListItem*) first->nextSibling(); | ||
309 | } | ||
310 | |||
305 | AttendeeListItem *item = new AttendeeListItem(a,mListView); | 311 | AttendeeListItem *item = new AttendeeListItem(a,mListView); |
306 | mListView->setSelected( item, true ); | 312 | mListView->setSelected( item, true ); |
307 | } | 313 | } |
308 | 314 | ||
309 | void KOEditorDetails::setDefaults() | 315 | void KOEditorDetails::setDefaults() |
310 | { | 316 | { |
311 | mRsvpButton->setChecked(true); | 317 | mRsvpButton->setChecked(true); |
312 | mListView->clear(); | 318 | mListView->clear(); |
313 | mdelAttendees.clear(); | 319 | mdelAttendees.clear(); |
314 | clearAttendeeInput(); | 320 | clearAttendeeInput(); |
315 | mOrganizerLabel->setText(i18n("Organizer: %1").arg(KOPrefs::instance()->email())); | 321 | mOrganizerLabel->setText(i18n("Organizer: %1").arg(KOPrefs::instance()->email())); |
316 | 322 | ||
317 | mNameEdit->setText(""); | 323 | mNameEdit->setText(""); |
318 | mUidEdit->setText(""); | 324 | mUidEdit->setText(""); |
319 | mEmailEdit->setText(""); | 325 | mEmailEdit->setText(""); |
320 | mRoleCombo->setCurrentItem( 0 ); | 326 | mRoleCombo->setCurrentItem( 0 ); |
321 | mStatusCombo->setCurrentItem( 0 ); | 327 | mStatusCombo->setCurrentItem( 0 ); |
322 | 328 | ||
323 | } | 329 | } |
324 | 330 | ||
325 | void KOEditorDetails::readEvent(Incidence *event) | 331 | void KOEditorDetails::readEvent(Incidence *event) |
326 | { | 332 | { |
327 | setDefaults(); | 333 | setDefaults(); |
328 | //mListView->clear(); | 334 | //mListView->clear(); |
329 | //mdelAttendees.clear(); | 335 | //mdelAttendees.clear(); |
330 | QPtrList<Attendee> tmpAList = event->attendees(); | 336 | QPtrList<Attendee> tmpAList = event->attendees(); |
331 | Attendee *a; | 337 | Attendee *a; |
332 | for (a = tmpAList.first(); a; a = tmpAList.next()) | 338 | for (a = tmpAList.first(); a; a = tmpAList.next()) |
333 | insertAttendee(new Attendee(*a)); | 339 | insertAttendee(new Attendee(*a)); |
334 | 340 | ||
335 | mListView->setSelected( mListView->firstChild(), true ); | 341 | mListView->setSelected( mListView->firstChild(), true ); |
336 | mOrganizerLabel->setText(i18n("Organizer: %1").arg(event->organizer())); | 342 | mOrganizerLabel->setText(i18n("Organizer: %1").arg(event->organizer())); |
337 | } | 343 | } |
338 | 344 | ||
339 | void KOEditorDetails::writeEvent(Incidence *event) | 345 | void KOEditorDetails::writeEvent(Incidence *event) |
340 | { | 346 | { |
341 | event->clearAttendees(); | 347 | event->clearAttendees(); |
342 | QListViewItem *item; | 348 | QListViewItem *item; |
343 | AttendeeListItem *a; | 349 | AttendeeListItem *a; |
344 | for (item = mListView->firstChild(); item; | 350 | for (item = mListView->firstChild(); item; |
345 | item = item->nextSibling()) { | 351 | item = item->nextSibling()) { |
346 | a = (AttendeeListItem *)item; | 352 | a = (AttendeeListItem *)item; |
347 | event->addAttendee(new Attendee(*(a->data()))); | 353 | event->addAttendee(new Attendee(*(a->data()))); |
348 | } | 354 | } |
349 | event->setOrganizer(KOPrefs::instance()->email()); | 355 | event->setOrganizer(KOPrefs::instance()->email()); |
350 | } | 356 | } |
351 | 357 | ||
352 | void KOEditorDetails::cancelAttendeeEvent(Incidence *event) | 358 | void KOEditorDetails::cancelAttendeeEvent(Incidence *event) |
353 | { | 359 | { |
354 | event->clearAttendees(); | 360 | event->clearAttendees(); |
355 | Attendee * att; | 361 | Attendee * att; |
356 | for (att=mdelAttendees.first();att;att=mdelAttendees.next()) { | 362 | for (att=mdelAttendees.first();att;att=mdelAttendees.next()) { |
357 | event->addAttendee(new Attendee(*att)); | 363 | event->addAttendee(new Attendee(*att)); |
358 | } | 364 | } |
359 | mdelAttendees.clear(); | 365 | mdelAttendees.clear(); |
360 | } | 366 | } |
361 | 367 | ||
362 | bool KOEditorDetails::validateInput() | 368 | bool KOEditorDetails::validateInput() |
363 | { | 369 | { |
364 | return true; | 370 | return true; |
365 | } | 371 | } |
366 | 372 | ||
367 | void KOEditorDetails::updateAttendeeInput() | 373 | void KOEditorDetails::updateAttendeeInput() |
368 | { | 374 | { |
369 | QListViewItem *item = mListView->selectedItem(); | 375 | QListViewItem *item = mListView->selectedItem(); |
370 | AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); | 376 | AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); |
371 | if (aItem) { | 377 | if (aItem) { |
372 | fillAttendeeInput( aItem ); | 378 | fillAttendeeInput( aItem ); |
373 | } else { | 379 | } else { |
374 | clearAttendeeInput(); | 380 | clearAttendeeInput(); |
375 | } | 381 | } |
376 | } | 382 | } |
377 | 383 | ||
378 | void KOEditorDetails::clearAttendeeInput() | 384 | void KOEditorDetails::clearAttendeeInput() |
379 | { | 385 | { |
380 | mNameEdit->setText(""); | 386 | mNameEdit->setText(""); |
381 | mUidEdit->setText(""); | 387 | mUidEdit->setText(""); |
382 | mEmailEdit->setText(""); | 388 | mEmailEdit->setText(""); |
383 | mRoleCombo->setCurrentItem(0); | 389 | mRoleCombo->setCurrentItem(0); |
384 | mStatusCombo->setCurrentItem(0); | 390 | mStatusCombo->setCurrentItem(0); |
385 | mRsvpButton->setChecked(true); | 391 | mRsvpButton->setChecked(true); |
386 | setEnabledAttendeeInput( false ); | 392 | setEnabledAttendeeInput( false ); |
387 | } | 393 | } |
388 | 394 | ||
389 | void KOEditorDetails::fillAttendeeInput( AttendeeListItem *aItem ) | 395 | void KOEditorDetails::fillAttendeeInput( AttendeeListItem *aItem ) |
390 | { | 396 | { |
391 | Attendee *a = aItem->data(); | 397 | Attendee *a = aItem->data(); |
392 | mDisableItemUpdate = true; | 398 | mDisableItemUpdate = true; |
393 | mNameEdit->setText(a->name()); | 399 | mNameEdit->setText(a->name()); |
394 | mUidEdit->setText(a->uid()); | 400 | mUidEdit->setText(a->uid()); |
395 | mEmailEdit->setText(a->email()); | 401 | mEmailEdit->setText(a->email()); |
396 | mRoleCombo->setCurrentItem(a->role()); | 402 | mRoleCombo->setCurrentItem(a->role()); |
397 | mStatusCombo->setCurrentItem(a->status()); | 403 | mStatusCombo->setCurrentItem(a->status()); |
398 | mRsvpButton->setChecked(a->RSVP()); | 404 | mRsvpButton->setChecked(a->RSVP()); |
399 | 405 | ||
400 | mDisableItemUpdate = false; | 406 | mDisableItemUpdate = false; |
401 | 407 | ||
402 | setEnabledAttendeeInput( true ); | 408 | setEnabledAttendeeInput( true ); |
403 | } | 409 | } |
404 | 410 | ||
405 | void KOEditorDetails::setEnabledAttendeeInput( bool enabled ) | 411 | void KOEditorDetails::setEnabledAttendeeInput( bool enabled ) |
406 | { | 412 | { |
407 | mNameEdit->setEnabled( enabled ); | 413 | mNameEdit->setEnabled( enabled ); |
408 | mEmailEdit->setEnabled( enabled ); | 414 | mEmailEdit->setEnabled( enabled ); |
409 | mRoleCombo->setEnabled( enabled ); | 415 | mRoleCombo->setEnabled( enabled ); |
410 | mStatusCombo->setEnabled( enabled ); | 416 | mStatusCombo->setEnabled( enabled ); |
411 | mRsvpButton->setEnabled( enabled ); | 417 | mRsvpButton->setEnabled( enabled ); |
412 | 418 | ||
413 | mRemoveButton->setEnabled( enabled ); | 419 | mRemoveButton->setEnabled( enabled ); |
414 | } | 420 | } |
415 | 421 | ||
416 | void KOEditorDetails::updateAttendeeItem() | 422 | void KOEditorDetails::updateAttendeeItem() |
417 | { | 423 | { |
418 | if (mDisableItemUpdate) return; | 424 | if (mDisableItemUpdate) return; |
419 | 425 | ||
420 | QListViewItem *item = mListView->selectedItem(); | 426 | QListViewItem *item = mListView->selectedItem(); |
421 | AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); | 427 | AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); |
422 | if ( !aItem ) return; | 428 | if ( !aItem ) return; |
423 | 429 | ||
424 | Attendee *a = aItem->data(); | 430 | Attendee *a = aItem->data(); |
425 | 431 | ||
426 | a->setName( mNameEdit->text() ); | 432 | a->setName( mNameEdit->text() ); |
427 | a->setUid( mUidEdit->text() ); | 433 | a->setUid( mUidEdit->text() ); |
428 | a->setEmail( mEmailEdit->text() ); | 434 | a->setEmail( mEmailEdit->text() ); |
429 | a->setRole( Attendee::Role( mRoleCombo->currentItem() ) ); | 435 | a->setRole( Attendee::Role( mRoleCombo->currentItem() ) ); |
430 | a->setStatus( Attendee::PartStat( mStatusCombo->currentItem() ) ); | 436 | a->setStatus( Attendee::PartStat( mStatusCombo->currentItem() ) ); |
431 | a->setRSVP( mRsvpButton->isChecked() ); | 437 | a->setRSVP( mRsvpButton->isChecked() ); |
432 | aItem->updateItem(); | 438 | aItem->updateItem(); |
433 | } | 439 | } |
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 9aa517c..7525a4a 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -1,410 +1,419 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
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 | 20 | ||
21 | #include <kglobal.h> | 21 | #include <kglobal.h> |
22 | #include <klocale.h> | 22 | #include <klocale.h> |
23 | #include <kdebug.h> | 23 | #include <kdebug.h> |
24 | #include <kidmanager.h> | 24 | #include <kidmanager.h> |
25 | 25 | ||
26 | #include "calformat.h" | 26 | #include "calformat.h" |
27 | #include "syncdefines.h" | 27 | #include "syncdefines.h" |
28 | 28 | ||
29 | #include "incidencebase.h" | 29 | #include "incidencebase.h" |
30 | 30 | ||
31 | using namespace KCal; | 31 | using namespace KCal; |
32 | 32 | ||
33 | IncidenceBase::IncidenceBase() : | 33 | IncidenceBase::IncidenceBase() : |
34 | mReadOnly(false), mFloats(true), mDuration(0), mHasDuration(false), | 34 | mReadOnly(false), mFloats(true), mDuration(0), mHasDuration(false), |
35 | mPilotId(0), mSyncStatus(SYNCMOD) | 35 | mPilotId(0), mSyncStatus(SYNCMOD) |
36 | { | 36 | { |
37 | setUid(CalFormat::createUniqueId()); | 37 | setUid(CalFormat::createUniqueId()); |
38 | mOrganizer = ""; | 38 | mOrganizer = ""; |
39 | mFloats = false; | 39 | mFloats = false; |
40 | mDuration = 0; | 40 | mDuration = 0; |
41 | mHasDuration = false; | 41 | mHasDuration = false; |
42 | mPilotId = 0; | 42 | mPilotId = 0; |
43 | mExternalId = ":"; | 43 | mExternalId = ":"; |
44 | mTempSyncStat = SYNC_TEMPSTATE_INITIAL; | 44 | mTempSyncStat = SYNC_TEMPSTATE_INITIAL; |
45 | mSyncStatus = 0; | 45 | mSyncStatus = 0; |
46 | mAttendees.setAutoDelete( true ); | 46 | mAttendees.setAutoDelete( true ); |
47 | } | 47 | } |
48 | 48 | ||
49 | IncidenceBase::IncidenceBase(const IncidenceBase &i) : | 49 | IncidenceBase::IncidenceBase(const IncidenceBase &i) : |
50 | CustomProperties( i ) | 50 | CustomProperties( i ) |
51 | { | 51 | { |
52 | mReadOnly = i.mReadOnly; | 52 | mReadOnly = i.mReadOnly; |
53 | mDtStart = i.mDtStart; | 53 | mDtStart = i.mDtStart; |
54 | mDuration = i.mDuration; | 54 | mDuration = i.mDuration; |
55 | mHasDuration = i.mHasDuration; | 55 | mHasDuration = i.mHasDuration; |
56 | mOrganizer = i.mOrganizer; | 56 | mOrganizer = i.mOrganizer; |
57 | mUid = i.mUid; | 57 | mUid = i.mUid; |
58 | QPtrList<Attendee> attendees = i.attendees(); | 58 | QPtrList<Attendee> attendees = i.attendees(); |
59 | for( Attendee *a = attendees.first(); a; a = attendees.next() ) { | 59 | for( Attendee *a = attendees.first(); a; a = attendees.next() ) { |
60 | mAttendees.append( new Attendee( *a ) ); | 60 | mAttendees.append( new Attendee( *a ) ); |
61 | } | 61 | } |
62 | mFloats = i.mFloats; | 62 | mFloats = i.mFloats; |
63 | mLastModified = i.mLastModified; | 63 | mLastModified = i.mLastModified; |
64 | mPilotId = i.mPilotId; | 64 | mPilotId = i.mPilotId; |
65 | mTempSyncStat = i.mTempSyncStat; | 65 | mTempSyncStat = i.mTempSyncStat; |
66 | mSyncStatus = i.mSyncStatus; | 66 | mSyncStatus = i.mSyncStatus; |
67 | mExternalId = i.mExternalId; | 67 | mExternalId = i.mExternalId; |
68 | // The copied object is a new one, so it isn't observed by the observer | 68 | // The copied object is a new one, so it isn't observed by the observer |
69 | // of the original object. | 69 | // of the original object. |
70 | mObservers.clear(); | 70 | mObservers.clear(); |
71 | 71 | ||
72 | mAttendees.setAutoDelete( true ); | 72 | mAttendees.setAutoDelete( true ); |
73 | } | 73 | } |
74 | 74 | ||
75 | IncidenceBase::~IncidenceBase() | 75 | IncidenceBase::~IncidenceBase() |
76 | { | 76 | { |
77 | } | 77 | } |
78 | 78 | ||
79 | 79 | ||
80 | bool KCal::operator==( const IncidenceBase& i1, const IncidenceBase& i2 ) | 80 | bool KCal::operator==( const IncidenceBase& i1, const IncidenceBase& i2 ) |
81 | { | 81 | { |
82 | // do not compare mSyncStatus and mExternalId | 82 | // do not compare mSyncStatus and mExternalId |
83 | if( i1.attendees().count() != i2.attendees().count() ) { | 83 | if( i1.attendees().count() != i2.attendees().count() ) { |
84 | return false; // no need to check further | 84 | return false; // no need to check further |
85 | } | 85 | } |
86 | if ( i1.attendees().count() > 0 ) { | 86 | if ( i1.attendees().count() > 0 ) { |
87 | Attendee * a1 = i1.attendees().first(), *a2 =i2.attendees().first() ; | 87 | Attendee * a1 = i1.attendees().first(), *a2 =i2.attendees().first() ; |
88 | while ( a1 ) { | 88 | while ( a1 ) { |
89 | if ( !( (*a1) == (*a2)) ) | 89 | if ( !( (*a1) == (*a2)) ) |
90 | { | 90 | { |
91 | //qDebug("Attendee not equal "); | 91 | //qDebug("Attendee not equal "); |
92 | return false; | 92 | return false; |
93 | } | 93 | } |
94 | a1 = i1.attendees().next(); | 94 | a1 = i1.attendees().next(); |
95 | a2 = i2.attendees().next(); | 95 | a2 = i2.attendees().next(); |
96 | } | 96 | } |
97 | } | 97 | } |
98 | //if ( i1.dtStart() != i2.dtStart() ) | 98 | //if ( i1.dtStart() != i2.dtStart() ) |
99 | // return false; | 99 | // return false; |
100 | #if 0 | 100 | #if 0 |
101 | qDebug("1 %d ",i1.doesFloat() == i2.doesFloat() ); | 101 | qDebug("1 %d ",i1.doesFloat() == i2.doesFloat() ); |
102 | qDebug("1 %d ",i1.duration() == i2.duration() ); | 102 | qDebug("1 %d ",i1.duration() == i2.duration() ); |
103 | qDebug("3 %d ",i1.hasDuration() == i2.hasDuration() ); | 103 | qDebug("3 %d ",i1.hasDuration() == i2.hasDuration() ); |
104 | qDebug("1 %d ",i1.pilotId() == i2.pilotId() ); | 104 | qDebug("1 %d ",i1.pilotId() == i2.pilotId() ); |
105 | qDebug("1 %d %d %d",i1.syncStatus() == i2.syncStatus() , i1.syncStatus(),i2.syncStatus() ); | 105 | qDebug("1 %d %d %d",i1.syncStatus() == i2.syncStatus() , i1.syncStatus(),i2.syncStatus() ); |
106 | qDebug("6 %d ",i1.organizer() == i2.organizer() ); | 106 | qDebug("6 %d ",i1.organizer() == i2.organizer() ); |
107 | 107 | ||
108 | #endif | 108 | #endif |
109 | return ( i1.organizer() == i2.organizer() && | 109 | return ( i1.organizer() == i2.organizer() && |
110 | // i1.uid() == i2.uid() && | 110 | // i1.uid() == i2.uid() && |
111 | // Don't compare lastModified, otherwise the operator is not | 111 | // Don't compare lastModified, otherwise the operator is not |
112 | // of much use. We are not comparing for identity, after all. | 112 | // of much use. We are not comparing for identity, after all. |
113 | i1.doesFloat() == i2.doesFloat() && | 113 | i1.doesFloat() == i2.doesFloat() && |
114 | i1.duration() == i2.duration() && | 114 | i1.duration() == i2.duration() && |
115 | i1.hasDuration() == i2.hasDuration() && | 115 | i1.hasDuration() == i2.hasDuration() && |
116 | i1.pilotId() == i2.pilotId() );// && i1.syncStatus() == i2.syncStatus() ); | 116 | i1.pilotId() == i2.pilotId() );// && i1.syncStatus() == i2.syncStatus() ); |
117 | // no need to compare mObserver | 117 | // no need to compare mObserver |
118 | } | 118 | } |
119 | 119 | ||
120 | 120 | ||
121 | QDateTime IncidenceBase::getEvenTime( QDateTime dt ) | 121 | QDateTime IncidenceBase::getEvenTime( QDateTime dt ) |
122 | { | 122 | { |
123 | QTime t = dt.time(); | 123 | QTime t = dt.time(); |
124 | dt.setTime( QTime (t.hour (), t.minute (), t.second () ) ); | 124 | dt.setTime( QTime (t.hour (), t.minute (), t.second () ) ); |
125 | return dt; | 125 | return dt; |
126 | } | 126 | } |
127 | 127 | ||
128 | 128 | ||
129 | void IncidenceBase::setUid(const QString &uid) | 129 | void IncidenceBase::setUid(const QString &uid) |
130 | { | 130 | { |
131 | mUid = uid; | 131 | mUid = uid; |
132 | updated(); | 132 | updated(); |
133 | } | 133 | } |
134 | 134 | ||
135 | QString IncidenceBase::uid() const | 135 | QString IncidenceBase::uid() const |
136 | { | 136 | { |
137 | return mUid; | 137 | return mUid; |
138 | } | 138 | } |
139 | 139 | ||
140 | void IncidenceBase::setLastModified(const QDateTime &lm) | 140 | void IncidenceBase::setLastModified(const QDateTime &lm) |
141 | { | 141 | { |
142 | // DON'T! updated() because we call this from | 142 | // DON'T! updated() because we call this from |
143 | // Calendar::updateEvent(). | 143 | // Calendar::updateEvent(). |
144 | mLastModified = getEvenTime(lm); | 144 | mLastModified = getEvenTime(lm); |
145 | //qDebug("IncidenceBase::setLastModified %s ",lm.toString().latin1()); | 145 | //qDebug("IncidenceBase::setLastModified %s ",lm.toString().latin1()); |
146 | } | 146 | } |
147 | 147 | ||
148 | QDateTime IncidenceBase::lastModified() const | 148 | QDateTime IncidenceBase::lastModified() const |
149 | { | 149 | { |
150 | return mLastModified; | 150 | return mLastModified; |
151 | } | 151 | } |
152 | 152 | ||
153 | void IncidenceBase::setOrganizer(const QString &o) | 153 | void IncidenceBase::setOrganizer(const QString &o) |
154 | { | 154 | { |
155 | // we don't check for readonly here, because it is | 155 | // we don't check for readonly here, because it is |
156 | // possible that by setting the organizer we are changing | 156 | // possible that by setting the organizer we are changing |
157 | // the event's readonly status... | 157 | // the event's readonly status... |
158 | mOrganizer = o; | 158 | mOrganizer = o; |
159 | if (mOrganizer.left(7).upper() == "MAILTO:") | 159 | if (mOrganizer.left(7).upper() == "MAILTO:") |
160 | mOrganizer = mOrganizer.remove(0,7); | 160 | mOrganizer = mOrganizer.remove(0,7); |
161 | 161 | ||
162 | updated(); | 162 | updated(); |
163 | } | 163 | } |
164 | 164 | ||
165 | QString IncidenceBase::organizer() const | 165 | QString IncidenceBase::organizer() const |
166 | { | 166 | { |
167 | return mOrganizer; | 167 | return mOrganizer; |
168 | } | 168 | } |
169 | 169 | ||
170 | void IncidenceBase::setReadOnly( bool readOnly ) | 170 | void IncidenceBase::setReadOnly( bool readOnly ) |
171 | { | 171 | { |
172 | mReadOnly = readOnly; | 172 | mReadOnly = readOnly; |
173 | } | 173 | } |
174 | 174 | ||
175 | void IncidenceBase::setDtStart(const QDateTime &dtStart) | 175 | void IncidenceBase::setDtStart(const QDateTime &dtStart) |
176 | { | 176 | { |
177 | // if (mReadOnly) return; | 177 | // if (mReadOnly) return; |
178 | mDtStart = getEvenTime(dtStart); | 178 | mDtStart = getEvenTime(dtStart); |
179 | updated(); | 179 | updated(); |
180 | } | 180 | } |
181 | 181 | ||
182 | QDateTime IncidenceBase::dtStart() const | 182 | QDateTime IncidenceBase::dtStart() const |
183 | { | 183 | { |
184 | return mDtStart; | 184 | return mDtStart; |
185 | } | 185 | } |
186 | 186 | ||
187 | QString IncidenceBase::dtStartTimeStr() const | 187 | QString IncidenceBase::dtStartTimeStr() const |
188 | { | 188 | { |
189 | return KGlobal::locale()->formatTime(dtStart().time()); | 189 | return KGlobal::locale()->formatTime(dtStart().time()); |
190 | } | 190 | } |
191 | 191 | ||
192 | QString IncidenceBase::dtStartDateStr(bool shortfmt) const | 192 | QString IncidenceBase::dtStartDateStr(bool shortfmt) const |
193 | { | 193 | { |
194 | return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); | 194 | return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); |
195 | } | 195 | } |
196 | 196 | ||
197 | QString IncidenceBase::dtStartStr(bool shortfmt) const | 197 | QString IncidenceBase::dtStartStr(bool shortfmt) const |
198 | { | 198 | { |
199 | return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); | 199 | return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); |
200 | } | 200 | } |
201 | 201 | ||
202 | 202 | ||
203 | bool IncidenceBase::doesFloat() const | 203 | bool IncidenceBase::doesFloat() const |
204 | { | 204 | { |
205 | return mFloats; | 205 | return mFloats; |
206 | } | 206 | } |
207 | 207 | ||
208 | void IncidenceBase::setFloats(bool f) | 208 | void IncidenceBase::setFloats(bool f) |
209 | { | 209 | { |
210 | if (mReadOnly) return; | 210 | if (mReadOnly) return; |
211 | mFloats = f; | 211 | mFloats = f; |
212 | updated(); | 212 | updated(); |
213 | } | 213 | } |
214 | 214 | ||
215 | 215 | ||
216 | void IncidenceBase::addAttendee(Attendee *a, bool doupdate) | 216 | bool IncidenceBase::addAttendee(Attendee *a, bool doupdate) |
217 | { | 217 | { |
218 | if (mReadOnly) return; | 218 | if (mReadOnly) return false; |
219 | if (a->name().left(7).upper() == "MAILTO:") | 219 | if (a->name().left(7).upper() == "MAILTO:") |
220 | a->setName(a->name().remove(0,7)); | 220 | a->setName(a->name().remove(0,7)); |
221 | 221 | ||
222 | QPtrListIterator<Attendee> qli(mAttendees); | ||
223 | |||
224 | qli.toFirst(); | ||
225 | while (qli) { | ||
226 | if (*qli.current() == *a) | ||
227 | return false; | ||
228 | ++qli; | ||
229 | } | ||
222 | mAttendees.append(a); | 230 | mAttendees.append(a); |
223 | if (doupdate) updated(); | 231 | if (doupdate) updated(); |
232 | return true; | ||
224 | } | 233 | } |
225 | 234 | ||
226 | #if 0 | 235 | #if 0 |
227 | void IncidenceBase::removeAttendee(Attendee *a) | 236 | void IncidenceBase::removeAttendee(Attendee *a) |
228 | { | 237 | { |
229 | if (mReadOnly) return; | 238 | if (mReadOnly) return; |
230 | mAttendees.removeRef(a); | 239 | mAttendees.removeRef(a); |
231 | updated(); | 240 | updated(); |
232 | } | 241 | } |
233 | 242 | ||
234 | void IncidenceBase::removeAttendee(const char *n) | 243 | void IncidenceBase::removeAttendee(const char *n) |
235 | { | 244 | { |
236 | Attendee *a; | 245 | Attendee *a; |
237 | 246 | ||
238 | if (mReadOnly) return; | 247 | if (mReadOnly) return; |
239 | for (a = mAttendees.first(); a; a = mAttendees.next()) | 248 | for (a = mAttendees.first(); a; a = mAttendees.next()) |
240 | if (a->getName() == n) { | 249 | if (a->getName() == n) { |
241 | mAttendees.remove(); | 250 | mAttendees.remove(); |
242 | break; | 251 | break; |
243 | } | 252 | } |
244 | } | 253 | } |
245 | #endif | 254 | #endif |
246 | 255 | ||
247 | void IncidenceBase::clearAttendees() | 256 | void IncidenceBase::clearAttendees() |
248 | { | 257 | { |
249 | if (mReadOnly) return; | 258 | if (mReadOnly) return; |
250 | mAttendees.clear(); | 259 | mAttendees.clear(); |
251 | } | 260 | } |
252 | 261 | ||
253 | #if 0 | 262 | #if 0 |
254 | Attendee *IncidenceBase::getAttendee(const char *n) const | 263 | Attendee *IncidenceBase::getAttendee(const char *n) const |
255 | { | 264 | { |
256 | QPtrListIterator<Attendee> qli(mAttendees); | 265 | QPtrListIterator<Attendee> qli(mAttendees); |
257 | 266 | ||
258 | qli.toFirst(); | 267 | qli.toFirst(); |
259 | while (qli) { | 268 | while (qli) { |
260 | if (qli.current()->getName() == n) | 269 | if (qli.current()->getName() == n) |
261 | return qli.current(); | 270 | return qli.current(); |
262 | ++qli; | 271 | ++qli; |
263 | } | 272 | } |
264 | return 0L; | 273 | return 0L; |
265 | } | 274 | } |
266 | #endif | 275 | #endif |
267 | 276 | ||
268 | Attendee *IncidenceBase::attendeeByMail(const QString &email) | 277 | Attendee *IncidenceBase::attendeeByMail(const QString &email) |
269 | { | 278 | { |
270 | QPtrListIterator<Attendee> qli(mAttendees); | 279 | QPtrListIterator<Attendee> qli(mAttendees); |
271 | 280 | ||
272 | qli.toFirst(); | 281 | qli.toFirst(); |
273 | while (qli) { | 282 | while (qli) { |
274 | if (qli.current()->email().lower() == email.lower()) | 283 | if (qli.current()->email().lower() == email.lower()) |
275 | return qli.current(); | 284 | return qli.current(); |
276 | ++qli; | 285 | ++qli; |
277 | } | 286 | } |
278 | return 0L; | 287 | return 0L; |
279 | } | 288 | } |
280 | 289 | ||
281 | Attendee *IncidenceBase::attendeeByMails(const QStringList &emails, const QString& email) | 290 | Attendee *IncidenceBase::attendeeByMails(const QStringList &emails, const QString& email) |
282 | { | 291 | { |
283 | QPtrListIterator<Attendee> qli(mAttendees); | 292 | QPtrListIterator<Attendee> qli(mAttendees); |
284 | 293 | ||
285 | QStringList mails = emails; | 294 | QStringList mails = emails; |
286 | if (!email.isEmpty()) { | 295 | if (!email.isEmpty()) { |
287 | mails.append(email); | 296 | mails.append(email); |
288 | } | 297 | } |
289 | qli.toFirst(); | 298 | qli.toFirst(); |
290 | while (qli) { | 299 | while (qli) { |
291 | for ( QStringList::Iterator it = mails.begin(); it != mails.end(); ++it ) { | 300 | for ( QStringList::Iterator it = mails.begin(); it != mails.end(); ++it ) { |
292 | if (qli.current()->email().lower() == (*it).lower()) | 301 | if (qli.current()->email().lower() == (*it).lower()) |
293 | return qli.current(); | 302 | return qli.current(); |
294 | } | 303 | } |
295 | 304 | ||
296 | ++qli; | 305 | ++qli; |
297 | } | 306 | } |
298 | return 0L; | 307 | return 0L; |
299 | } | 308 | } |
300 | 309 | ||
301 | void IncidenceBase::setDuration(int seconds) | 310 | void IncidenceBase::setDuration(int seconds) |
302 | { | 311 | { |
303 | mDuration = seconds; | 312 | mDuration = seconds; |
304 | setHasDuration(true); | 313 | setHasDuration(true); |
305 | } | 314 | } |
306 | 315 | ||
307 | int IncidenceBase::duration() const | 316 | int IncidenceBase::duration() const |
308 | { | 317 | { |
309 | return mDuration; | 318 | return mDuration; |
310 | } | 319 | } |
311 | 320 | ||
312 | void IncidenceBase::setHasDuration(bool b) | 321 | void IncidenceBase::setHasDuration(bool b) |
313 | { | 322 | { |
314 | mHasDuration = b; | 323 | mHasDuration = b; |
315 | } | 324 | } |
316 | 325 | ||
317 | bool IncidenceBase::hasDuration() const | 326 | bool IncidenceBase::hasDuration() const |
318 | { | 327 | { |
319 | return mHasDuration; | 328 | return mHasDuration; |
320 | } | 329 | } |
321 | 330 | ||
322 | void IncidenceBase::setSyncStatus(int stat) | 331 | void IncidenceBase::setSyncStatus(int stat) |
323 | { | 332 | { |
324 | if (mReadOnly) return; | 333 | if (mReadOnly) return; |
325 | mSyncStatus = stat; | 334 | mSyncStatus = stat; |
326 | } | 335 | } |
327 | 336 | ||
328 | int IncidenceBase::syncStatus() const | 337 | int IncidenceBase::syncStatus() const |
329 | { | 338 | { |
330 | return mSyncStatus; | 339 | return mSyncStatus; |
331 | } | 340 | } |
332 | 341 | ||
333 | void IncidenceBase::setPilotId( int id ) | 342 | void IncidenceBase::setPilotId( int id ) |
334 | { | 343 | { |
335 | if (mReadOnly) return; | 344 | if (mReadOnly) return; |
336 | mPilotId = id; | 345 | mPilotId = id; |
337 | } | 346 | } |
338 | 347 | ||
339 | int IncidenceBase::pilotId() const | 348 | int IncidenceBase::pilotId() const |
340 | { | 349 | { |
341 | return mPilotId; | 350 | return mPilotId; |
342 | } | 351 | } |
343 | 352 | ||
344 | int IncidenceBase::tempSyncStat() const | 353 | int IncidenceBase::tempSyncStat() const |
345 | { | 354 | { |
346 | return mTempSyncStat; | 355 | return mTempSyncStat; |
347 | } | 356 | } |
348 | void IncidenceBase::setTempSyncStat( int id ) | 357 | void IncidenceBase::setTempSyncStat( int id ) |
349 | { | 358 | { |
350 | if (mReadOnly) return; | 359 | if (mReadOnly) return; |
351 | mTempSyncStat = id; | 360 | mTempSyncStat = id; |
352 | } | 361 | } |
353 | 362 | ||
354 | void IncidenceBase::removeID(const QString &prof) | 363 | void IncidenceBase::removeID(const QString &prof) |
355 | { | 364 | { |
356 | if ( prof.isEmpty() ) | 365 | if ( prof.isEmpty() ) |
357 | mExternalId = ":"; | 366 | mExternalId = ":"; |
358 | else | 367 | else |
359 | mExternalId = KIdManager::removeId ( mExternalId, prof); | 368 | mExternalId = KIdManager::removeId ( mExternalId, prof); |
360 | 369 | ||
361 | } | 370 | } |
362 | void IncidenceBase::setID( const QString & prof , const QString & id ) | 371 | void IncidenceBase::setID( const QString & prof , const QString & id ) |
363 | { | 372 | { |
364 | mExternalId = KIdManager::setId ( mExternalId, prof, id ); | 373 | mExternalId = KIdManager::setId ( mExternalId, prof, id ); |
365 | } | 374 | } |
366 | QString IncidenceBase::getID( const QString & prof) | 375 | QString IncidenceBase::getID( const QString & prof) |
367 | { | 376 | { |
368 | return KIdManager::getId ( mExternalId, prof ); | 377 | return KIdManager::getId ( mExternalId, prof ); |
369 | } | 378 | } |
370 | 379 | ||
371 | // example :Sharp_DTM;22;23566:TP;-1;8654:TPP;18;0: | 380 | // example :Sharp_DTM;22;23566:TP;-1;8654:TPP;18;0: |
372 | // format name;III;JJJ: III >= 0, may be -1. JJJ always >= 0 | 381 | // format name;III;JJJ: III >= 0, may be -1. JJJ always >= 0 |
373 | void IncidenceBase::setCsum( const QString & prof , const QString & id ) | 382 | void IncidenceBase::setCsum( const QString & prof , const QString & id ) |
374 | { | 383 | { |
375 | mExternalId = KIdManager::setCsum ( mExternalId, prof, id ); | 384 | mExternalId = KIdManager::setCsum ( mExternalId, prof, id ); |
376 | } | 385 | } |
377 | QString IncidenceBase::getCsum( const QString & prof) | 386 | QString IncidenceBase::getCsum( const QString & prof) |
378 | { | 387 | { |
379 | return KIdManager::getCsum ( mExternalId, prof ); | 388 | return KIdManager::getCsum ( mExternalId, prof ); |
380 | } | 389 | } |
381 | 390 | ||
382 | void IncidenceBase::setIDStr( const QString & s ) | 391 | void IncidenceBase::setIDStr( const QString & s ) |
383 | { | 392 | { |
384 | if (mReadOnly) return; | 393 | if (mReadOnly) return; |
385 | mExternalId = s; | 394 | mExternalId = s; |
386 | } | 395 | } |
387 | 396 | ||
388 | QString IncidenceBase::IDStr() const | 397 | QString IncidenceBase::IDStr() const |
389 | { | 398 | { |
390 | return mExternalId ; | 399 | return mExternalId ; |
391 | } | 400 | } |
392 | void IncidenceBase::registerObserver( IncidenceBase::Observer *observer ) | 401 | void IncidenceBase::registerObserver( IncidenceBase::Observer *observer ) |
393 | { | 402 | { |
394 | if( !mObservers.contains(observer) ) mObservers.append( observer ); | 403 | if( !mObservers.contains(observer) ) mObservers.append( observer ); |
395 | } | 404 | } |
396 | 405 | ||
397 | void IncidenceBase::unRegisterObserver( IncidenceBase::Observer *observer ) | 406 | void IncidenceBase::unRegisterObserver( IncidenceBase::Observer *observer ) |
398 | { | 407 | { |
399 | mObservers.remove( observer ); | 408 | mObservers.remove( observer ); |
400 | } | 409 | } |
401 | 410 | ||
402 | void IncidenceBase::updated() | 411 | void IncidenceBase::updated() |
403 | { | 412 | { |
404 | QPtrListIterator<Observer> it(mObservers); | 413 | QPtrListIterator<Observer> it(mObservers); |
405 | while( it.current() ) { | 414 | while( it.current() ) { |
406 | Observer *o = it.current(); | 415 | Observer *o = it.current(); |
407 | ++it; | 416 | ++it; |
408 | o->incidenceUpdated( this ); | 417 | o->incidenceUpdated( this ); |
409 | } | 418 | } |
410 | } | 419 | } |
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index e02d03a..f9a6558 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -1,172 +1,172 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
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 | #ifndef KCAL_INCIDENCEBASE_H | 20 | #ifndef KCAL_INCIDENCEBASE_H |
21 | #define KCAL_INCIDENCEBASE_H | 21 | #define KCAL_INCIDENCEBASE_H |
22 | // | 22 | // |
23 | // Incidence - base class of calendaring components | 23 | // Incidence - base class of calendaring components |
24 | // | 24 | // |
25 | 25 | ||
26 | #include <qdatetime.h> | 26 | #include <qdatetime.h> |
27 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
28 | #include <qvaluelist.h> | 28 | #include <qvaluelist.h> |
29 | #include <qptrlist.h> | 29 | #include <qptrlist.h> |
30 | 30 | ||
31 | #include "customproperties.h" | 31 | #include "customproperties.h" |
32 | #include "attendee.h" | 32 | #include "attendee.h" |
33 | 33 | ||
34 | namespace KCal { | 34 | namespace KCal { |
35 | 35 | ||
36 | typedef QValueList<QDate> DateList; | 36 | typedef QValueList<QDate> DateList; |
37 | 37 | ||
38 | /** | 38 | /** |
39 | This class provides the base class common to all calendar components. | 39 | This class provides the base class common to all calendar components. |
40 | */ | 40 | */ |
41 | class IncidenceBase : public CustomProperties | 41 | class IncidenceBase : public CustomProperties |
42 | { | 42 | { |
43 | public: | 43 | public: |
44 | class Observer { | 44 | class Observer { |
45 | public: | 45 | public: |
46 | virtual void incidenceUpdated( IncidenceBase * ) = 0; | 46 | virtual void incidenceUpdated( IncidenceBase * ) = 0; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | IncidenceBase(); | 49 | IncidenceBase(); |
50 | IncidenceBase(const IncidenceBase &); | 50 | IncidenceBase(const IncidenceBase &); |
51 | virtual ~IncidenceBase(); | 51 | virtual ~IncidenceBase(); |
52 | 52 | ||
53 | virtual QCString type() const = 0; | 53 | virtual QCString type() const = 0; |
54 | 54 | ||
55 | /** Set the unique id for the event */ | 55 | /** Set the unique id for the event */ |
56 | void setUid(const QString &); | 56 | void setUid(const QString &); |
57 | /** Return the unique id for the event */ | 57 | /** Return the unique id for the event */ |
58 | QString uid() const; | 58 | QString uid() const; |
59 | 59 | ||
60 | /** Sets the time the incidence was last modified. */ | 60 | /** Sets the time the incidence was last modified. */ |
61 | void setLastModified(const QDateTime &lm); | 61 | void setLastModified(const QDateTime &lm); |
62 | /** Return the time the incidence was last modified. */ | 62 | /** Return the time the incidence was last modified. */ |
63 | QDateTime lastModified() const; | 63 | QDateTime lastModified() const; |
64 | 64 | ||
65 | /** sets the organizer for the event */ | 65 | /** sets the organizer for the event */ |
66 | void setOrganizer(const QString &o); | 66 | void setOrganizer(const QString &o); |
67 | QString organizer() const; | 67 | QString organizer() const; |
68 | 68 | ||
69 | /** Set readonly status. */ | 69 | /** Set readonly status. */ |
70 | virtual void setReadOnly( bool ); | 70 | virtual void setReadOnly( bool ); |
71 | /** Return if the object is read-only. */ | 71 | /** Return if the object is read-only. */ |
72 | bool isReadOnly() const { return mReadOnly; } | 72 | bool isReadOnly() const { return mReadOnly; } |
73 | 73 | ||
74 | /** for setting the event's starting date/time with a QDateTime. */ | 74 | /** for setting the event's starting date/time with a QDateTime. */ |
75 | virtual void setDtStart(const QDateTime &dtStart); | 75 | virtual void setDtStart(const QDateTime &dtStart); |
76 | /** returns an event's starting date/time as a QDateTime. */ | 76 | /** returns an event's starting date/time as a QDateTime. */ |
77 | QDateTime dtStart() const; | 77 | QDateTime dtStart() const; |
78 | /** returns an event's starting time as a string formatted according to the | 78 | /** returns an event's starting time as a string formatted according to the |
79 | users locale settings */ | 79 | users locale settings */ |
80 | QString dtStartTimeStr() const; | 80 | QString dtStartTimeStr() const; |
81 | /** returns an event's starting date as a string formatted according to the | 81 | /** returns an event's starting date as a string formatted according to the |
82 | users locale settings */ | 82 | users locale settings */ |
83 | QString dtStartDateStr(bool shortfmt=true) const; | 83 | QString dtStartDateStr(bool shortfmt=true) const; |
84 | /** returns an event's starting date and time as a string formatted according | 84 | /** returns an event's starting date and time as a string formatted according |
85 | to the users locale settings */ | 85 | to the users locale settings */ |
86 | QString dtStartStr(bool shortfmt=true) const; | 86 | QString dtStartStr(bool shortfmt=true) const; |
87 | 87 | ||
88 | virtual void setDuration(int seconds); | 88 | virtual void setDuration(int seconds); |
89 | int duration() const; | 89 | int duration() const; |
90 | void setHasDuration(bool); | 90 | void setHasDuration(bool); |
91 | bool hasDuration() const; | 91 | bool hasDuration() const; |
92 | 92 | ||
93 | /** Return true or false depending on whether the incidence "floats," | 93 | /** Return true or false depending on whether the incidence "floats," |
94 | * i.e. has a date but no time attached to it. */ | 94 | * i.e. has a date but no time attached to it. */ |
95 | bool doesFloat() const; | 95 | bool doesFloat() const; |
96 | /** Set whether the incidence floats, i.e. has a date but no time attached to it. */ | 96 | /** Set whether the incidence floats, i.e. has a date but no time attached to it. */ |
97 | void setFloats(bool f); | 97 | void setFloats(bool f); |
98 | 98 | ||
99 | /** | 99 | /** |
100 | Add Attendee to this incidence. IncidenceBase takes ownership of the | 100 | Add Attendee to this incidence. IncidenceBase takes ownership of the |
101 | Attendee object. | 101 | Attendee object. |
102 | */ | 102 | */ |
103 | void addAttendee(Attendee *a, bool doupdate=true ); | 103 | bool addAttendee(Attendee *a, bool doupdate=true ); |
104 | // void removeAttendee(Attendee *a); | 104 | // void removeAttendee(Attendee *a); |
105 | // void removeAttendee(const char *n); | 105 | // void removeAttendee(const char *n); |
106 | /** Remove all Attendees. */ | 106 | /** Remove all Attendees. */ |
107 | void clearAttendees(); | 107 | void clearAttendees(); |
108 | /** Return list of attendees. */ | 108 | /** Return list of attendees. */ |
109 | QPtrList<Attendee> attendees() const { return mAttendees; }; | 109 | QPtrList<Attendee> attendees() const { return mAttendees; }; |
110 | /** Return number of attendees. */ | 110 | /** Return number of attendees. */ |
111 | int attendeeCount() const { return mAttendees.count(); }; | 111 | int attendeeCount() const { return mAttendees.count(); }; |
112 | /** Return the Attendee with this email */ | 112 | /** Return the Attendee with this email */ |
113 | Attendee* attendeeByMail(const QString &); | 113 | Attendee* attendeeByMail(const QString &); |
114 | /** Return first Attendee with one of this emails */ | 114 | /** Return first Attendee with one of this emails */ |
115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); | 115 | Attendee* attendeeByMails(const QStringList &, const QString& email = QString::null); |
116 | 116 | ||
117 | /** pilot syncronization states */ | 117 | /** pilot syncronization states */ |
118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; | 118 | enum { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 }; |
119 | /** Set synchronisation satus. */ | 119 | /** Set synchronisation satus. */ |
120 | void setSyncStatus(int stat); | 120 | void setSyncStatus(int stat); |
121 | /** Return synchronisation status. */ | 121 | /** Return synchronisation status. */ |
122 | int syncStatus() const; | 122 | int syncStatus() const; |
123 | 123 | ||
124 | /** Set Pilot Id. */ | 124 | /** Set Pilot Id. */ |
125 | void setPilotId(int id); | 125 | void setPilotId(int id); |
126 | /** Return Pilot Id. */ | 126 | /** Return Pilot Id. */ |
127 | int pilotId() const; | 127 | int pilotId() const; |
128 | 128 | ||
129 | void setTempSyncStat(int id); | 129 | void setTempSyncStat(int id); |
130 | int tempSyncStat() const; | 130 | int tempSyncStat() const; |
131 | void setIDStr( const QString & ); | 131 | void setIDStr( const QString & ); |
132 | QString IDStr() const; | 132 | QString IDStr() const; |
133 | void setID( const QString &, const QString & ); | 133 | void setID( const QString &, const QString & ); |
134 | QString getID( const QString & ); | 134 | QString getID( const QString & ); |
135 | void setCsum( const QString &, const QString & ); | 135 | void setCsum( const QString &, const QString & ); |
136 | QString getCsum( const QString & ); | 136 | QString getCsum( const QString & ); |
137 | void removeID(const QString &); | 137 | void removeID(const QString &); |
138 | 138 | ||
139 | void registerObserver( Observer * ); | 139 | void registerObserver( Observer * ); |
140 | void unRegisterObserver( Observer * ); | 140 | void unRegisterObserver( Observer * ); |
141 | void updated(); | 141 | void updated(); |
142 | 142 | ||
143 | protected: | 143 | protected: |
144 | bool mReadOnly; | 144 | bool mReadOnly; |
145 | QDateTime getEvenTime( QDateTime ); | 145 | QDateTime getEvenTime( QDateTime ); |
146 | 146 | ||
147 | private: | 147 | private: |
148 | // base components | 148 | // base components |
149 | QDateTime mDtStart; | 149 | QDateTime mDtStart; |
150 | QString mOrganizer; | 150 | QString mOrganizer; |
151 | QString mUid; | 151 | QString mUid; |
152 | QDateTime mLastModified; | 152 | QDateTime mLastModified; |
153 | QPtrList<Attendee> mAttendees; | 153 | QPtrList<Attendee> mAttendees; |
154 | 154 | ||
155 | bool mFloats; | 155 | bool mFloats; |
156 | 156 | ||
157 | int mDuration; | 157 | int mDuration; |
158 | bool mHasDuration; | 158 | bool mHasDuration; |
159 | QString mExternalId; | 159 | QString mExternalId; |
160 | int mTempSyncStat; | 160 | int mTempSyncStat; |
161 | 161 | ||
162 | // PILOT SYNCHRONIZATION STUFF | 162 | // PILOT SYNCHRONIZATION STUFF |
163 | int mPilotId; // unique id for pilot sync | 163 | int mPilotId; // unique id for pilot sync |
164 | int mSyncStatus; // status (for sync) | 164 | int mSyncStatus; // status (for sync) |
165 | 165 | ||
166 | QPtrList<Observer> mObservers; | 166 | QPtrList<Observer> mObservers; |
167 | }; | 167 | }; |
168 | 168 | ||
169 | bool operator==( const IncidenceBase&, const IncidenceBase& ); | 169 | bool operator==( const IncidenceBase&, const IncidenceBase& ); |
170 | } | 170 | } |
171 | 171 | ||
172 | #endif | 172 | #endif |