diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
commit | 78e67de6f70aab502a85578264b60493a818b39f (patch) | |
tree | 33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/loginhandler.h | |
parent | 37432edac65a6b85c7a3414a421f2afd3e67a14e (diff) | |
download | mana-78e67de6f70aab502a85578264b60493a818b39f.tar.gz mana-78e67de6f70aab502a85578264b60493a818b39f.tar.bz2 mana-78e67de6f70aab502a85578264b60493a818b39f.tar.xz mana-78e67de6f70aab502a85578264b60493a818b39f.zip |
Make network handler functions virtual
Diffstat (limited to 'src/net/loginhandler.h')
-rw-r--r-- | src/net/loginhandler.h | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h index ca72248a..19f8c90b 100644 --- a/src/net/loginhandler.h +++ b/src/net/loginhandler.h @@ -25,22 +25,27 @@ #include <iosfwd> namespace Net { - class LoginHandler - { - public: - virtual void loginAccount(const std::string &username, - const std::string &password); - virtual void changeEmail(const std::string &email) {} - virtual void changePassword(const std::string &username, - const std::string &oldPassword, - const std::string &newPassword) {} - virtual void chooseServer(int server) {} - virtual void registerAccount(const std::string &username, - const std::string &password, - const std::string &email = ""); - virtual void unregisterAccount(const std::string &username, - const std::string &password); - }; +class LoginHandler +{ + public: + virtual void loginAccount(const std::string &username, + const std::string &password) {} + + virtual void changeEmail(const std::string &email) {} + + virtual void changePassword(const std::string &username, + const std::string &oldPassword, + const std::string &newPassword) {} + + virtual void chooseServer(int server) {} + + virtual void registerAccount(const std::string &username, + const std::string &password, + const std::string &email = "") {} + + virtual void unregisterAccount(const std::string &username, + const std::string &password) {} +}; } #endif // LOGINHANDLER_H |