*%******************************************************************************************
*%
*% 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.Dual500Cassette:Installed"
	}

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

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

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

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

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

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

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

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

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

	*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)
	}
}
*%******************************************************************************************
*%                                    Folding Unit
*%******************************************************************************************
*Feature: BookletFolder
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery:BookletFolder
        {
                    *QueryString: "\Printer.Finishing.OutputBin.BookletFolder:Installed"
        } 
        *BidiResponse:BookletFolder
        {
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(BookletFolder)
	}

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

	*Option: True
	{
		*BidiValue: BOOL(TRUE)
	}
}
*%******************************************************************************************
*%                                    3000 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)
	}
}
*%******************************************************************************************
*%                                    1000 Finisher
*%******************************************************************************************
*Feature: DF1Kfinisher
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery:DF1Kfinisher
        {
                    *QueryString: "\Printer.Finishing.1000Finisher:Installed"
        } 
        *BidiResponse:DF1Kfinisher
        {
		*ResponseType: BIDI_BOOL
		*ResponseData: ENUM_OPTION(DF1Kfinisher)
	}

	*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: 256MB
	{
		*BidiValue: INT(262144)
	}
        *Option: 384MB
	{
		*BidiValue: INT(393216)
	}
	*Option: 512MB
	{
 		*BidiValue: INT(524288)
	}
        *Option: 640MB
	{
		*BidiValue: INT(655360)
	}
	*Option: 768MB
	{
		*BidiValue: INT(786432)
	}
	*Option: 1024MB
	{
		*BidiValue: INT(1048576)
	}
}
*%******************************************************************************************
*%                                      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)
        }
}