NAME

Email::VirusScan::ResultSet - Holds Email::VirusScan::Result objects.

SYNOPSIS

use Email::VirusScan;
use Email::VirusScan::ResultSet;

my $scanner = Email::VirusScan->new( ... );

my $resultset = $scanner->scan( $some_mail_object );

if( $resultset->has_error() ) {
   # Errors running virus scanner.  Do something.
   my @error_results = $resultset->get_error();
   ...
} elsif( $resultset->has_virus() ) {
   # Viruses found.  Do something
   my @virus_results = $resultset->get_virus();
   ...
}

METHODS

all_virus ( )

True if all results return true for ->is_virus()

all_error ( )

True if all results return true for ->is_error()

all_clean ( )

True if all results return true for ->is_clean()

has_virus ( )

True if at least one result returns true for ->is_virus()

has_error ( )

True if at least one result returns true for ->is_error()

has_clean ( )

True if at least one result returns true for ->is_clean()

get_clean ( )

Return all result objects for which ->is_clean is true

get_not_clean ( )

Return all result objects for which ->is_clean is false

get_error ( )

Return all result objects for which ->is_error is true

get_not_error ( )

Return all result objects for which ->is_error is false

get_virus ( )

Return all result objects for which ->is_virus is true

get_not_virus ( )

Return all result objects for which ->is_virus is false

SEE ALSO

Data::ResultSet, Email::VirusScan::Result

AUTHOR

Dave O'Neill (dmo@roaringpenguin.com)

LICENCE AND COPYRIGHT

Copyright (c) 2007 Roaring Penguin Software, Inc.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.