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.5 - (show annotations) (download) (as text)
Sat Jan 15 05:31:16 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: demo20050128
Changes since 1.4: +6 -3 lines
File MIME type: text/x-c++src
userid_tを使って定義.

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

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