00001 /*************************************************************************** 00002 * Copyright (C) 2007 by www.databasecache.com * 00003 * Contact: praba_tuty@databasecache.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef USER_MANAGER_H 00017 #define USER_MANAGER_H 00018 00034 class UserManager 00035 { 00036 public: 00043 virtual int createUser(const char *name, const char *passwd)=0; 00044 00050 virtual int deleteUser(const char *name)=0; 00051 00057 virtual int changePassword(const char* newPasswd)=0; 00058 00065 virtual int changePassword(const char *userName, const char* newPasswd)=0; 00066 virtual ~UserManager(){}; 00067 }; 00068 #endif