|
|
 |
|
|
|
|
203: ~PostMasterMessage(){}
204:
205: void Edit(); // invokes editor on this message
206:
207: pAddress& GetSender() const { return itsSender; }
208: pAddress& GetRecipient() const { return itsRecipient; }
209: String& GetSubject() const { return itsSubject; }
210: // void SetSender(pAddress& );
211: // other member accessors
212:
213: // operator methods here, including operator equals
214: // and conversion routines to turn PostMaster messages
215: // into messages of other formats.
216:
217: private:
218: pAddress itsSender;
219: pAddress itsRecipient;
220: String itsSubject;
221: pDate itsCreationDate;
222: pDate itsLastModDate;
223: pDate itsReceiptDate;
224: pDate itsFirstReadDate;
225: pDate itsLastReadDate;
226: };
227:
228: PostMasterMessage::PostMasterMessage(
229: const pAddress& Sender,
230: const pAddress& Recipient,
231: const String& Subject,
232: const pDate& creationDate):
233: itsSender(Sender),
234: itsRecipient(Recipient),
235: itsSubject(Subject),
236: itsCreationDate(creationDate),
237: itsLastModDate(creationDate),
238: itsFirstReadDate(0),
239: itsLastReadDate(0)
240: {
241: cout << Post Master Message created. \n;
242: }
243:
244: void PostMasterMessage::Edit()
245: {
246: cout << PostMasterMessage edit function called\n;
247: }
248:
249:
250: int main()
251: { |
|
|
|
 |
|
|
|
|
continues |
|
|
|
|
|