| 1 |
youi |
1.1 |
/* |
| 2 |
|
|
* XOOPS&Platform???若?句????????????????劫?荐? |
| 3 |
|
|
* |
| 4 |
youi |
1.6 |
* $Revision: 1.5 $ |
| 5 |
youi |
1.2 |
* $Log: account.h,v $ |
| 6 |
youi |
1.6 |
* Revision 1.5 2005/01/14 10:33:37 aga |
| 7 |
|
|
* ??nt privateIndexID??菴遵??. |
| 8 |
|
|
* |
| 9 |
aga |
1.5 |
* Revision 1.4 2004/12/01 10:28:58 youi |
| 10 |
|
|
* DB????????????眼??軸??篆?? |
| 11 |
|
|
* institute -> division |
| 12 |
|
|
* organizaion -> company_name |
| 13 |
|
|
* |
| 14 |
youi |
1.4 |
* Revision 1.3 2004/11/25 08:57:15 youi |
| 15 |
|
|
* get膤脂?∽?違??onst篆??. |
| 16 |
|
|
* |
| 17 |
youi |
1.3 |
* Revision 1.2 2004/11/25 04:11:43 youi |
| 18 |
|
|
* typedef??菴遵??. |
| 19 |
youi |
1.4 |
* |
| 20 |
youi |
1.2 |
* Revision 1.1 2004/11/22 08:25:16 youi |
| 21 |
|
|
* initial version. |
| 22 |
|
|
* |
| 23 |
youi |
1.1 |
* |
| 24 |
|
|
*/ |
| 25 |
|
|
#if !defined( ACCOUNT_H ) |
| 26 |
|
|
#define ACCOUNT_H |
| 27 |
|
|
|
| 28 |
|
|
/* |
| 29 |
|
|
* Visiome Platform Abstract Layer |
| 30 |
|
|
* Account膊∞????????/span> |
| 31 |
|
|
* |
| 32 |
|
|
* |
| 33 |
|
|
*/ |
| 34 |
|
|
|
| 35 |
youi |
1.6 |
typedef unsigned int userid_t; |
| 36 |
youi |
1.1 |
class account{ |
| 37 |
|
|
private: |
| 38 |
youi |
1.6 |
userid_t uid; //< ???若?吟?潟?若?? |
| 39 |
youi |
1.1 |
bool activate; //< ?≪?????若?帥???????粋???????/span> |
| 40 |
|
|
char* address; //< 篏?? |
| 41 |
youi |
1.4 |
char* division; //< ??絮? |
| 42 |
youi |
1.1 |
char* tel; //< ?肢????/span> |
| 43 |
youi |
1.4 |
char* company_name; //< 絖???篌?腓上?? |
| 44 |
youi |
1.1 |
char* country; //< ?遵?? |
| 45 |
|
|
char* zipcode; //< ?灸梢???/span> |
| 46 |
|
|
char* fax; //< ???<?????合???/span> |
| 47 |
|
|
char* baseURL; //< ???若??RL |
| 48 |
|
|
int noticeMail; //< ?亥???≪?ゃ???????ャ?<?若????篆♂???? |
| 49 |
|
|
time_t noticeMailSince; //< ?亥???≪?ゃ???????ャ?<?若????篆♂?????脂?我??/span> |
| 50 |
aga |
1.5 |
int privateIndexID; //private index??D |
| 51 |
youi |
1.1 |
|
| 52 |
|
|
char* uname; |
| 53 |
|
|
char* name; |
| 54 |
|
|
char* email; |
| 55 |
|
|
char* url; |
| 56 |
|
|
char* user_avatar; |
| 57 |
|
|
int user_regdate; |
| 58 |
|
|
char* user_icq; |
| 59 |
|
|
char* user_from; |
| 60 |
|
|
char* user_sig; |
| 61 |
|
|
int user_viewemail; |
| 62 |
|
|
char* actkey; |
| 63 |
|
|
char* user_aim; |
| 64 |
|
|
char* user_yim; |
| 65 |
|
|
char* user_msnm; |
| 66 |
|
|
char* pass; |
| 67 |
|
|
int posts; |
| 68 |
|
|
int attachsig; |
| 69 |
|
|
int rank; |
| 70 |
|
|
int level; |
| 71 |
|
|
char* theme; |
| 72 |
|
|
double timezone_offset; |
| 73 |
|
|
int last_login; |
| 74 |
|
|
char* umode; |
| 75 |
|
|
int uorder; |
| 76 |
|
|
int notify_method; |
| 77 |
|
|
int notify_mode; |
| 78 |
|
|
char* user_occ; |
| 79 |
|
|
char* bio; |
| 80 |
|
|
char* user_intrest; |
| 81 |
|
|
int user_mailok; |
| 82 |
|
|
|
| 83 |
|
|
public: |
| 84 |
|
|
account(); |
| 85 |
|
|
~account(); |
| 86 |
|
|
|
| 87 |
|
|
// ---- |
| 88 |
youi |
1.6 |
userid_t getUID() const; |
| 89 |
youi |
1.3 |
bool getActivate() const; |
| 90 |
|
|
const char *getAddress() const; |
| 91 |
youi |
1.4 |
const char *getDivision() const; |
| 92 |
youi |
1.3 |
const char *getTel() const; |
| 93 |
youi |
1.4 |
const char *getCompanyName() const; |
| 94 |
youi |
1.3 |
const char *getCountry() const; |
| 95 |
|
|
const char *getZipcode() const; |
| 96 |
|
|
const char *getFax() const; |
| 97 |
|
|
const char *getBaseURL() const; |
| 98 |
|
|
int getNoticeMail() const; |
| 99 |
|
|
time_t getNoticeMailSince() const; |
| 100 |
aga |
1.5 |
int getPrivateIndexID() const; |
| 101 |
youi |
1.1 |
// ---- |
| 102 |
youi |
1.3 |
const char* getUname( ) const; |
| 103 |
|
|
const char* getName( ) const; |
| 104 |
|
|
const char* getEmail( ) const; |
| 105 |
|
|
const char* getURL( ) const; |
| 106 |
|
|
const char* getUserAvatar( ) const; |
| 107 |
|
|
int getUserRegdate( ) const; |
| 108 |
|
|
const char* getUserIcq( ) const; |
| 109 |
|
|
const char* getUserFrom( ) const; |
| 110 |
|
|
const char* getUserSig( ) const; |
| 111 |
|
|
int getUserViewemail( ) const; |
| 112 |
|
|
const char* getActkey( ) const; |
| 113 |
|
|
const char* getUserAim( ) const; |
| 114 |
|
|
const char* getUserYim( ) const; |
| 115 |
|
|
const char* getUserMsnm( ) const; |
| 116 |
|
|
const char* getPass( ) const; |
| 117 |
|
|
int getPosts( ) const; |
| 118 |
|
|
int getAttachsig( ) const; |
| 119 |
|
|
int getRank( ) const; |
| 120 |
|
|
int getLevel( ) const; |
| 121 |
|
|
const char* getTheme( ) const; |
| 122 |
|
|
double getTimezoneOffset( ) const; |
| 123 |
|
|
int getLastLogin( ) const; |
| 124 |
|
|
const char* getUmode( ) const; |
| 125 |
|
|
int getUorder( ) const; |
| 126 |
|
|
int getNotifyMethod( ) const; |
| 127 |
|
|
int getNotifyMode( ) const; |
| 128 |
|
|
const char* getUserOcc( ) const; |
| 129 |
|
|
const char* getBio( ) const; |
| 130 |
|
|
const char* getUserIntrest( ) const; |
| 131 |
|
|
int getUserMailok( ) const; |
| 132 |
youi |
1.1 |
|
| 133 |
|
|
// ---- |
| 134 |
youi |
1.6 |
void setUID(userid_t uid); |
| 135 |
youi |
1.1 |
void setActivate(bool activate); |
| 136 |
|
|
void setAddress(const char *address); |
| 137 |
youi |
1.4 |
void setDivision(const char *division); |
| 138 |
youi |
1.1 |
void setTel(const char *tel); |
| 139 |
youi |
1.4 |
void setCompanyName(const char *company_name); |
| 140 |
youi |
1.1 |
void setCountry(const char *country); |
| 141 |
|
|
void setZipcode(const char *zipcode); |
| 142 |
|
|
void setFax(const char *fax); |
| 143 |
|
|
void setBaseURL(const char *baseURL); |
| 144 |
|
|
void setNoticeMail(int noticeMail); |
| 145 |
|
|
void setNoticeMailSince( time_t noticeMailSince); |
| 146 |
aga |
1.5 |
void setPrivateIndexID(int xid); |
| 147 |
youi |
1.1 |
// ---- |
| 148 |
|
|
void setUname( const char* uname ); |
| 149 |
|
|
void setName( const char* name ); |
| 150 |
|
|
void setEmail( const char* email ); |
| 151 |
|
|
void setURL( const char* url ); |
| 152 |
|
|
void setUserAvatar( const char* user_avatar ); |
| 153 |
|
|
void setUserRegdate( int user_regdate); |
| 154 |
|
|
void setUserIcq( const char* user_icq ); |
| 155 |
|
|
void setUserFrom( const char* user_from ); |
| 156 |
|
|
void setUserSig( const char* user_sig ); |
| 157 |
|
|
void setUserViewemail( int user_viewemail ); |
| 158 |
|
|
void setActkey( const char* actkey ); |
| 159 |
|
|
void setUserAim( const char* user_aim ); |
| 160 |
|
|
void setUserYim( const char* user_yim ); |
| 161 |
|
|
void setUserMsnm( const char* user_msnm ); |
| 162 |
|
|
void setPass( const char* pass ); |
| 163 |
|
|
void setPosts( int posts ); |
| 164 |
|
|
void setAttachsig( int attachsig ); |
| 165 |
|
|
void setRank( int rank ); |
| 166 |
|
|
void setLevel( int level ); |
| 167 |
|
|
void setTheme( const char* theme ); |
| 168 |
|
|
void setTimezoneOffset( double timezone_offset ); |
| 169 |
|
|
void setLastLogin( int last_login ); |
| 170 |
|
|
void setUmode( const char* umode ); |
| 171 |
|
|
void setUorder( int uorder ); |
| 172 |
|
|
void setNotifyMethod( int notify_method ); |
| 173 |
|
|
void setNotifyMode( int notify_mode ); |
| 174 |
|
|
void setUserOcc( const char* user_occ ); |
| 175 |
|
|
void setBio( const char* bio ); |
| 176 |
|
|
void setUserIntrest( const char* user_intrest ); |
| 177 |
|
|
void setUserMailok( int user_mailok ); |
| 178 |
|
|
}; |
| 179 |
youi |
1.2 |
|
| 180 |
|
|
typedef account account_t; |
| 181 |
youi |
1.1 |
|
| 182 |
|
|
#endif |