summaryrefslogtreecommitdiff
path: root/src/net/loginhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-31 21:52:04 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-31 21:52:04 -0600
commit78e67de6f70aab502a85578264b60493a818b39f (patch)
tree33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/loginhandler.h
parent37432edac65a6b85c7a3414a421f2afd3e67a14e (diff)
downloadmana-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.h37
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