NAME

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

SYNOPSIS

   use File::VirusScan;
   use File::VirusScan::ResultSet;

   my $scanner = File::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()

all_suspicious ( )

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

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()

has_suspicious ( )

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

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

get_suspicious ( )

Return all result objects for which ->is_suspicious is true

get_not_suspicious ( )

Return all result objects for which ->is_suspicious is false

SEE ALSO

Data::ResultSet, File::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 terms of the GNU General Public License, version 2, or (at your option) any later version.