Listing 4: class PlayEvent

class PlayEvent {
public:
    typedef long SeqNumType;
    typedef int  IDType;
    enum PEStatus {
            NotAvail,
            Avail,
            Cued,
            Playing,
            Paused,
            Cancelled,
            PlayedOK,
            PlayedLate,
            PlayedEarly,
            PlayError
    };

// not shown: enum Fields, Formats, StrErrors -- mb

/* Constructors */

    PlayEvent();
    PlayEvent( IDType new_ID );
    ~PlayEvent();

// not shown: selectors, modifiers -- mb

private:
    SeqNumType seqNum_; // seq num in playlist
    IDType     id_;     // unique id
    PEStatus   status_;
    int        length_; // in seconds
    String     name_;   // of spot, commercial, or song
};
/* End of File */