central/user.h

Go to the documentation of this file.
00001 /* $Id:user.h jjs $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY.
00010 
00011    See the COPYING file for more details.
00012 */
00013 #ifndef __USER_H
00014 #define __USER_H
00015 
00016 #include <vector>
00017 #include <map>
00018 #include "../general/channel.h"
00019 
00021 
00022 class user {
00023   public:
00024     std::string username;   
00025     std::string password;   
00026     std::string session;    
00027     long sessnr;            
00028     channel *ch;            
00029 
00031     void save(channel *ch);
00032 };
00033 
00035 extern map<std::string, user> users;
00036 
00038 void load_user(channel *ch);
00039 
00040 #endif


Generated on Tue Jan 1 17:30:00 2008 for central/user.h Source File by  doxygen   Visit the project page on SourceForge.net Logo