summaryrefslogtreecommitdiffstats
path: root/src/Server/UserBackend.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-24 15:09:24 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-24 15:09:24 +0200
commita8ad2278025467f7cc9c9974d7e82be5752fb697 (patch)
tree49186e5989be68e9139c9a951356d1ad93e68ac0 /src/Server/UserBackend.h
parent8501b9171c4064a2b383945693bb027eefffc2ab (diff)
downloadmad-a8ad2278025467f7cc9c9974d7e82be5752fb697.tar
mad-a8ad2278025467f7cc9c9974d7e82be5752fb697.zip
Interface des UserManager ?berarbeitet
Diffstat (limited to 'src/Server/UserBackend.h')
-rw-r--r--src/Server/UserBackend.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/Server/UserBackend.h b/src/Server/UserBackend.h
index 6d59615..2a51d1b 100644
--- a/src/Server/UserBackend.h
+++ b/src/Server/UserBackend.h
@@ -25,6 +25,8 @@
#include <Common/UserInfo.h>
#include <Common/GroupInfo.h>
+#include <Net/Exception.h>
+
#include <map>
#include <string>
@@ -42,25 +44,25 @@ class UserBackend {
UserBackend() {}
- virtual boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() {
- return boost::shared_ptr<std::map<unsigned long, Common::UserInfo> >();
+ virtual boost::shared_ptr<std::map<unsigned long, Common::UserInfo> > getUserList() throw(Net::Exception) {
+ throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED));
}
- virtual boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid _UNUSED_PARAMETER_) {
- return boost::shared_ptr<Common::UserInfo>();
+ virtual boost::shared_ptr<Common::UserInfo> getUserInfo(unsigned long uid _UNUSED_PARAMETER_) throw(Net::Exception) {
+ throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED));
}
- virtual boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() {
- return boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> >();
+ virtual boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > getGroupList() throw(Net::Exception) {
+ throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED));
}
// TODO Better interface...
- virtual bool setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string &password _UNUSED_PARAMETER_) {
- return false;
+ virtual void setPassword(unsigned long uid _UNUSED_PARAMETER_, const std::string &password _UNUSED_PARAMETER_) throw(Net::Exception) {
+ throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED));
}
- virtual bool addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) {
- return false;
+ virtual void addUser(const Common::UserInfo &userInfo _UNUSED_PARAMETER_) throw(Net::Exception) {
+ throw(Net::Exception(Net::Exception::NOT_IMPLEMENTED));
}
virtual int getPriority() const {