summaryrefslogtreecommitdiff
path: root/src/net/loginhandler.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-12 14:53:32 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-12 14:58:48 +0200
commit92a8e0403595cd0f4b8b2084c45ec79edca7e7c1 (patch)
treed1d4b2b6638935f666c6512b467a6ffc3017fb60 /src/net/loginhandler.h
parent14a6e6a4bc5d39ddf8f31efc07a5e2493a6f6d0a (diff)
downloadmana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.gz
mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.bz2
mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.tar.xz
mana-92a8e0403595cd0f4b8b2084c45ec79edca7e7c1.zip
Append _F or _M to username in eAthena network layer
Abstracts it away and out of main.cpp and register.cpp.
Diffstat (limited to 'src/net/loginhandler.h')
-rw-r--r--src/net/loginhandler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h
index fcdee0da..fdd57689 100644
--- a/src/net/loginhandler.h
+++ b/src/net/loginhandler.h
@@ -27,6 +27,7 @@
#include <iosfwd>
namespace Net {
+
class LoginHandler
{
public:
@@ -35,18 +36,17 @@ class LoginHandler
virtual void changeEmail(const std::string &email) = 0;
virtual void changePassword(const std::string &username,
- const std::string &oldPassword,
- const std::string &newPassword) = 0;
+ const std::string &oldPassword,
+ const std::string &newPassword) = 0;
virtual void chooseServer(int server) = 0;
- virtual void registerAccount(const std::string &username,
- const std::string &password,
- const std::string &email) = 0;
+ virtual void registerAccount(LoginData *loginData) = 0;
virtual void unregisterAccount(const std::string &username,
- const std::string &password) = 0;
+ const std::string &password) = 0;
};
-}
+
+} // namespace Net
#endif // LOGINHANDLER_H