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.8 - (show annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (19 years ago) by tani
Branch: MAIN
CVS Tags: RELEASE_1_0_0, RELEASE_1_0_1
Changes since 1.7: +24 -1 lines
File MIME type: text/x-c++src
ライセンス文を追加.

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

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