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.3 - (hide annotations) (download) (as text)
Wed Dec 1 10:28:58 2004 UTC (19 years, 4 months ago) by youi
Branch: MAIN
Changes since 1.2: +17 -13 lines
File MIME type: text/x-c++src
DB・ォ・鬣猯セ、ホハムケケ、ヒネシ、ヲス、タオ
    institute -> division
    organizaion -> company_name

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

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