Net-IPP
view release on metacpan or search on metacpan
lib/Net/IPP/IPP.pm view on Meta::CPAN
JOBSTATE_PENDING => 3,
JOBSTATE_PENDING_HELD => 4,
JOBSTATE_PROCESSING => 5,
JOBSTATE_PROCESSING_STOPPED => 6,
JOBSTATE_CANCELED => 7,
JOBSTATE_ABORTED => 8,
JOBSTATE_COMPLETED => 9,
});
# Orientations
our %orientation;
registerConstants(\%orientation, {
ORIENTATION_PORTRAIT => 3, # no rotation
ORIENTATION_LANDSCAPE => 4, # 90 degrees counter-clockwise
ORIENTATION_REVERSE_LANDSCAPE => 5, # 90 degrees clockwise
ORIENTATION_REVERSE_PORTRAIT => 6, # 180 degrees
});
our %statusCodes = (
0x0000 => "successful-ok",
0x0001 => "successful-ok-ignored-or-substituted-attributes",
0x0002 => "successful-ok-conflicting-attributes",
0x0003 => "successful-ok-ignored-subscriptions",
0x0004 => "successful-ok-ignored-notifications",
0x0005 => "successful-ok-too-many-events",
0x0006 => "successful-ok-but-cancel-subscription",
# Client errors
0x0400 => "client-error-bad-request",
0x0401 => "client-error-forbidden",
0x0402 => "client-error-not-authenticated",
0x0403 => "client-error-not-authorized",
0x0404 => "client-error-not-possible",
0x0405 => "client-error-timeout",
0x0406 => "client-error-not-found",
0x0407 => "client-error-gone",
0x0408 => "client-error-request-entity-too-large",
0x0409 => "client-error-request-value-too-long",
0x040a => "client-error-document-format-not-supported",
0x040b => "client-error-attributes-or-values-not-supported",
0x040c => "client-error-uri-scheme-not-supported",
0x040d => "client-error-charset-not-supported",
0x040e => "client-error-conflicting-attributes",
0x040f => "client-error-compression-not-supported",
0x0410 => "client-error-compression-error",
0x0411 => "client-error-document-format-error",
0x0412 => "client-error-document-access-error",
0x0413 => "client-error-attributes-not-settable",
0x0414 => "client-error-ignored-all-subscriptions",
0x0415 => "client-error-too-many-subscriptions",
0x0416 => "client-error-ignored-all-notifications",
0x0417 => "client-error-print-support-file-not-found",
#Server errors
0x0500 => "server-error-internal-error",
0x0501 => "server-error-operation-not-supported",
0x0502 => "server-error-service-unavailable",
0x0503 => "server-error-version-not-supported",
0x0504 => "server-error-device-error",
0x0505 => "server-error-temporary-error",
0x0506 => "server-error-not-accepting-jobs",
0x0507 => "server-error-busy",
0x0508 => "server-error-job-canceled",
0x0509 => "server-error-multiple-document-jobs-not-supported",
0x050a => "server-error-printer-is-deactivated"
);
#
# All constants are subroutines, so
# export all subroutines, except "registerConstants"
#
foreach my $keyname (keys %{Net::IPP::IPP::}) {
if ($keyname ne "registerConstants") {
local *key = ${Net::IPP::IPP::}{$keyname};
push (@EXPORT_OK, $keyname) if *key{CODE};
}
}
%EXPORT_TAGS = ( 'all' => \@EXPORT_OK );
}
1;
__END__
=head1 NAME
Net::IPP::IPP - IPP Constants
=cut
( run in 0.932 second using v1.01-cache-2.11-cpan-39bf76dae61 )