]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/link.h
797f108d86588ca3efe3f0495e66c3eb0073481e
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / link.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
5  *   Copyright (C) 2007 Craig Edwards <craigedwards@brainbox.cc>
6  *
7  * This file is part of InspIRCd.  InspIRCd is free software: you can
8  * redistribute it and/or modify it under the terms of the GNU General Public
9  * License as published by the Free Software Foundation, version 2.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20
21 #ifndef M_SPANNINGTREE_LINK_H
22 #define M_SPANNINGTREE_LINK_H
23
24 class Link : public refcountbase
25 {
26  public:
27         reference<ConfigTag> tag;
28         irc::string Name;
29         std::string IPAddr;
30         int Port;
31         std::string SendPass;
32         std::string RecvPass;
33         std::string Fingerprint;
34         std::string AllowMask;
35         bool HiddenFromStats;
36         std::string Hook;
37         int Timeout;
38         std::string Bind;
39         bool Hidden;
40         Link(ConfigTag* Tag) : tag(Tag) {}
41 };
42
43 class Autoconnect : public refcountbase
44 {
45  public:
46         reference<ConfigTag> tag;
47         std::vector<std::string> servers;
48         unsigned long Period;
49         time_t NextConnectTime;
50         /** Negative == inactive */
51         int position;
52         Autoconnect(ConfigTag* Tag) : tag(Tag) {}
53 };
54
55 #endif