*%******************************************************************************************
*%
*% This file implements the *BidiQuery, *BidiResponse and *Option elements that correspond to  
*% the InstalledMemory, DuplexUnit and HardDisk features in AutoCnfg.PPD file. The feature  
*% name in the GDL file should exaclty match the corresponding feature and option names in the PPD. 
*%******************************************************************************************
*%******************************************************************************************
*%                                      Paper Feeder
*%******************************************************************************************
*Feature: CassetteThree
{
        *FeatureType: PRINTER_PROPERTY
	*BidiQuery: CassetteThree
	{
		*QueryString: "\Printer.Layout.InputBin.CassetteThree:Installed"
	}

	*BidiResponse: CassetteThree
	{
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(CassetteThree)
	}

	*Option: False
	{
		*BidiValue: BOOL(FALSE)
	}

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                      Duplex Unit
*%******************************************************************************************

*Feature: DuplexUnit
{
        *FeatureType: PRINTER_PROPERTY
	*BidiQuery: DuplexUnit
	{
		*QueryString: "\Printer.Configuration.DuplexUnit:Installed"
	}

	*BidiResponse: DuplexUnit
	{
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(DuplexUnit)
	}

	*Option: False
	{
		*BidiValue: BOOL(FALSE)
	}

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                    Finisher
*%******************************************************************************************
*Feature: DF3Kfinisher
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery:DF3Kfinisher
        {
                    *QueryString: "\Printer.Finishing.3000Finisher:Installed"
        } 
        *BidiResponse:DF3Kfinisher
        {
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(DF3Kfinisher)
	}

	*Option: False
	{
		*BidiValue: BOOL(FALSE)
	}

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                    Punch Unit
*%******************************************************************************************
*Feature: PunchUnit
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery:PunchUnit
        {
                    *QueryString: "\Printer.Finishing.PunchingUnit:Installed"
        } 
        *BidiResponse:PunchUnit
        {
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(PunchUnit)
	}

	*Option: False
	{
		*BidiValue: BOOL(FALSE)
	}

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                      Memory
*%******************************************************************************************
*Feature: InstalledMemory
{
	*FeatureType: PRINTER_PROPERTY
	*BidiQuery: InstalledMemory
	{
		*QueryString: "\Printer.Configuration.Memory:Size"
	}
	*BidiResponse: InstalledMemory
	{
		*ResponseType: BIDI_INT
		*ResponseData: ENUM_OPTION(InstalledMemory)
	}
	*Option: 128MB
	{
		*BidiValue: INT(131072)
	}
        *Option: 160MB
	{
		*BidiValue: INT(163840)
	}
	*Option: 192MB
	{
		*BidiValue: INT(196608)
	}
	        *Option: 224MB
	{
		*BidiValue: INT(229376)
	}
        *Option: 256MB
	{
		*BidiValue: INT(262144)
	}
        *Option: 288MB
	{
		*BidiValue: INT(294912)
	}
	*Option: 320MB
	{
		*BidiValue: INT(327680)
	}
        *Option: 384MB
	{
		*BidiValue: INT(393216)
	}
	        *Option: 416MB
	{
		*BidiValue: INT(425984)
	}
	        *Option: 448MB
	{
		*BidiValue: INT(458752)
	}
	*Option: 512MB
	{
		*BidiValue: INT(524288)
	}
        *Option: 640MB
	{
		*BidiValue: INT(655360)
	}
}
*%******************************************************************************************
*%                                      Optional Disk
*%******************************************************************************************

*Feature: HardDisk
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: HardDisk
        {
                *QueryString: "\Printer.Configuration.HardDisk:Installed"
        }

        *BidiResponse: HardDisk
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(HardDisk)
        }

        *Option: False
        {
                *BidiValue: BOOL(FALSE)
        }

        *Option: True
        {
                *BidiValue: BOOL(TRUE)
        }
}

*Feature: RAMDisk
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: RAMDisk
        {
                *QueryString: "\Printer.Configuration.RAMDisk:Installed"
        }

        *BidiResponse: RAMDisk
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(RAMDisk)
        }

        *Option: False
        {
                *BidiValue: BOOL(FALSE)
        }

        *Option: True
        {
                *BidiValue: BOOL(TRUE)
        }
}