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.10 - (show annotations) (download) (as text)
Fri Feb 25 07:00:37 2005 UTC (19 years, 1 month ago) by tani
Branch: MAIN
Changes since 1.9: +13 -1 lines
File MIME type: text/x-chdr
item_number_limit, index_number_limit, item_storage_limitを追加.

1 /*
2 * XOOPS&Platform???若?句????????????????劫?荐?
3 *
4 * $Revision: 1.9 $
5 * $Log: account.h,v $
6 * Revision 1.9 2005/02/09 07:23:50 aga
7 * ??RL to My Personal Archive ??DB??L????羔?????.
8 *
9 * Revision 1.8 2005/01/22 00:18:33 aga
10 * ??ndexID ?? unsigned ??????.
11 *
12 * Revision 1.7 2005/01/19 10:06:19 aga
13 * ??ccount::UID_GUEST=0??絎?臂?
14 *
15 * Revision 1.6 2005/01/15 05:31:16 youi
16 * userid_t??篏帥?c???臂?
17 *
18 * Revision 1.5 2005/01/14 10:33:37 aga
19 * ??nt privateIndexID??菴遵??.
20 *
21 * Revision 1.4 2004/12/01 10:28:58 youi
22 * DB????????????眼??軸??篆??
23 * institute -> division
24 * organizaion -> company_name
25 *
26 * Revision 1.3 2004/11/25 08:57:15 youi
27 * get膤脂?∽?違??onst篆??.
28 *
29 * Revision 1.2 2004/11/25 04:11:43 youi
30 * typedef??菴遵??.
31 *
32 * Revision 1.1 2004/11/22 08:25:16 youi
33 * initial version.
34 *
35 *
36 */
37 #if !defined( ACCOUNT_H )
38 #define ACCOUNT_H
39
40 /*
41 * Visiome Platform Abstract Layer
42 * Account膊∞????????/span>
43 *
44 *
45 */
46
47 typedef unsigned int userid_t;
48 class account{
49 private:
50 userid_t uid; //< ???若?吟?潟?若??
51 bool activate; //< ?≪?????若?帥???????粋???????/span>
52 char* address; //< 篏??
53 char* division; //< ??絮?
54 char* tel; //< ?肢????/span>
55 char* company_name; //< 絖???篌?腓上??
56 char* country; //< ?遵??
57 char* zipcode; //< ?灸梢???/span>
58 char* fax; //< ???<?????合???/span>
59 int noticeMail; //< ?亥???≪?ゃ???????ャ?<?若????篆♂????
60 time_t noticeMailSince; //< ?亥???≪?ゃ???????ャ?<?若????篆♂?????脂?我??/span>
61 unsigned int privateIndexID; //private index??D
62 int itemNumberLimit;
63 int indexNumberLimit;
64 double itemStorageLimit;
65
66 char* uname;
67 char* name;
68 char* email;
69 char* url;
70 char* user_avatar;
71 int user_regdate;
72 char* user_icq;
73 char* user_from;
74 char* user_sig;
75 int user_viewemail;
76 char* actkey;
77 char* user_aim;
78 char* user_yim;
79 char* user_msnm;
80 char* pass;
81 int posts;
82 int attachsig;
83 int rank;
84 int level;
85 char* theme;
86 double timezone_offset;
87 int last_login;
88 char* umode;
89 int uorder;
90 int notify_method;
91 int notify_mode;
92 char* user_occ;
93 char* bio;
94 char* user_intrest;
95 int user_mailok;
96
97 public:
98 // reserved uid
99 static const userid_t UID_GUEST = 0;
100
101 account();
102 ~account();
103
104 // ----
105 userid_t getUID() const;
106 bool getActivate() const;
107 const char *getAddress() const;
108 const char *getDivision() const;
109 const char *getTel() const;
110 const char *getCompanyName() const;
111 const char *getCountry() const;
112 const char *getZipcode() const;
113 const char *getFax() const;
114 int getNoticeMail() const;
115 time_t getNoticeMailSince() const;
116 int getPrivateIndexID() const;
117 int getItemNumberLimit( ) const;
118 int getIndexNumberLimit( ) const;
119 double getItemStorageLimit( ) const;
120 // ----
121 const char* getUname( ) const;
122 const char* getName( ) const;
123 const char* getEmail( ) const;
124 const char* getURL( ) const;
125 const char* getUserAvatar( ) const;
126 int getUserRegdate( ) const;
127 const char* getUserIcq( ) const;
128 const char* getUserFrom( ) const;
129 const char* getUserSig( ) const;
130 int getUserViewemail( ) const;
131 const char* getActkey( ) const;
132 const char* getUserAim( ) const;
133 const char* getUserYim( ) const;
134 const char* getUserMsnm( ) const;
135 const char* getPass( ) const;
136 int getPosts( ) const;
137 int getAttachsig( ) const;
138 int getRank( ) const;
139 int getLevel( ) const;
140 const char* getTheme( ) const;
141 double getTimezoneOffset( ) const;
142 int getLastLogin( ) const;
143 const char* getUmode( ) const;
144 int getUorder( ) const;
145 int getNotifyMethod( ) const;
146 int getNotifyMode( ) const;
147 const char* getUserOcc( ) const;
148 const char* getBio( ) const;
149 const char* getUserIntrest( ) const;
150 int getUserMailok( ) const;
151
152 // ----
153 void setUID(userid_t uid);
154 void setActivate(bool activate);
155 void setAddress(const char *address);
156 void setDivision(const char *division);
157 void setTel(const char *tel);
158 void setCompanyName(const char *company_name);
159 void setCountry(const char *country);
160 void setZipcode(const char *zipcode);
161 void setFax(const char *fax);
162 void setNoticeMail(int noticeMail);
163 void setNoticeMailSince( time_t noticeMailSince);
164 void setPrivateIndexID(int xid);
165 void setItemNumberLimit( int );
166 void setIndexNumberLimit( int );
167 void setItemStorageLimit( double );
168 // ----
169 void setUname( const char* uname );
170 void setName( const char* name );
171 void setEmail( const char* email );
172 void setURL( const char* url );
173 void setUserAvatar( const char* user_avatar );
174 void setUserRegdate( int user_regdate);
175 void setUserIcq( const char* user_icq );
176 void setUserFrom( const char* user_from );
177 void setUserSig( const char* user_sig );
178 void setUserViewemail( int user_viewemail );
179 void setActkey( const char* actkey );
180 void setUserAim( const char* user_aim );
181 void setUserYim( const char* user_yim );
182 void setUserMsnm( const char* user_msnm );
183 void setPass( const char* pass );
184 void setPosts( int posts );
185 void setAttachsig( int attachsig );
186 void setRank( int rank );
187 void setLevel( int level );
188 void setTheme( const char* theme );
189 void setTimezoneOffset( double timezone_offset );
190 void setLastLogin( int last_login );
191 void setUmode( const char* umode );
192 void setUorder( int uorder );
193 void setNotifyMethod( int notify_method );
194 void setNotifyMode( int notify_mode );
195 void setUserOcc( const char* user_occ );
196 void setBio( const char* bio );
197 void setUserIntrest( const char* user_intrest );
198 void setUserMailok( int user_mailok );
199 };
200
201 typedef account account_t;
202
203 #endif

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