72563b811fc6750c79e06e97f1ed84882676f78e
[metaproxy-moved-to-github.git] / src / filter_auth_simple.hpp
1 /* $Id: filter_auth_simple.hpp,v 1.7 2006-06-10 14:29:12 adam Exp $
2    Copyright (c) 2005-2006, Index Data.
3
4    See the LICENSE file for details
5  */
6
7 #ifndef FILTER_AUTH_SIMPLE_HPP
8 #define FILTER_AUTH_SIMPLE_HPP
9
10 #include <boost/scoped_ptr.hpp>
11
12 #include "filter.hpp"
13
14 namespace metaproxy_1 {
15     namespace filter {
16         class AuthSimple : public Base {
17             class Rep;
18             boost::scoped_ptr<Rep> m_p;
19         public:
20             AuthSimple();
21             ~AuthSimple();
22             void configure(const xmlNode * ptr);
23             void process(metaproxy_1::Package & package) const;
24         private:
25             void config_userRegister(std::string filename);
26             void config_targetRegister(std::string filename);
27             void process_init(metaproxy_1::Package & package) const;
28             void process_search(metaproxy_1::Package & package) const;
29             void process_scan(metaproxy_1::Package & package) const;
30             void check_targets(metaproxy_1::Package & package) const;
31         };
32     }
33 }
34
35 extern "C" {
36     extern struct metaproxy_1_filter_struct metaproxy_1_filter_auth_simple;
37 }
38
39 #endif
40 /*
41  * Local variables:
42  * c-basic-offset: 4
43  * indent-tabs-mode: nil
44  * c-file-style: "stroustrup"
45  * End:
46  * vim: shiftwidth=4 tabstop=8 expandtab
47  */