qa.hh

Go to the documentation of this file.
00001 /* vim: set sw=4 sts=4 et foldmethod=syntax : */
00002 
00003 /*
00004  * Copyright (c) 2007 Ciaran McCreesh
00005  *
00006  * This file is part of the Paludis package manager. Paludis is free software;
00007  * you can redistribute it and/or modify it under the terms of the GNU General
00008  * Public License version 2, as published by the Free Software Foundation.
00009  *
00010  * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
00011  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00012  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00013  * details.
00014  *
00015  * You should have received a copy of the GNU General Public License along with
00016  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00017  * Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #ifndef PALUDIS_GUARD_PALUDIS_QA_HH
00021 #define PALUDIS_GUARD_PALUDIS_QA_HH 1
00022 
00023 #include <paludis/qa-fwd.hh>
00024 #include <paludis/package_id.hh>
00025 #include <paludis/metadata_key-fwd.hh>
00026 #include <paludis/util/fs_entry.hh>
00027 #include <paludis/util/sequence-fwd.hh>
00028 #include <paludis/util/set-fwd.hh>
00029 #include <paludis/util/sr.hh>
00030 
00031 /** \file
00032  * Declarations for Repository QA classes.
00033  *
00034  * \ingroup g_repository
00035  *
00036  * \section Examples
00037  *
00038  * - \ref example_repository.cc "example_repository.cc"
00039  */
00040 
00041 namespace paludis
00042 {
00043 #include <paludis/qa-sr.hh>
00044 
00045     /**
00046      * A QAReporter subclass is passed to RepositoryQAInterface::check_qa to do
00047      * the reporting.
00048      *
00049      * \ingroup g_repository
00050      */
00051     class PALUDIS_VISIBLE QAReporter
00052     {
00053         public:
00054             virtual ~QAReporter() = 0;
00055 
00056             /**
00057              * Report a QA message.
00058              */
00059             virtual void message(const QAMessage &) = 0;
00060 
00061             /**
00062              * Update status.
00063              */
00064             virtual void status(const std::string &) = 0;
00065     };
00066 }
00067 
00068 #endif

Generated on Mon Dec 22 19:43:50 2008 for paludis by  doxygen 1.5.7.1