]> jfr.im git - irc/rizon/znc.git/blob - Server.h
Write forceserver and webircpassword to conf
[irc/rizon/znc.git] / Server.h
1 /*
2 * Copyright (C) 2004-2011 See the AUTHORS file for details.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
7 */
8
9 #ifndef _SERVER_H
10 #define _SERVER_H
11
12 #include "zncconfig.h"
13 #include "ZNCString.h"
14
15 class CServer {
16 public:
17 CServer(const CString& sName, unsigned short uPort = 6667, const CString& sPass = "", bool bSSL = false);
18 ~CServer();
19
20 const CString& GetName() const;
21 unsigned short GetPort() const;
22 const CString& GetPass() const;
23 bool IsSSL() const;
24 CString GetString(bool bIncludePassword = true) const;
25 static bool IsValidHostName(const CString& sHostName);
26 private:
27 protected:
28 CString m_sName;
29 unsigned short m_uPort;
30 CString m_sPass;
31 bool m_bSSL;
32 };
33
34 #endif // !_SERVER_H