*%******************************************************************************************
*%
*% 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: CassetteTwo
{
        *FeatureType: PRINTER_PROPERTY
	*BidiQuery: CassetteTwo
	{
		*QueryString: "\Printer.Layout.InputBin.CassetteTwo:Installed"
	}

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

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

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

*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)
	}
}

*Feature: CassetteFour
{
        *FeatureType: PRINTER_PROPERTY
	*BidiQuery: CassetteFour
	{
		*QueryString: "\Printer.Layout.InputBin.CassetteFour:Installed"
	}

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

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

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*Feature: CassetteFive
{
        *FeatureType: PRINTER_PROPERTY
	*BidiQuery: CassetteFive
	{
		*QueryString: "\Printer.Layout.InputBin.CassetteFive:Installed"
	}

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

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

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                    Optional Feeders
*%******************************************************************************************
*Feature: MPTray
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: MPTray
        {
                *QueryString: "\Printer.Layout.InputBin.MPTray:Replaced"
        }

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

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

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

*Feature: EnvelopeFeeder
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: EnvelopeFeeder
        {
                *QueryString: "\Printer.Layout.InputBin.EnvelopeFeeder:Installed"
        }

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

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

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

*Feature: BulkPaperFeeder
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: BulkPaperFeeder
        {
                *QueryString: "\Printer.Layout.InputBin.BulkFeeder:Installed"
        }

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

        *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: 32MB
	{
 		*BidiValue: INT(32768)
	}
        *Option: 40MB
	{
 		*BidiValue: INT(40960)
	}
        *Option: 48MB
	{
 		*BidiValue: INT(49152)
	}
	*Option: 64MB
	{
 		*BidiValue: INT(65536)
	}
	*Option: 80MB
	{
		*BidiValue: INT(81920)
	}
	*Option: 96MB
	{
		*BidiValue: INT(98304)
	}
	*Option: 128MB
	{
		*BidiValue: INT(131072)
	}
        *Option: 144MB
	{
		*BidiValue: INT(147456)
	}
        *Option: 160MB
	{
		*BidiValue: INT(163840)
	}
	*Option: 192MB
	{
		*BidiValue: INT(196608)
	}
        *Option: 256MB
	{
		*BidiValue: INT(262144)
	}
        *Option: 288MB
	{
		*BidiValue: INT(294912)
	}
	*Option: 320MB
	{
		*BidiValue: INT(327680)
	}
        *Option: 384MB
	{
		*BidiValue: INT(393216)
	}
	*Option: 576MB
	{
		*BidiValue: INT(589824)
	}
        *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)
        }
}

