*%******************************************************************************************
*% Autocnfg.GDL
*% This file implements the  *BidiQuery, *BidiResponse and *Option elements that correspond
*% to the Memory,DuplexUnit and PrinterHardDisk features in AutoCnfg.GPD file. The feature
*% name in the GDL file should exaclty match the corresponding feature and option names in the GPD.
*%******************************************************************************************


%*******************************************************************************************
*%                                                         Memory
*%
*%******************************************************************************************

*Feature: Memory
{
        *FeatureType: PRINTER_PROPERTY
        *BidiQuery: Memory
        {
                *QueryString: "\Printer.Configuration.Memory:Size"
        }

        *BidiResponse: Memory
        {
                *ResponseType: BIDI_INT
                *ResponseData: ENUM_OPTION(Memory)
        }
        *Option: 16384KB
        {
                *BidiValue: INT(16384)
        }
        *Option: 20480KB
        {
                *BidiValue: INT(20480)
        }
        *Option: 24576KB
        {
                *BidiValue: INT(24576)
        }
        *Option: 28672KB
        {
                *BidiValue: INT(28672)
        }
        *Option: 32768KB
        {
                *BidiValue: INT(32768)
        }
        *Option: 36864KB
        {
                *BidiValue: INT(36864)
        }
        *Option: 40960KB
        {
                *BidiValue: INT(40960)
        }
        *Option: 45056KB
        {
                *BidiValue: INT(45056)
        }
        *Option: 49152KB
        {
                *BidiValue: INT(49152)
        }
        *Option: 53248KB
        {
                *BidiValue: INT(53248)
        }
        *Option: 57344KB
        {
                *BidiValue: INT(57344)
        }
        *Option: 65536KB
        {
                *BidiValue: INT(65536)
        }
        *Option: 69632KB
        {
                *BidiValue: INT(69632)
        }
        *Option: 73728KB
        {
                *BidiValue: INT(73728)
        }
        *Option: 81920KB
        {
                *BidiValue: INT(81920)
        }
        *Option: 86016KB
        {
                *BidiValue: INT(86016)
        }
        *Option: 90112KB
        {
                *BidiValue: INT(90112)
        }
        *Option: 98304KB
        {
                *BidiValue: INT(98304)
        }
        *Option: 102400KB
        {
                *BidiValue: INT(102400)
        }
        *Option: 106496KB
        {
                *BidiValue: INT(106496)
        }
        *Option: 114688KB
        {
                *BidiValue: INT(114688)
        }
        *Option: 122880KB
        {
                *BidiValue: INT(122880)
        }
        *Option: 131072KB
        {
                *BidiValue: INT(131072)
        }
        *Option: 139264KB
        {
                *BidiValue: INT(139264)
        }
        *Option: 147456KB
        {
                *BidiValue: INT(147456)
        }
        *Option: 155648KB
        {
                *BidiValue: INT(155648)
        }
        *Option: 163840KB
        {
                *BidiValue: INT(163840)
        }
        *Option: 167936KB
        {
                *BidiValue: INT(167936)
        }
        *Option: 172032KB
        {
                *BidiValue: INT(172032)
        }
        *Option: 180224KB
        {
                *BidiValue: INT(180224)
        }
        *Option: 196608KB
        {
                *BidiValue: INT(196608)
        }
        *Option: 204800KB
        {
                *BidiValue: INT(204800)
        }
        *Option: 212992KB
        {
                *BidiValue: INT(212992)
        }
        *Option: 229376KB
        {
                *BidiValue: INT(229376)
        }
        *Option: 221184KB
        {
                *BidiValue: INT(221184)
        }
        *Option: 229376KB
        {
                *BidiValue: INT(229376)
        }
        *Option: 245760KB
        {
                *BidiValue: INT(245760)
        }
        *Option: 262144KB
        {
                *BidiValue: INT(262144)
        }
        *Option: 278528KB
        {
                *BidiValue: INT(278528)
        }
        *Option: 294912KB
        {
                *BidiValue: INT(294912)
        }
        *Option: 327680KB
        {
                *BidiValue: INT(327680)
        }
        *Option: 344064KB
        {
                *BidiValue: INT(344064)
        }
        *Option: 393216KB
        {
                *BidiValue: INT(393216)
        }
        *Option: 524288KB
        {
                *BidiValue: INT(524288)
        }
        *Option: 589824KB
        {
                *BidiValue: INT(589824)
        }
        *Option: 655360KB
        {
                *BidiValue: INT(655360)
        }
        *Option: 786432KB
        {
                *BidiValue: INT(786432)
        }
}

