"Fossies" - the Fresh Open Source Software Archive 
Member "srg-1.3.6/include/UserReport.h" (5 Aug 2009, 1378 Bytes) of package /linux/privat/old/srg-1.3.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 SRG - Squid Report Generator
3
4 Report By User
5 - Shows the Sites that a user visited
6 - User could be a squid username, ip address, subnet
7
8 Copyright 2005 University of Waikato
9
10 This file is part of SRG.
11
12 SRG is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 SRG is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with SRG; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
26 */
27
28 #ifndef USERREPORT_H
29 #define USREREPORT_H
30
31 #include "srg.h"
32 #include "Report.h"
33 #include "SiteReport.h"
34
35
36 class UserReport : public Report {
37
38 public:
39 UserReport(char * user) : Report(user) {singleUserMode=false;}
40 ~UserReport();
41
42 void generate_report(const char *);
43
44 void process_line(const log_line *line);
45 void updateStats();
46 summary_info getStats();
47
48 bool singleUserMode;
49
50 private:
51 SiteReport *findSite(char * site);
52 list<SiteReport*> sites;
53
54 };
55
56 #endif // USREREPORT_H