Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/account.h

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


Revision 1.11 - (show annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (18 years, 11 months ago) by tani
Branch: MAIN
CVS Tags: AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.10: +24 -1 lines
File MIME type: text/x-chdr
ライセンス文を追加.

1 /*
2 * --------------------------------------------------------------------------
3 * XooNiPs Xoops modules for Neuroinformatics Platforms
4 * Copyright (C) 2005 RIKEN, Japan. All rights reserved.
5 * http://sourceforge.jp/projects/xoonips/
6 * --------------------------------------------------------------------------
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * --------------------------------------------------------------------------
21 *
22 * XOOPS&Platform鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
23 *
24 * $Revision: 1.10 $
25 * $Log: account.h,v $
26 * Revision 1.10 2005/02/25 07:00:37 tani
27 * item_number_limit, index_number_limit, item_storage_limit鐃緒申鐃緒申鐃緒申.
28 *
29 * Revision 1.9 2005/02/09 07:23:50 aga
30 * 鐃緒申URL to My Personal Archive 鐃緒申DB鐃緒申AL鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申.
31 *
32 * Revision 1.8 2005/01/22 00:18:33 aga
33 * 鐃緒申indexID 鐃緒申 unsigned 鐃緒申鐃緒申鐃緒申.
34 *
35 * Revision 1.7 2005/01/19 10:06:19 aga
36 * 鐃緒申account::UID_GUEST=0鐃緒申鐃緒申鐃緒申.
37 *
38 * Revision 1.6 2005/01/15 05:31:16 youi
39 * userid_t鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申.
40 *
41 * Revision 1.5 2005/01/14 10:33:37 aga
42 * 鐃緒申int privateIndexID鐃緒申鐃緒申鐃緒申.
43 *
44 * Revision 1.4 2004/12/01 10:28:58 youi
45 * DB鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
46 * institute -> division
47 * organizaion -> company_name
48 *
49 * Revision 1.3 2004/11/25 08:57:15 youi
50 * get鐃緒申鐃緒申鐃緒申鐃緒申const鐃緒申鐃緒申.
51 *
52 * Revision 1.2 2004/11/25 04:11:43 youi
53 * typedef鐃緒申鐃緒申鐃緒申.
54 *
55 * Revision 1.1 2004/11/22 08:25:16 youi
56 * initial version.
57 *
58 *
59 */
60 #if !defined( ACCOUNT_H )
61 #define ACCOUNT_H
62
63 /*
64 * Visiome Platform Abstract Layer
65 * Account鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
66 *
67 *
68 */
69
70 typedef unsigned int userid_t;
71 class account{
72 private:
73 userid_t uid; //< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
74 bool activate; //< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
75 char* address; //< 鐃緒申鐃緒申
76 char* division; //< 鐃緒申鐃緒申
77 char* tel; //< 鐃緒申鐃緒申鐃緒申鐃緒申
78 char* company_name; //< 鐃緒申鐃緒申/鐃緒申鐃緒申鐃緒申
79 char* country; //< 鐃緒申鐃緒申
80 char* zipcode; //< 鐃緒申鐃緒申鐃緒申鐃緒申
81 char* fax; //< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
82 int noticeMail; //< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
83 time_t noticeMailSince; //< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
84 unsigned int privateIndexID; //private index鐃緒申ID
85 int itemNumberLimit;
86 int indexNumberLimit;
87 double itemStorageLimit;
88
89 char* uname;
90 char* name;
91 char* email;
92 char* url;
93 char* user_avatar;
94 int user_regdate;
95 char* user_icq;
96 char* user_from;
97 char* user_sig;
98 int user_viewemail;
99 char* actkey;
100 char* user_aim;
101 char* user_yim;
102 char* user_msnm;
103 char* pass;
104 int posts;
105 int attachsig;
106 int rank;
107 int level;
108 char* theme;
109 double timezone_offset;
110 int last_login;
111 char* umode;
112 int uorder;
113 int notify_method;
114 int notify_mode;
115 char* user_occ;
116 char* bio;
117 char* user_intrest;
118 int user_mailok;
119
120 public:
121 // reserved uid
122 static const userid_t UID_GUEST = 0;
123
124 account();
125 ~account();
126
127 // ----
128 userid_t getUID() const;
129 bool getActivate() const;
130 const char *getAddress() const;
131 const char *getDivision() const;
132 const char *getTel() const;
133 const char *getCompanyName() const;
134 const char *getCountry() const;
135 const char *getZipcode() const;
136 const char *getFax() const;
137 int getNoticeMail() const;
138 time_t getNoticeMailSince() const;
139 int getPrivateIndexID() const;
140 int getItemNumberLimit( ) const;
141 int getIndexNumberLimit( ) const;
142 double getItemStorageLimit( ) const;
143 // ----
144 const char* getUname( ) const;
145 const char* getName( ) const;
146 const char* getEmail( ) const;
147 const char* getURL( ) const;
148 const char* getUserAvatar( ) const;
149 int getUserRegdate( ) const;
150 const char* getUserIcq( ) const;
151 const char* getUserFrom( ) const;
152 const char* getUserSig( ) const;
153 int getUserViewemail( ) const;
154 const char* getActkey( ) const;
155 const char* getUserAim( ) const;
156 const char* getUserYim( ) const;
157 const char* getUserMsnm( ) const;
158 const char* getPass( ) const;
159 int getPosts( ) const;
160 int getAttachsig( ) const;
161 int getRank( ) const;
162 int getLevel( ) const;
163 const char* getTheme( ) const;
164 double getTimezoneOffset( ) const;
165 int getLastLogin( ) const;
166 const char* getUmode( ) const;
167 int getUorder( ) const;
168 int getNotifyMethod( ) const;
169 int getNotifyMode( ) const;
170 const char* getUserOcc( ) const;
171 const char* getBio( ) const;
172 const char* getUserIntrest( ) const;
173 int getUserMailok( ) const;
174
175 // ----
176 void setUID(userid_t uid);
177 void setActivate(bool activate);
178 void setAddress(const char *address);
179 void setDivision(const char *division);
180 void setTel(const char *tel);
181 void setCompanyName(const char *company_name);
182 void setCountry(const char *country);
183 void setZipcode(const char *zipcode);
184 void setFax(const char *fax);
185 void setNoticeMail(int noticeMail);
186 void setNoticeMailSince( time_t noticeMailSince);
187 void setPrivateIndexID(int xid);
188 void setItemNumberLimit( int );
189 void setIndexNumberLimit( int );
190 void setItemStorageLimit( double );
191 // ----
192 void setUname( const char* uname );
193 void setName( const char* name );
194 void setEmail( const char* email );
195 void setURL( const char* url );
196 void setUserAvatar( const char* user_avatar );
197 void setUserRegdate( int user_regdate);
198 void setUserIcq( const char* user_icq );
199 void setUserFrom( const char* user_from );
200 void setUserSig( const char* user_sig );
201 void setUserViewemail( int user_viewemail );
202 void setActkey( const char* actkey );
203 void setUserAim( const char* user_aim );
204 void setUserYim( const char* user_yim );
205 void setUserMsnm( const char* user_msnm );
206 void setPass( const char* pass );
207 void setPosts( int posts );
208 void setAttachsig( int attachsig );
209 void setRank( int rank );
210 void setLevel( int level );
211 void setTheme( const char* theme );
212 void setTimezoneOffset( double timezone_offset );
213 void setLastLogin( int last_login );
214 void setUmode( const char* umode );
215 void setUorder( int uorder );
216 void setNotifyMethod( int notify_method );
217 void setNotifyMode( int notify_mode );
218 void setUserOcc( const char* user_occ );
219 void setBio( const char* bio );
220 void setUserIntrest( const char* user_intrest );
221 void setUserMailok( int user_mailok );
222 };
223
224 typedef account account_t;
225
226 #endif

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