Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/account.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Sat Jan 22 00:18:33 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
CVS Tags: demo20050128
Changes since 1.7: +5 -2 lines
File MIME type: text/x-chdr
・indexID を unsigned にした.

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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26