/*
 * Filename: PrintQueueEvent.java
 *
 * Author: Joe Wang
 *
 * Copyright (c) 2003-2005 
 * The Trustees of Columbia University in the City of New York
 * Columbia University Information Technology
 *
 * This file is part of NINJa.
 *
 * NINJa is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * NINJa is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with NINJa; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

package edu.columbia.print.ninja.core.event;

import net.jini.print.job.PrintRequest;
import javax.print.attribute.DocAttributeSet;

/**
 * This class represents modifications to a PrintRequestAttributeSet.
 * These event will be caused by another client updating it's attributes and
 * calling JobQueue.requestStart with the new attributes.
 * @author Joe Wang <jw168@columbia.edu>
 * @since 1.0
 * @see edu.columbia.print.core.service.JobQueue#requestStart
 */
public class PrintQueueEvent extends net.jini.print.event.PrintEvent {

    private static final long serialVersionUID = 4546234885308130639L;
    public static final long REQUEST_ADDED = 1L;
    public static final long REQUEST_REMOVED = 2L;
    public static final long REQUEST_ADDING = 3L;

    PrintRequest req;
    DocAttributeSet doc;

    public PrintQueueEvent(net.jini.print.service.PrintService src, long action, long sequenceNo, java.rmi.MarshalledObject handback, PrintRequest req, DocAttributeSet doc) {
		super(src, action, sequenceNo, handback);
		this.req = req;
		this.doc = doc;
	}

    public PrintRequest getPrintRequest() {return req;}
    public DocAttributeSet getDocAttributes() {return doc;}
    }
