Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/account.cc

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


Revision 1.7 - (show annotations) (download) (as text)
Fri Feb 25 07:00:37 2005 UTC (19 years, 1 month ago) by tani
Branch: MAIN
Changes since 1.6: +16 -1 lines
File MIME type: text/x-c++src
item_number_limit, index_number_limit, item_storage_limitを追加.

1 /*
2 * XOOPS&Platform???若?句????????????????劫?臂?/span>
3 *
4 * $Revision: 1.6 $
5 * $Log: account.cc,v $
6 * Revision 1.6 2005/02/09 07:23:50 aga
7 * ??RL to My Personal Archive ??DB??L????羔?????.
8 *
9 * Revision 1.5 2005/01/15 05:31:16 youi
10 * userid_t??篏帥?c???臂?
11 *
12 * Revision 1.4 2005/01/14 10:33:37 aga
13 * ??nt privateIndexID??菴遵??.
14 *
15 * Revision 1.3 2004/12/01 10:28:58 youi
16 * DB????????????眼??軸??篆??
17 * institute -> division
18 * organizaion -> company_name
19 *
20 * Revision 1.2 2004/11/25 08:57:01 youi
21 * ?潟?潟?鴻???????水????har*?????<?潟??紊??違??0?у??????.
22 * get膤脂?∽?違??onst篆??.
23 *
24 * Revision 1.1 2004/11/22 08:25:16 youi
25 * initial version.
26 *
27 *
28 */
29 #include <time.h>
30 #include <string.h>
31
32 #include "account.h"
33 #include "common.h"
34
35 account::account()
36 {
37 // char???ゃ?潟?帥??0?у??????/span>
38 address = 0;
39 division = 0;
40 tel = 0;
41 company_name = 0;
42 country = 0;
43 zipcode = 0;
44 fax = 0;
45 uname = 0;
46 name = 0;
47 email = 0;
48 url = 0;
49 user_avatar = 0;
50 user_icq = 0;
51 user_from = 0;
52 user_sig = 0;
53 actkey = 0;
54 user_aim = 0;
55 user_yim = 0;
56 user_msnm = 0;
57 pass = 0;
58 theme = 0;
59 umode = 0;
60 user_occ = 0;
61 bio = 0;
62 user_intrest = 0;
63
64 uid = 0;
65 activate = false;
66 setValue( &address, "" );
67 setValue( &division, "" );
68 setValue( &tel, "" );
69 setValue( &company_name, "" );
70 setValue( &country, "" );
71 setValue( &zipcode, "" );
72 setValue( &fax, "" );
73 noticeMail = 1;
74 noticeMailSince = 0;
75 privateIndexID = 0;
76
77 setValue( &uname, "" );
78 setValue( &name, "" );
79 setValue( &email, "" );
80 setValue( &url, "" );
81 setValue( &user_avatar, "" );
82 user_regdate = 0;
83 setValue( &user_icq, "" );
84 setValue( &user_from, "" );
85 setValue( &user_sig, "" );
86 user_viewemail = 0;
87 setValue( &actkey, "" );
88 setValue( &user_aim, "" );
89 setValue( &user_yim, "" );
90 setValue( &user_msnm, "" );
91 setValue( &pass, "" );
92 posts = 0;
93 attachsig = 0;
94 rank = 0;
95 level = 0;
96 setValue( &theme, "" );
97 timezone_offset = 0.0;
98 last_login = 0;
99 setValue( &umode, "" );
100 uorder = 0;
101 notify_method = 0;
102 notify_mode = 0;
103 setValue( &user_occ, "" );
104 setValue( &bio, "" );
105 setValue( &user_intrest, "" );
106 user_mailok = 0;
107 }
108
109 account::~account()
110 {
111 if( address != 0 ) delete[] address;
112 if( division != 0 ) delete[] division;
113 if( tel != 0 ) delete[] tel;
114 if( company_name != 0 ) delete[] company_name;
115 if( country != 0 ) delete[] country;
116 if( zipcode != 0 ) delete[] zipcode;
117 if( fax != 0 ) delete[] fax;
118
119 if( uname != 0 ) delete[] uname;
120 if( name != 0 ) delete[] name;
121 if( email != 0 ) delete[] email;
122 if( url != 0 ) delete[] url;
123 if( user_avatar != 0 ) delete[] user_avatar;
124 if( user_icq != 0 ) delete[] user_icq;
125 if( user_from != 0 ) delete[] user_from;
126 if( user_sig != 0 ) delete[] user_sig;
127 if( actkey != 0 ) delete[] actkey;
128 if( user_aim != 0 ) delete[] user_aim;
129 if( user_yim != 0 ) delete[] user_yim;
130 if( user_msnm != 0 ) delete[] user_msnm;
131 if( pass != 0 ) delete[] pass;
132 if( theme != 0 ) delete[] theme;
133 if( umode != 0 ) delete[] umode;
134 if( user_occ != 0 ) delete[] user_occ;
135 if( bio != 0 ) delete[] bio;
136 if( user_intrest != 0 ) delete[] user_intrest;
137 }
138
139 userid_t account::getUID() const { return uid; }
140
141 bool account::getActivate() const { return activate; }
142
143 const char * account::getAddress() const { return address; }
144
145 const char * account::getDivision() const { return division; }
146
147 const char * account::getTel() const { return tel; }
148
149 const char * account::getCompanyName() const { return company_name; }
150
151 const char * account::getCountry() const { return country; }
152
153 const char * account::getZipcode() const { return zipcode; }
154
155 const char * account::getFax() const { return fax; }
156
157 int account::getNoticeMail() const { return noticeMail; }
158
159 time_t account::getNoticeMailSince() const { return noticeMailSince; }
160
161 int account::getPrivateIndexID() const { return privateIndexID; }
162
163 int account::getItemNumberLimit() const { return itemNumberLimit; }
164
165 int account::getIndexNumberLimit() const { return indexNumberLimit; }
166
167 double account::getItemStorageLimit() const { return itemStorageLimit; }
168
169 // xoops_user
170 const char* account::getUname( ) const { return uname; }
171
172 const char* account::getName( ) const { return name; }
173
174 const char* account::getEmail( ) const { return email; }
175
176 const char* account::getURL( ) const { return url; }
177
178 const char* account::getUserAvatar( ) const { return user_avatar; }
179
180 int account::getUserRegdate( ) const { return user_regdate; }
181
182 const char* account::getUserIcq( ) const { return user_icq; }
183
184 const char* account::getUserFrom( ) const { return user_from; }
185
186 const char* account::getUserSig( ) const { return user_sig; }
187
188 int account::getUserViewemail( ) const { return user_viewemail; }
189
190 const char* account::getActkey( ) const { return actkey; }
191
192 const char* account::getUserAim( ) const { return user_aim; }
193
194 const char* account::getUserYim( ) const { return user_yim; }
195
196 const char* account::getUserMsnm( ) const { return user_msnm; }
197
198 const char* account::getPass( ) const { return pass; }
199
200 int account::getPosts( ) const { return posts; }
201
202 int account::getAttachsig( ) const { return attachsig; }
203
204 int account::getRank( ) const { return rank; }
205
206 int account::getLevel( ) const { return level; }
207
208 const char* account::getTheme( ) const { return theme; }
209
210 double account::getTimezoneOffset( ) const { return timezone_offset; }
211
212 int account::getLastLogin( ) const { return last_login; }
213
214 const char* account::getUmode( ) const { return umode; }
215
216 int account::getUorder( ) const { return uorder; }
217
218 int account::getNotifyMethod( ) const { return notify_method; }
219
220 int account::getNotifyMode( ) const { return notify_mode; }
221
222 const char* account::getUserOcc( ) const { return user_occ; }
223
224 const char* account::getBio( ) const { return bio; }
225
226 const char* account::getUserIntrest( ) const { return user_intrest; }
227
228 int account::getUserMailok( ) const { return user_mailok; }
229
230
231 //
232 void account::setUID(userid_t uid){ this -> uid = uid; }
233
234 void account::setActivate(bool activate){ this -> activate = activate; }
235
236 void account::setAddress( const char* address)
237 {
238 setValue( &this -> address, address );
239 }
240
241 void account::setDivision( const char* division)
242 {
243 setValue( &this -> division, division );
244 }
245
246 void account::setTel( const char* tel)
247 {
248 setValue( &this -> tel, tel );
249 }
250
251 void account::setCompanyName( const char* company_name)
252 {
253 setValue( &this -> company_name, company_name );
254 }
255
256 void account::setCountry( const char* country)
257 {
258 setValue( &this -> country, country );
259 }
260
261 void account::setZipcode( const char* zipcode)
262 {
263 setValue( &this -> zipcode, zipcode );
264 }
265
266 void account::setFax( const char* fax)
267 {
268 setValue( &this -> fax, fax );
269 }
270
271 void account::setNoticeMail(int noticeMail){ this -> noticeMail = noticeMail; }
272
273 void account::setNoticeMailSince(time_t noticeMailSince){ this -> noticeMailSince = noticeMailSince; }
274
275 void account::setPrivateIndexID(int xid){ this -> privateIndexID = xid; }
276
277 void account::setItemNumberLimit( int x ){ itemNumberLimit = x; }
278
279 void account::setIndexNumberLimit( int x ){ indexNumberLimit = x; }
280
281 void account::setItemStorageLimit( double x ){ itemStorageLimit = x; }
282
283 // xoops_user
284 void account::setUname( const char* uname )
285 {
286 setValue( &this -> uname, uname );
287 }
288
289 void account::setName( const char* name )
290 {
291 setValue( &this -> name, name );
292 }
293
294 void account::setEmail( const char* email )
295 {
296 setValue( &this -> email, email );
297 }
298
299 void account::setURL( const char* url )
300 {
301 setValue( &this -> url, url );
302 }
303
304 void account::setUserAvatar( const char* user_avatar )
305 {
306 setValue( &this -> user_avatar, user_avatar );
307 }
308
309 void account::setUserRegdate( int user_regdate ){ this -> user_regdate = user_regdate; }
310
311 void account::setUserIcq( const char* user_icq )
312 {
313 setValue( &this -> user_icq, user_icq );
314 }
315
316 void account::setUserFrom( const char* user_from )
317 {
318 setValue( &this -> user_from, user_from );
319 }
320
321 void account::setUserSig( const char* user_sig )
322 {
323 setValue( &this -> user_sig, user_sig );
324 }
325
326 void account::setUserViewemail( int user_viewemail ){ this -> user_viewemail = user_viewemail; }
327
328 void account::setActkey( const char* actkey )
329 {
330 setValue( &this -> actkey, actkey );
331 }
332
333 void account::setUserAim( const char* user_aim )
334 {
335 setValue( &this -> user_aim, user_aim );
336 }
337
338 void account::setUserYim( const char* user_yim )
339 {
340 setValue( &this -> user_yim, user_yim );
341 }
342
343 void account::setUserMsnm( const char* user_msnm )
344 {
345 setValue( &this -> user_msnm, user_msnm );
346 }
347
348
349 void account::setPass( const char* pass )
350 {
351 setValue( &this -> pass, pass );
352 }
353
354 void account::setPosts( int posts ){ this -> posts = posts; }
355
356 void account::setAttachsig( int attachsig ){ this -> attachsig = attachsig; }
357
358 void account::setRank( int rank ){ this -> rank = rank; }
359
360 void account::setLevel( int level ){ this -> level = level; }
361
362 void account::setTheme( const char* theme )
363 {
364 setValue( &this -> theme, theme );
365 }
366
367 void account::setTimezoneOffset( double timezone_offset ){ this -> timezone_offset = timezone_offset; }
368
369 void account::setLastLogin( int last_login ){ this -> last_login = last_login; }
370
371 void account::setUmode( const char* umode )
372 {
373 setValue( &this -> umode, umode );
374 }
375
376 void account::setUorder( int uorder ){ this -> uorder = uorder; }
377
378 void account::setNotifyMethod( int notify_method ){ this -> notify_method = notify_method; }
379
380 void account::setNotifyMode( int notify_mode ){ this -> notify_mode = notify_mode; }
381
382 void account::setUserOcc( const char* user_occ )
383 {
384 setValue( &this -> user_occ, user_occ );
385 }
386
387
388 void account::setBio( const char* bio )
389 {
390 setValue( &this -> bio, bio );
391 }
392
393 void account::setUserIntrest( const char* user_intrest )
394 {
395 setValue( &this->user_intrest, user_intrest );
396 }
397
398 void account::setUserMailok( int user_mailok ){ this -> user_mailok = user_mailok; }
399
400
401
402
403

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