Changeset 9 for trunk/UContact.pas


Ignore:
Timestamp:
Feb 1, 2018, 1:41:56 PM (7 years ago)
Author:
chronos
Message:
  • Added: More editable contact fields.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UContact.pas

    r8 r9  
    1515  TDataType = (dtString, dtInteger, dtDate, dtDateTime, dtImage);
    1616
    17   TContactFieldIndex = (cfFirstName, cfMiddleName, cfLastName);
     17  TContactFieldIndex = (cfFirstName, cfMiddleName, cfLastName, cfTelPrefCell,
     18    cfTelCell, cfTelHome, cfTelHome2, cfTelWork, cfTitle, cfOrganization,
     19    cfAddress, cfNote);
    1820
    1921  TContactField = class
     
    6062    Note: string;
    6163    Role: string;
     64    Title: string;
    6265    Categories: string;
    6366    Organization: string;
     
    124127    cfMiddleName: Result := MiddleName;
    125128    cfLastName: Result := LastName;
     129    cfTelPrefCell: Result := TelPrefCell;
     130    cfTelCell: Result := TelCell;
     131    cfTelHome: Result := TelHome;
     132    cfTelHome2: Result := TelHome2;
     133    cfTelWork: Result := TelWork;
     134    cfTitle: Result := Title;
     135    cfOrganization: Result := Organization;
     136    cfAddress: Result := AdrHome;
     137    cfNote: Result := Note;
    126138  end;
    127139end;
     
    133145    cfMiddleName: MiddleName := AValue;
    134146    cfLastName: LastName := AValue;
     147    cfTelPrefCell: TelPrefCell := AValue;
     148    cfTelCell: TelCell := AValue;
     149    cfTelHome: TelHome := AValue;
     150    cfTelHome2: TelHome2 := AValue;
     151    cfTelWork: TelWork := AValue;
     152    cfTitle: Title := AValue;
     153    cfOrganization: Organization := AValue;
     154    cfAddress: AdrHome := AValue;
     155    cfNote: Note := AValue;
    135156  end;
    136157end;
     
    155176    AddNew('Middle Name', cfMiddleName, dtString);
    156177    AddNew('Last Name', cfLastName, dtString);
     178    AddNew('Preferred cell phone', cfTelPrefCell, dtString);
     179    AddNew('Cell phone', cfTelCell, dtString);
     180    AddNew('Home phone', cfTelHome, dtString);
     181    AddNew('Home phone 2', cfTelHome2, dtString);
     182    AddNew('Home work', cfTelWork, dtString);
     183    AddNew('Title', cfTitle, dtString);
     184    AddNew('Organization', cfOrganization, dtString);
     185    AddNew('Address', cfAddress, dtString);
     186    AddNew('Note', cfNote, dtString);
    157187  end;
    158188end;
Note: See TracChangeset for help on using the changeset viewer.