Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/account.cc

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


Revision 1.6 - (hide 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 youi 1.1 /*
2     * XOOPS&Platform???若?句????????????????劫?臂?/span>
3     *
4 aga 1.6 * $Revision: 1.5 $
5 youi 1.2 * $Log: account.cc,v $
6 aga 1.6 * Revision 1.5 2005/01/15 05:31:16 youi
7     * userid_t??篏帥?c???臂?
8     *
9 youi 1.5 * Revision 1.4 2005/01/14 10:33:37 aga
10     * ??nt privateIndexID??菴遵??.
11     *
12 aga 1.4 * Revision 1.3 2004/12/01 10:28:58 youi
13     * DB????????????眼??軸??篆??
14     * institute -> division
15     * organizaion -> company_name
16     *
17 youi 1.3 * Revision 1.2 2004/11/25 08:57:01 youi
18     * ?潟?潟?鴻???????水????har*?????<?潟??紊??違??0?у??????.
19     * get膤脂?∽?違??onst篆??.
20     *
21 youi 1.2 * Revision 1.1 2004/11/22 08:25:16 youi
22     * initial version.
23     *
24 youi 1.1 *
25     */
26     #include <time.h>
27     #include <string.h>
28    
29     #include "account.h"
30     #include "common.h"
31    
32     account::account()
33     {
34 youi 1.2 // char???ゃ?潟?帥??0?у??????/span>
35     address = 0;
36 youi 1.3 division = 0;
37 youi 1.2 tel = 0;
38 youi 1.3 company_name = 0;
39 youi 1.2 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 youi 1.1 uid = 0;
62     activate = false;
63     setValue( &address, "" );
64 youi 1.3 setValue( &division, "" );
65 youi 1.1 setValue( &tel, "" );
66 youi 1.3 setValue( &company_name, "" );
67 youi 1.1 setValue( &country, "" );
68     setValue( &zipcode, "" );
69     setValue( &fax, "" );
70     noticeMail = 1;
71     noticeMailSince = 0;
72 aga 1.4 privateIndexID = 0;
73 youi 1.1
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 youi 1.3 if( division != 0 ) delete[] division;
110 youi 1.1 if( tel != 0 ) delete[] tel;
111 youi 1.3 if( company_name != 0 ) delete[] company_name;
112 youi 1.1 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 youi 1.5 userid_t account::getUID() const { return uid; }
137 youi 1.1
138 youi 1.2 bool account::getActivate() const { return activate; }
139 youi 1.1
140 youi 1.2 const char * account::getAddress() const { return address; }
141 youi 1.1
142 youi 1.3 const char * account::getDivision() const { return division; }
143 youi 1.1
144 youi 1.2 const char * account::getTel() const { return tel; }
145 youi 1.1
146 youi 1.3 const char * account::getCompanyName() const { return company_name; }
147 youi 1.1
148 youi 1.2 const char * account::getCountry() const { return country; }
149 youi 1.1
150 youi 1.2 const char * account::getZipcode() const { return zipcode; }
151 youi 1.1
152 youi 1.2 const char * account::getFax() const { return fax; }
153 youi 1.1
154 youi 1.2 int account::getNoticeMail() const { return noticeMail; }
155 youi 1.1
156 youi 1.2 time_t account::getNoticeMailSince() const { return noticeMailSince; }
157 youi 1.1
158 aga 1.4 int account::getPrivateIndexID() const { return privateIndexID; }
159    
160 youi 1.1 // xoops_user
161 youi 1.2 const char* account::getUname( ) const { return uname; }
162 youi 1.1
163 youi 1.2 const char* account::getName( ) const { return name; }
164 youi 1.1
165 youi 1.2 const char* account::getEmail( ) const { return email; }
166 youi 1.1
167 youi 1.2 const char* account::getURL( ) const { return url; }
168 youi 1.1
169 youi 1.2 const char* account::getUserAvatar( ) const { return user_avatar; }
170 youi 1.1
171 youi 1.2 int account::getUserRegdate( ) const { return user_regdate; }
172 youi 1.1
173 youi 1.2 const char* account::getUserIcq( ) const { return user_icq; }
174 youi 1.1
175 youi 1.2 const char* account::getUserFrom( ) const { return user_from; }
176 youi 1.1
177 youi 1.2 const char* account::getUserSig( ) const { return user_sig; }
178 youi 1.1
179 youi 1.2 int account::getUserViewemail( ) const { return user_viewemail; }
180 youi 1.1
181 youi 1.2 const char* account::getActkey( ) const { return actkey; }
182 youi 1.1
183 youi 1.2 const char* account::getUserAim( ) const { return user_aim; }
184 youi 1.1
185 youi 1.2 const char* account::getUserYim( ) const { return user_yim; }
186 youi 1.1
187 youi 1.2 const char* account::getUserMsnm( ) const { return user_msnm; }
188 youi 1.1
189 youi 1.2 const char* account::getPass( ) const { return pass; }
190 youi 1.1
191 youi 1.2 int account::getPosts( ) const { return posts; }
192 youi 1.1
193 youi 1.2 int account::getAttachsig( ) const { return attachsig; }
194 youi 1.1
195 youi 1.2 int account::getRank( ) const { return rank; }
196 youi 1.1
197 youi 1.2 int account::getLevel( ) const { return level; }
198 youi 1.1
199 youi 1.2 const char* account::getTheme( ) const { return theme; }
200 youi 1.1
201 youi 1.2 double account::getTimezoneOffset( ) const { return timezone_offset; }
202 youi 1.1
203 youi 1.2 int account::getLastLogin( ) const { return last_login; }
204 youi 1.1
205 youi 1.2 const char* account::getUmode( ) const { return umode; }
206 youi 1.1
207 youi 1.2 int account::getUorder( ) const { return uorder; }
208 youi 1.1
209 youi 1.2 int account::getNotifyMethod( ) const { return notify_method; }
210 youi 1.1
211 youi 1.2 int account::getNotifyMode( ) const { return notify_mode; }
212 youi 1.1
213 youi 1.2 const char* account::getUserOcc( ) const { return user_occ; }
214 youi 1.1
215 youi 1.2 const char* account::getBio( ) const { return bio; }
216 youi 1.1
217 youi 1.2 const char* account::getUserIntrest( ) const { return user_intrest; }
218 youi 1.1
219 youi 1.2 int account::getUserMailok( ) const { return user_mailok; }
220 youi 1.1
221    
222     //
223 youi 1.5 void account::setUID(userid_t uid){ this -> uid = uid; }
224 youi 1.1
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 youi 1.3 void account::setDivision( const char* division)
233 youi 1.1 {
234 youi 1.3 setValue( &this -> division, division );
235 youi 1.1 }
236    
237     void account::setTel( const char* tel)
238     {
239     setValue( &this -> tel, tel );
240     }
241    
242 youi 1.3 void account::setCompanyName( const char* company_name)
243 youi 1.1 {
244 youi 1.3 setValue( &this -> company_name, company_name );
245 youi 1.1 }
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 aga 1.4
266     void account::setPrivateIndexID(int xid){ this -> privateIndexID = xid; }
267 youi 1.1
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