1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 20:03:15 +02:00

Consolidate some header files.

This commit is contained in:
Sadie Powell
2024-02-29 19:32:44 +00:00
parent 190c37a68b
commit e0ac5509b4
23 changed files with 137 additions and 350 deletions
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Access::Access(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
-29
View File
@@ -1,29 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Access final
: public WebPanelProtectedPage
{
public:
Access(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
}
}
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Akick::Akick(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
-29
View File
@@ -1,29 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Akick final
: public WebPanelProtectedPage
{
public:
Akick(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
}
}
@@ -0,0 +1,72 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel::ChanServ
{
class Access;
class Akick;
class Drop;
class Info;
class Modes;
class Set;
extern void BuildChanList(NickAlias *, TemplateFileServer::Replacements &);
}
class WebCPanel::ChanServ::Access final
: public WebPanelProtectedPage
{
public:
Access(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
class WebCPanel::ChanServ::Akick final
: public WebPanelProtectedPage
{
public:
Akick(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
class WebCPanel::ChanServ::Drop final
: public WebPanelProtectedPage
{
public:
Drop(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
class WebCPanel::ChanServ::Info final
: public WebPanelProtectedPage
{
public:
Info(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
class WebCPanel::ChanServ::Modes final
: public WebPanelProtectedPage
{
public:
Modes(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
class WebCPanel::ChanServ::Set final
: public WebPanelProtectedPage
{
public:
Set(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Drop::Drop(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage (cat, u)
{
-28
View File
@@ -1,28 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Drop final
: public WebPanelProtectedPage
{
public:
Drop(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Info::Info(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
-27
View File
@@ -1,27 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Info final
: public WebPanelProtectedPage
{
public:
Info(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Modes::Modes(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
-29
View File
@@ -1,29 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Modes final
: public WebPanelProtectedPage
{
public:
Modes(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
}
}
-1
View File
@@ -6,7 +6,6 @@
*/
#include "../../webcpanel.h"
#include "utils.h"
WebCPanel::ChanServ::Set::Set(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
-29
View File
@@ -1,29 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
class Set final
: public WebPanelProtectedPage
{
public:
Set(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
std::set<Anope::string> GetData() override;
};
}
}
-20
View File
@@ -1,20 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace ChanServ
{
extern void BuildChanList(NickAlias *, TemplateFileServer::Replacements &);
}
}
@@ -7,21 +7,15 @@
#pragma once
namespace WebCPanel
namespace WebCPanel::HostServ
{
class Request;
}
namespace HostServ
{
class Request final
class WebCPanel::HostServ::Request final
: public WebPanelProtectedPage
{
public:
Request(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
@@ -7,21 +7,15 @@
#pragma once
namespace WebCPanel
namespace WebCPanel::MemoServ
{
class Memos;
}
namespace MemoServ
{
class Memos final
class WebCPanel::MemoServ::Memos final
: public WebPanelProtectedPage
{
public:
Memos(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
-27
View File
@@ -1,27 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace NickServ
{
class Alist final
: public WebPanelProtectedPage
{
public:
Alist(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
-27
View File
@@ -1,27 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace NickServ
{
class Cert final
: public WebPanelProtectedPage
{
public:
Cert(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
@@ -1,25 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
namespace WebCPanel
{
namespace NickServ
{
class Confirm final
: public WebPanelProtectedPage
{
public:
Confirm(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
-27
View File
@@ -1,27 +0,0 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel
{
namespace NickServ
{
class Info final
: public WebPanelProtectedPage
{
public:
Info(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
@@ -0,0 +1,48 @@
/*
* (C) 2003-2024 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#pragma once
namespace WebCPanel::NickServ
{
class Alist;
class Cert;
class Confirm;
class Info;
}
class WebCPanel::NickServ::Alist final
: public WebPanelProtectedPage
{
public:
Alist(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
class WebCPanel::NickServ::Cert final
: public WebPanelProtectedPage
{
public:
Cert(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
class WebCPanel::NickServ::Confirm final
: public WebPanelProtectedPage
{
public:
Confirm(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
class WebCPanel::NickServ::Info final
: public WebPanelProtectedPage
{
public:
Info(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
@@ -7,21 +7,15 @@
#pragma once
namespace WebCPanel
namespace WebCPanel::OperServ
{
class Akill;
}
namespace OperServ
{
class Akill final
class WebCPanel::OperServ::Akill final
: public WebPanelProtectedPage
{
public:
Akill(const Anope::string &cat, const Anope::string &u);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override;
};
}
}
+5 -17
View File
@@ -168,20 +168,8 @@ namespace WebPanel
#include "pages/register.h"
#include "pages/confirm.h"
#include "pages/nickserv/info.h"
#include "pages/nickserv/cert.h"
#include "pages/nickserv/alist.h"
#include "pages/nickserv/confirm.h"
#include "pages/chanserv/info.h"
#include "pages/chanserv/set.h"
#include "pages/chanserv/access.h"
#include "pages/chanserv/akick.h"
#include "pages/chanserv/modes.h"
#include "pages/chanserv/drop.h"
#include "pages/memoserv/memos.h"
#include "pages/hostserv/request.h"
#include "pages/operserv/akill.h"
#include "pages/chanserv/chanserv.h"
#include "pages/hostserv/hostserv.h"
#include "pages/memoserv/memoserv.h"
#include "pages/nickserv/nickserv.h"
#include "pages/operserv/operserv.h"