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.4 - (hide annotations) (download) (as text)
Fri Jan 14 10:33:37 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.3: +11 -1 lines
File MIME type: text/x-c++src
・int privateIndexIDを追加.

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

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