*%*******************************************************************************************
*%                     FlashMemory
*%
*%******************************************************************************************

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

        *BidiResponse: FlashMemory
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(FlashMemory)
        }
        *Option: NotInstalled
        {
                *BidiValue: BOOL(FALSE)
        }
        *Option: Installed
        {
                *BidiValue: BOOL(TRUE)
        }
}

*%******************************************************************************************
*%                                      Hard Disk
*%******************************************************************************************

*Feature: HardDisk
{
    *FeatureType: PRINTER_PROPERTY
    *BidiQuery: HardDisk
    {
                *QueryString: "\Printer.Configuration.HardDisk:Installed"
    }
    *BidiResponse: HardDisk
    {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(HardDisk)
    }
    *Option: NotInstalled
    {
                *BidiValue: BOOL(FALSE)
        }
    *Option: Installed
    {
                *BidiValue: BOOL(TRUE)
    }
}


*%******************************************************************************************
*%                                      Duplex Unit
*%******************************************************************************************

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

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

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

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

*%*Feature: Tray2
*%{
*%        *FeatureType: PRINTER_PROPERTY
*%        *BidiQuery: Tray2
*%        {
*%                *QueryString: "\Printer.Layout.InputBin.Tray2:Capacity"
*%        }
*%
*%        *BidiResponse: Tray2
*%        {
*%                *ResponseType: BIDI_INT
*%                *ResponseData: ENUM_OPTION(Tray2)
*%        }
*%        *Option: NotInstalled
*%        {
*%                *BidiValue: INT(0)
*%        }
*%        *Option: _250SheetTray
*%        {
*%                *BidiValue: INT(250)
*%        }
*%        *Option: _500SheetTray
*%        {
*%                *BidiValue: INT(500)
*%        }
*%        *Option: _550SheetTray
*%        {
*%                *BidiValue: INT(550)
*%        }
*%        *Option: _2000SheetTray
*%        {
*%                *BidiValue: INT(2000)
*%        }
*%        *Option: _EnvelopeDrawer
*%        {
*%                *BidiValue: INT(60)
*%        }
*%
*%}




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

        *BidiResponse: Tray2
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(Tray2)
        }
        *Option: NotInstalled
        {
                *BidiValue: BOOL(FALSE)
        }
        *Option: Installed
        {
                *BidiValue: BOOL(TRUE)
        }
        
}

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

        *BidiResponse: Tray3
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(Tray3)
        }
        *Option: NotInstalled
        {
                *BidiValue: BOOL(FALSE)
        }
        *Option: Installed
        {
                *BidiValue: BOOL(TRUE)
        }
        
}

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

        *BidiResponse: Tray4
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(Tray4)
        }
        *Option: NotInstalled
        {
                *BidiValue: BOOL(FALSE)
        }
        *Option: Installed
        {
                *BidiValue: BOOL(TRUE)
        }
        
}

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

        *BidiResponse: Tray5
        {
                *ResponseType: BIDI_BOOL
                *ResponseData: ENUM_OPTION(Tray5)
        }
        *Option: NotInstalled
        {
                *BidiValue: BOOL(FALSE)
        }
        *Option: Installed
        {
                *BidiValue: BOOL(TRUE)
        }
        
}

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

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

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

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