/*
 * Created on 2005-04-19
 *
 * Part of the Symbian development plug-in for Eclipse
 * Copyright (C) Mikołaj Zalewski, 2005
 */
package pl.zalewski.mikolaj.symbdev.core.mmpmodel;

/**
 * A reference to a SOURCE file. A reference to a file can be
 * added by the user or automatically because it is in a selected
 * directory. In the later case it will be removed if the user
 * unselects the directory.  
 * 
 * @author mikolaj
 */
public class MMPSourceFileReference extends MMPFileReference {

    /**
     * Item points to a file - stored in the MMP file. This item
     * was added by the user.
     */
    public static final int ITEM_SOURCE_USER=0;
    /**
     * Item points to a file - stored in the MMP file. This item
     * was added by the plug-in because it is in a selected
     * directory. If the directory is unselected, the item will be
     * removed.
     */
    public static final int ITEM_SOURCE_AUTO=1;
    
    public MMPSourceFileReference(String string, String sourcePath, int type) {
        super(string, sourcePath);
        fType=type;
    }
    
    public MMPSourceFileReference(MMPFileReference ref, int type) {
        super(ref.fString, ref.fSourcePathString);
        fType=type;
    }

    public int fType;
}
