From dff7c00a0c2c3fcb64efd611d70398d711ad861b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 24 Jun 2009 00:04:28 +0200 Subject: NetworkUserBackend implementiert --- src/Common/Requests/CMakeLists.txt | 5 ---- src/Common/Requests/GroupListRequest.h | 38 ------------------------ src/Common/Requests/GroupUserListRequest.cpp | 36 ----------------------- src/Common/Requests/GroupUserListRequest.h | 44 ---------------------------- src/Common/Requests/UserGroupListRequest.cpp | 36 ----------------------- src/Common/Requests/UserGroupListRequest.h | 44 ---------------------------- src/Common/Requests/UserInfoRequest.cpp | 36 ----------------------- src/Common/Requests/UserInfoRequest.h | 44 ---------------------------- src/Common/Requests/UserListRequest.h | 38 ------------------------ 9 files changed, 321 deletions(-) delete mode 100644 src/Common/Requests/GroupListRequest.h delete mode 100644 src/Common/Requests/GroupUserListRequest.cpp delete mode 100644 src/Common/Requests/GroupUserListRequest.h delete mode 100644 src/Common/Requests/UserGroupListRequest.cpp delete mode 100644 src/Common/Requests/UserGroupListRequest.h delete mode 100644 src/Common/Requests/UserInfoRequest.cpp delete mode 100644 src/Common/Requests/UserInfoRequest.h delete mode 100644 src/Common/Requests/UserListRequest.h (limited to 'src/Common/Requests') diff --git a/src/Common/Requests/CMakeLists.txt b/src/Common/Requests/CMakeLists.txt index b6ff90c..d80b0fa 100644 --- a/src/Common/Requests/CMakeLists.txt +++ b/src/Common/Requests/CMakeLists.txt @@ -3,13 +3,8 @@ include_directories(${INCLUDES}) add_library(Requests STATIC DisconnectRequest.cpp DisconnectRequest.h FSInfoRequest.h - GroupListRequest.h - GroupUserListRequest.cpp GroupUserListRequest.h IdentifyRequest.cpp IdentifyRequest.h SimpleRequest.cpp SimpleRequest.h StatusRequest.h - UserGroupListRequest.cpp UserGroupListRequest.h - UserInfoRequest.cpp UserInfoRequest.h - UserListRequest.h ) target_link_libraries(Requests ${KRB5_LIBRARIES}) diff --git a/src/Common/Requests/GroupListRequest.h b/src/Common/Requests/GroupListRequest.h deleted file mode 100644 index f8760ca..0000000 --- a/src/Common/Requests/GroupListRequest.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * GroupListRequest.h - * - * Copyright (C) 2009 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_COMMON_REQUESTS_GROUPLISTREQUEST_H_ -#define MAD_COMMON_REQUESTS_GROUPLISTREQUEST_H_ - -#include "SimpleRequest.h" - -namespace Mad { -namespace Common { -namespace Requests { - -class GroupListRequest : public SimpleRequest { - public: - GroupListRequest(Application *application) : SimpleRequest(application, "ListGroups") {} -}; - -} -} -} - -#endif /* MAD_COMMON_REQUESTS_GROUPLISTREQUEST_H_ */ diff --git a/src/Common/Requests/GroupUserListRequest.cpp b/src/Common/Requests/GroupUserListRequest.cpp deleted file mode 100644 index 87ab1b5..0000000 --- a/src/Common/Requests/GroupUserListRequest.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * GroupUserListRequest.cpp - * - * Copyright (C) 2008 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#include "GroupUserListRequest.h" - -namespace Mad { -namespace Common { -namespace Requests { - -void GroupUserListRequest::sendRequest() { - Common::XmlPacket packet; - packet.setType("ListGroupUsers"); - packet.set("gid", gid); - - sendPacket(packet); -} - -} -} -} diff --git a/src/Common/Requests/GroupUserListRequest.h b/src/Common/Requests/GroupUserListRequest.h deleted file mode 100644 index f95cd3b..0000000 --- a/src/Common/Requests/GroupUserListRequest.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * GroupUserListRequest.h - * - * Copyright (C) 2009 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_COMMON_REQUESTS_GROUPUSERLISTREQUEST_H_ -#define MAD_COMMON_REQUESTS_GROUPUSERLISTREQUEST_H_ - -#include "../Request.h" - -namespace Mad { -namespace Common { -namespace Requests { - -class GroupUserListRequest : public Request { - private: - unsigned long gid; - - protected: - virtual void sendRequest(); - - public: - GroupUserListRequest(Application *application, unsigned long gid0) : Request(application), gid(gid0) {} -}; - -} -} -} - -#endif /* MAD_COMMON_REQUESTS_GROUPUSERLISTREQUEST_H_ */ diff --git a/src/Common/Requests/UserGroupListRequest.cpp b/src/Common/Requests/UserGroupListRequest.cpp deleted file mode 100644 index 0c1a72f..0000000 --- a/src/Common/Requests/UserGroupListRequest.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * UserGroupListRequest.cpp - * - * Copyright (C) 2008 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#include "UserGroupListRequest.h" - -namespace Mad { -namespace Common { -namespace Requests { - -void UserGroupListRequest::sendRequest() { - Common::XmlPacket packet; - packet.setType("ListUserGroups"); - packet.set("uid", uid); - - sendPacket(packet); -} - -} -} -} diff --git a/src/Common/Requests/UserGroupListRequest.h b/src/Common/Requests/UserGroupListRequest.h deleted file mode 100644 index 4cd27b6..0000000 --- a/src/Common/Requests/UserGroupListRequest.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * UserGroupListRequest.h - * - * Copyright (C) 2009 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_COMMON_REQUESTS_USERGROUPLISTREQUEST_H_ -#define MAD_COMMON_REQUESTS_USERGROUPLISTREQUEST_H_ - -#include "../Request.h" - -namespace Mad { -namespace Common { -namespace Requests { - -class UserGroupListRequest : public Request { - private: - unsigned long uid; - - protected: - virtual void sendRequest(); - - public: - UserGroupListRequest(Application *application, unsigned long uid0) : Request(application), uid(uid0) {} -}; - -} -} -} - -#endif /* MAD_COMMON_REQUESTS_USERGROUPLISTREQUEST_H_ */ diff --git a/src/Common/Requests/UserInfoRequest.cpp b/src/Common/Requests/UserInfoRequest.cpp deleted file mode 100644 index b4b6940..0000000 --- a/src/Common/Requests/UserInfoRequest.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * UserInfoRequest.cpp - * - * Copyright (C) 2008 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#include "UserInfoRequest.h" - -namespace Mad { -namespace Common { -namespace Requests { - -void UserInfoRequest::sendRequest() { - Common::XmlPacket packet; - packet.setType("GetUserInfo"); - packet.set("uid", uid); - - sendPacket(packet); -} - -} -} -} diff --git a/src/Common/Requests/UserInfoRequest.h b/src/Common/Requests/UserInfoRequest.h deleted file mode 100644 index 7b4b2fc..0000000 --- a/src/Common/Requests/UserInfoRequest.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * UserInfoRequest.h - * - * Copyright (C) 2008 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_COMMON_REQUESTS_USERINFOREQUEST_H_ -#define MAD_COMMON_REQUESTS_USERINFOREQUEST_H_ - -#include "../Request.h" - -namespace Mad { -namespace Common { -namespace Requests { - -class UserInfoRequest : public Request { - private: - unsigned long uid; - - protected: - virtual void sendRequest(); - - public: - UserInfoRequest(Application *application, unsigned long uid0) : Request(application), uid(uid0) {} -}; - -} -} -} - -#endif /* MAD_COMMON_REQUESTS_USERINFOREQUEST_H_ */ diff --git a/src/Common/Requests/UserListRequest.h b/src/Common/Requests/UserListRequest.h deleted file mode 100644 index 9196166..0000000 --- a/src/Common/Requests/UserListRequest.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * UserListRequest.h - * - * Copyright (C) 2009 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_COMMON_REQUESTS_USERLISTREQUEST_H_ -#define MAD_COMMON_REQUESTS_USERLISTREQUEST_H_ - -#include "SimpleRequest.h" - -namespace Mad { -namespace Common { -namespace Requests { - -class UserListRequest : public SimpleRequest { - public: - UserListRequest(Application *application) : SimpleRequest(application, "ListUsers") {} -}; - -} -} -} - -#endif /* MAD_COMMON_REQUESTS_USERLISTREQUEST_H_ */ -- cgit v1.2.3