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.6 - (show annotations) (download) (as text)
Wed Feb 9 07:23:50 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217
Changes since 1.5: +4 -11 lines
File MIME type: text/x-c++src
・URL to My Personal Archive をDB・ALから消した.

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

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