Clean up includes

All the headers are now self-contained (g++ Header.h -o /dev/null).

Some system headers where moved to the .cpp they are actually needed in,
some of our own headers are includes less. (Especially MD5.h)

Headers are sorted alphabetically while in e.g. FileUtils.cpp FileUtils.h
is the first file included.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@915 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-01-07 21:31:16 +00:00
parent 3637091b60
commit e72c445694
55 changed files with 123 additions and 285 deletions
+1 -4
View File
@@ -6,11 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Modules.h"
class CChanAttach : public CModule {
public:
+1 -4
View File
@@ -6,11 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "User.h"
class CAutoOpMod;
+1 -8
View File
@@ -11,15 +11,8 @@
#define REQUIRESSL
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include <pwd.h>
#include <map>
#include <vector>
#include <sys/stat.h>
#define CRYPT_VERIFICATION_TOKEN "::__:AWAY:__::"
+1 -5
View File
@@ -7,12 +7,8 @@
*/
// @todo handle raw 433 (nick in use)
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "IRCSock.h"
#include "User.h"
class CAwayNickMod;
+2 -5
View File
@@ -6,12 +6,9 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "znc.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "User.h"
#include "znc.h"
class CChanSaverMod : public CModule {
public:
+1 -5
View File
@@ -22,12 +22,8 @@
// It is strongly suggested that you enable SSL between znc and your client otherwise the encryption stops at znc and gets sent to your client in plain text.
//
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "String.h"
#include "User.h"
#define REQUIRESSL 1
+4 -9
View File
@@ -9,18 +9,13 @@
* Author: imaginos <imaginos@imaginos.net>
*/
#include "znc.h"
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include "FileUtils.h"
#include "MD5.h"
#include <pwd.h>
#include "User.h"
#include "znc.h"
#include <sstream>
using std::stringstream;
struct EmailST
{
CString sFrom;
-7
View File
@@ -6,15 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "znc.h"
#include "HTTPSock.h"
#include "Server.h"
#include <map>
using std::map;
+1 -2
View File
@@ -12,8 +12,7 @@
* Usage: LoadModule = rejoin [delay]
*
*/
#include <main.h>
#include <Modules.h>
#include <Chan.h>
#include <User.h>
+1 -6
View File
@@ -7,13 +7,8 @@
*/
#ifdef HAVE_PERL
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "FileUtils.h"
#include "Csocket.h"
#include "User.h"
#include "znc.h"
// perl stuff
-8
View File
@@ -6,15 +6,7 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include <pwd.h>
#include <map>
#include <vector>
class CNickServ : public CModule
{
-6
View File
@@ -6,14 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "znc.h"
#include "HTTPSock.h"
#include "Server.h"
class CPartylineChannel {
public:
-8
View File
@@ -6,15 +6,7 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include <pwd.h>
#include <map>
#include <vector>
class CPerform : public CModule
{
-4
View File
@@ -6,11 +6,7 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
class CRawMod : public CModule {
public:
+1 -4
View File
@@ -6,11 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Modules.h"
class CSampleTimer : public CTimer {
public:
+1 -2
View File
@@ -10,10 +10,9 @@
* @brief SASL authentication module for znc.
*/
#include <sasl/sasl.h>
#include "Modules.h"
#include "znc.h"
#include <sasl/sasl.h>
class CSASLAuthMod : public CGlobalModule {
public:
+2 -7
View File
@@ -14,14 +14,9 @@
#define REQUIRESSL
#include "main.h"
#include "znc.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include <pwd.h>
#include "User.h"
#include <sys/stat.h>
/* TODO list
* store timestamp to be displayed
+2 -11
View File
@@ -11,21 +11,12 @@
#define REQUIRESSL
#include "main.h"
#include "znc.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include "String.h"
#include "FileUtils.h"
#include "Csocket.h"
#include "MD5.h"
#include <pwd.h>
#include "znc.h"
#include <sstream>
using std::pair;
using std::stringstream;
class CSChat;
-8
View File
@@ -6,16 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "Csocket.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include "FileUtils.h"
#include "znc.h"
#include <sys/wait.h>
// Forward Declaration
class CShellMod;
+1 -9
View File
@@ -6,16 +6,8 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Utils.h"
#include "FileUtils.h"
#include <pwd.h>
#include <map>
#include <vector>
#include "User.h"
class CStickyChan : public CModule
{
+2 -7
View File
@@ -6,15 +6,10 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "Buffer.h"
#include "Utils.h"
#include "User.h"
#include <list>
using std::list;
class CWatchSource {
+5 -7
View File
@@ -6,21 +6,19 @@
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "znc.h"
#include "HTTPSock.h"
#include "Client.h"
#include "Server.h"
#include "Template.h"
#include "User.h"
#include "znc.h"
#include <sstream>
using std::stringstream;
class CWebAdminMod;
class CWebAdminSock;
class CWebAdminAuth : public CAuthBase {
public:
CWebAdminAuth(CWebAdminSock* pWebAdminSock, const CString& sUsername, const CString& sPassword)