2
// Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 3 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
#ifndef __STATISTICS_H__
20
#define __STATISTICS_H__
31
class Statistics : public NetStats {
58
// these make calculations on the collected network data.
63
void setIPaddr(in_addr_t x) { _ipaddr = x; };
64
void setBrowser(browser_e x) { _browser = x; } ;
65
void setOS(ostype_e x) { _os = x; } ;
66
in_addr_t getIPaddr() { return _ipaddr; };
67
browser_e getBrowser() { return _browser; };
68
ostype_e getOS() { return _os; };
70
// void setFilespec(std::string &x) { _filespec = x; } ;
71
// std::string &getFilespec() { return _filespec; };
72
// Dump the collected network statistics in a human readable form.
79
std::list<NetStats *> _netstats;
80
boost::uint32_t _msg_count;
81
std::vector<std::string> _filespec;
84
} // end of gnash namespace
86
#endif // __STATISTICS_H__
90
// indent-tabs-mode: t