Changeset 76 for trunk/UContact.pas
- Timestamp:
- Dec 15, 2021, 8:56:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UContact.pas
r74 r76 15 15 TDataType = (dtNone, dtString, dtInteger, dtDate, dtDateTime, dtImage, dtStringList); 16 16 17 TContactFieldIndex = (cf FirstName, cfMiddleName, cfLastName, cfTitleBefore,17 TContactFieldIndex = (cfNone, cfFirstName, cfMiddleName, cfLastName, cfTitleBefore, 18 18 cfTitleAfter, cfFullName, 19 19 cfTel, cfTelCell, cfTelFax, cfTelPager, cfTelHome2, cfTelVoip, cfTelMain, … … 33 33 cfTwitter, cfFacebook, cfInstagram, cfSnapchat, cfMatrix, cfYoutube, 34 34 cfPeerTube, cfLinkedIn, cfMastodon, cfMySpace, cfReddit); 35 36 TContactFieldIndexes = TFPGList<TContactFieldIndex>; 37 38 TContactFilterItem = class 39 FieldIndex: TContactFieldIndex; 40 Value: string; 41 end; 42 43 { TContactFilterItems } 44 45 TContactFilterItems = class(TFPGObjectList<TContactFilterItem>) 46 function AddNew(FieldIndex: TContactFieldIndex; Value: string): TContactFilterItem; 47 end; 35 48 36 49 TContactFields = class; … … 348 361 end; 349 362 SetLength(Result, O - 1); 363 end; 364 365 { TContactFilterItems } 366 367 function TContactFilterItems.AddNew(FieldIndex: TContactFieldIndex; 368 Value: string): TContactFilterItem; 369 begin 370 Result := TContactFilterItem.Create; 371 Result.FieldIndex := FieldIndex; 372 Result.Value := Value; 373 Add(Result); 350 374 end; 351 375
Note:
See TracChangeset
for help on using the changeset viewer.