Changeset 32 for trunk/UContact.pas
- Timestamp:
- Nov 25, 2021, 11:32:55 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UContact.pas
r31 r32 87 87 TContacts = class(TFPGObjectList<TContact>) 88 88 ContactsFile: TContactsFile; 89 procedure AssignToList(List: TFPGObjectList<TObject>); 89 90 function AddNew: TContact; 90 91 function Search(FullName: string): TContact; … … 185 186 procedure TContactProperty.EvaluateAttributes; 186 187 begin 188 if Attributes.IndexOf('BASE64') <> -1 then 189 Encoding := 'BASE64' 190 else 187 191 if Attributes.IndexOfName('ENCODING') <> -1 then 188 192 Encoding := Attributes.Values['ENCODING'] 189 193 else Encoding := ''; 194 190 195 if Attributes.IndexOfName('CHARSET') <> -1 then 191 196 Charset := Attributes.Values['CHARSET'] … … 245 250 246 251 { TContacts } 252 253 procedure TContacts.AssignToList(List: TFPGObjectList<TObject>); 254 var 255 I: Integer; 256 begin 257 List.Clear; 258 for I := 0 to Count - 1 do 259 List.Add(Items[I]); 260 end; 247 261 248 262 function TContacts.AddNew: TContact; … … 419 433 AddNew('TITLE', [], 'Title', cfTitle, dtString); 420 434 AddNew('CATEGORIES', [], 'Categories', cfCategories, dtString); 421 AddNew('ORG', [], 'Organization', cfOrganization, dtString); 435 AddNew('ORG', [], 'Organization', cfOrganization, dtString, 0); 436 AddNew('ORG', [], 'Division', cfOrganization, dtString, 1); 422 437 AddNew('ADR', ['HOME'], 'Home Address', cfAdrHome, dtString); 423 438 AddNew('ADR', ['HOME'], 'Home Address Street', cfHomeAddressStreet, dtString, 1);
Note:
See TracChangeset
for help on using the changeset viewer.