Planeshift

psaccountinfo.h

Go to the documentation of this file.
00001 /*
00002  * psaccountinfo.h
00003  *
00004  * Copyright (C) 2001 Atomic Blue ([email protected], http://www.atomicblue.org)
00005  *
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation (version 2 of the License)
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  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  *
00018  */
00019 
00020 #ifndef __PSACCOUNTINFO_H__
00021 #define __PSACCOUNTINFO_H__
00022 
00023 //=============================================================================
00024 // Crystal Space Includes
00025 //=============================================================================
00026 #include <csutil/csstring.h>
00027 
00028 //=============================================================================
00029 // Project Includes
00030 //=============================================================================
00031 #include <idal.h>
00032 #include "../icachedobject.h"
00033 
00034 //=============================================================================
00035 // Local Includes
00036 //=============================================================================
00037 
00038 
00039 
00044 class psAccountInfo : public iCachedObject
00045 {
00046 public:
00047     psAccountInfo();
00048     ~psAccountInfo();
00049 
00050     bool Load(iResultRow &row);
00051 
00052     // iCachedObject Functions below
00053     virtual void ProcessCacheTimeout() {};  
00054     virtual void* RecoverObject()
00055     {
00056         return this;    
00057     }
00058     virtual void DeleteSelf()
00059     {
00060         delete this;    
00061     }
00062 
00064     unsigned int accountid;
00066     csString username;
00068     csString password;
00069 
00071     csString password256;
00072 
00073 
00075     csString lastlogintime;
00077     csString createddate;
00079     csString lastloginip;
00080 
00082     csString os;
00084     uint16 os_ver_major;
00086     uint16 os_ver_minor;
00088     csString os_platform;
00090     csString machine_type;
00091 
00093     csString gfxcard;
00095     csString gfxversion;
00097     int spamPoints;
00099     int advisorPoints;
00101     int securitylevel;
00102 };
00103 
00104 #endif
00105