home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
OASEARCH
/
CONTRCTR.HPV
< prev
next >
Wrap
Text File
|
1995-05-15
|
4KB
|
87 lines
//****************************************************************************
// OAContractor Class - C++ Header File (contrctr.hpv) *
// *
// COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
// *
// DISCLAIMER OF WARRANTIES: *
// The following [enclosed] code is sample code created by IBM *
// Corporation. This sample code is not part of any standard IBM product *
// and is provided to you solely for the purpose of assisting you in the *
// development of your applications. The code is provided "AS IS", *
// without warranty of any kind. IBM shall not be liable for any damages *
// arising out of your use of the sample code, even if they have been *
// advised of the possibility of such damages. *
//****************************************************************************
//NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
//
// Default Part Code Generation begins here...
public:
IString contractorID() const;
OAContractor & setContractorID();
IString lastName() const;
OAContractor & setLastName(const IString & aLastName);
IString firstName() const;
OAContractor & setFirstName(const IString & aFirstName);
IString middleInitial() const;
OAContractor & setMiddleInitial(const IString & aMiddleInitial);
IString homeStreet() const;
OAContractor & setHomeStreet(const IString & aHomeStreet);
IString homeCity() const;
OAContractor & setHomeCity(const IString & aHomeCity);
IString homeState() const;
OAContractor & setHomeState(const IString & aHomeState);
IString homeZip() const;
OAContractor & setHomeZip(const IString & aHomeZip);
IString phoneNumber() const;
OAContractor & setPhoneNumber(const IString & aPhoneNumber);
IString startDate() const;
OAContractor & setStartDate(const IString & aStartDate);
IString endDate() const;
OAContractor & setEndDate(const IString & aEndDate);
Boolean isActiveStatus() const;
OAContractor & enableActiveStatus(const Boolean enable = true);
// Overloaded string enabler
OAContractor & enableActiveStatus(const IString & status);
IString currentContract() const;
OAContractor & setCurrentContract(const IString & aCurrentContract);
OAContractor & getContractor();
OAContractor & putContractor();
OAContractor & refreshID();
OAContractor & parseName(const IString & aName);
// Added copy constructor
OAContractor(const OAContractor & aContractor);
static INotificationId contractorIDId;
static INotificationId lastNameId;
static INotificationId firstNameId;
static INotificationId middleInitialId;
static INotificationId homeStreetId;
static INotificationId homeCityId;
static INotificationId homeStateId;
static INotificationId homeZipId;
static INotificationId phoneNumberId;
static INotificationId startDateId;
static INotificationId endDateId;
static INotificationId activeStatusId;
static INotificationId currentContractId;
private:
unsigned long iStartingResourceId;
IString iContractorID;
IString iLastName;
IString iFirstName;
IString iMiddleInitial;
IString iHomeStreet;
IString iHomeCity;
IString iHomeState;
IString iHomeZip;
IString iPhoneNumber;
IString iStartDate;
IString iEndDate;
Boolean iActiveStatus;
IString iCurrentContract;
// Default Part Code Generation ends here.