Planeshift
psaccountinfo.h
Go to the documentation of this file.
1 /*
2  * psaccountinfo.h
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef __PSACCOUNTINFO_H__
21 #define __PSACCOUNTINFO_H__
22 
23 //=============================================================================
24 // Crystal Space Includes
25 //=============================================================================
26 #include <csutil/csstring.h>
27 
28 //=============================================================================
29 // Project Includes
30 //=============================================================================
31 #include <idal.h>
32 #include "../icachedobject.h"
33 
34 //=============================================================================
35 // Local Includes
36 //=============================================================================
37 
38 
39 
45 {
46 public:
47  psAccountInfo();
49 
50  bool Load(iResultRow &row);
51 
52  // iCachedObject Functions below
53  virtual void ProcessCacheTimeout() {};
54  virtual void* RecoverObject()
55  {
56  return this;
57  }
58  virtual void DeleteSelf()
59  {
60  delete this;
61  }
62 
64  unsigned int accountid;
66  csString username;
68  csString password;
69 
71  csString password256;
72 
73 
75  csString lastlogintime;
77  csString createddate;
79  csString lastloginip;
80 
82  csString os;
84  uint16 os_ver_major;
86  uint16 os_ver_minor;
88  csString os_platform;
90  csString machine_type;
91 
93  csString gfxcard;
95  csString gfxversion;
102 };
103 
104 #endif
105 
virtual void ProcessCacheTimeout()
This function is called by the generic cache if the specified ticks go by and the cache object is not...
Definition: psaccountinfo.h:53
A data storage class to contain all information associated with an account.
Definition: psaccountinfo.h:44
uint16 os_ver_major
String containing the os major version the connecting machine is running.
Definition: psaccountinfo.h:84
csString os_platform
String containing miscellaneous details about the os the connecting machine is running.
Definition: psaccountinfo.h:88
csString password
The password field is plain text now but later may be a public encryption key or something more elabo...
Definition: psaccountinfo.h:68
bool Load(iResultRow &row)
csString lastlogintime
String value copied from the database containing the last login time.
Definition: psaccountinfo.h:75
csString username
Each account has a unique username associated with it, chosen by the user.
Definition: psaccountinfo.h:66
csString gfxversion
String containing the graphics driver version the connecting machine is using;.
Definition: psaccountinfo.h:95
unsigned int accountid
Each account has a unique id number associated with it.
Definition: psaccountinfo.h:64
csString createddate
String value copied from the database containing the time of creation of the database entry...
Definition: psaccountinfo.h:77
csString os
String containing the os the connecting machine is running.
Definition: psaccountinfo.h:82
csString password256
temporary transition variable
Definition: psaccountinfo.h:71
csString gfxcard
String containing the graphics card the connecting machine is using.
Definition: psaccountinfo.h:93
int securitylevel
Security level indicator for this account.
virtual void DeleteSelf()
Definition: psaccountinfo.h:58
int spamPoints
Level of spamming offenses for this account.
Definition: psaccountinfo.h:97
int advisorPoints
Number of questions answered on the help channel.
Definition: psaccountinfo.h:99
virtual void * RecoverObject()
required for iCachedObject but not used here
Definition: psaccountinfo.h:54
csString lastloginip
String value of the last ip a connection came in from.
Definition: psaccountinfo.h:79
csString machine_type
String containing the type of connecting machine.
Definition: psaccountinfo.h:90
uint16 os_ver_minor
String containing the os minor version the connecting machine is running.
Definition: psaccountinfo.h:86