diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /include/access.h | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'include/access.h')
-rw-r--r-- | include/access.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/access.h b/include/access.h index e19c15a76..18499b602 100644 --- a/include/access.h +++ b/include/access.h @@ -59,7 +59,7 @@ class CoreExport ChanAccess : public Serializable { public: AccessProvider *provider; - ChannelInfo *ci; + serialize_obj<ChannelInfo> ci; Anope::string mask; Anope::string creator; time_t last_seen; @@ -68,13 +68,13 @@ class CoreExport ChanAccess : public Serializable ChanAccess(AccessProvider *p); virtual ~ChanAccess(); - Anope::string serialize_name() const; - serialized_data serialize(); - static void unserialize(serialized_data &); + const Anope::string serialize_name() const anope_override; + Serialize::Data serialize() const anope_override; + static Serializable* unserialize(Serializable *obj, Serialize::Data &); - virtual bool Matches(User *u, NickCore *nc); + virtual bool Matches(const User *u, const NickCore *nc) const; virtual bool HasPriv(const Anope::string &name) const = 0; - virtual Anope::string Serialize() = 0; + virtual Anope::string Serialize() const = 0; virtual void Unserialize(const Anope::string &data) = 0; bool operator>(const ChanAccess &other) const; @@ -86,12 +86,12 @@ class CoreExport ChanAccess : public Serializable class CoreExport AccessGroup : public std::vector<ChanAccess *> { public: - ChannelInfo *ci; - NickCore *nc; + const ChannelInfo *ci; + const NickCore *nc; bool SuperAdmin, Founder; AccessGroup(); bool HasPriv(const Anope::string &priv) const; - ChanAccess *Highest() const; + const ChanAccess *Highest() const; bool operator>(const AccessGroup &other) const; bool operator<(const AccessGroup &other) const; bool operator>=(const AccessGroup &other) const; |